Function at 0x40a130
Capabilities:
Extract resource via kernel32 functions
Inspect load icon resource

Disassembly:
push ebp
mov ebp, esp
add esp, 0xffffffc8
push ebx
push esi
push edi
xor ebx, ebx
mov dword [ebp - 0x34], ebx
mov dword [ebp - 0x38], ebx
mov dword [ebp - 0x30], ebx
mov dword [ebp - 0x2c], ebx
mov dword [ebp - 0x28], ebx
mov dword [ebp - 0x24], ebx
mov dword [ebp - 4], ecx
mov esi, edx
mov ebx, eax
lea eax, [ebp - 0x1d]
mov edx, dword [0x407138]
call fcn.004045ac
lea edi, [ebp - 0xc]
xor eax, eax
push ebp
push 0x40a938
push dword fs:[eax]
mov dword fs:[eax], esp
push 0x40a94c
mov eax, dword [0x40e650]
push eax
call sub.user32.dll_LoadIconA
push eax
push 1
push 0x80
mov eax, dword [0x40e650]
push eax
call sub.user32.dll_SendMessageA
mov byte [ebp - 5], 0
push esi
push ebx
push 0
call sub.kernel32.dll_FindResourceA
mov ebx, eax
push ebx
push 0
call sub.kernel32.dll_SizeofResource
test eax, eax
jne 0x40a1c9
push 0x30
push 0x40a958
push 0x40a964
push 0
call sub.user32.dll_MessageBoxA_1
jmp 0x40a90f
push ebx
push 0
call sub.kernel32.dll_LoadResource
push eax
call sub.kernel32.dll_LockResource
mov dword [edi], eax
mov eax, dword [ebp - 4]
mov edx, dword [edi]
call fcn.00403fa0
mov eax, dword [ebp - 4]
mov eax, dword [eax]
call fcn.00404044
inc eax
add dword [edi], eax
mov eax, dword [ebp - 4]
add eax, 4
mov edx, dword [edi]
call fcn.00403fa0
mov eax, dword [ebp - 4]
mov eax, dword [eax + 4]
call fcn.00404044
inc eax
add dword [edi], eax
mov eax, dword [ebp - 4]
add eax, 8
mov ecx, 0x13
mov edx, dword [edi]
call fcn.00405550
add dword [edi], 0x13
mov ebx, dword [ebp - 4]
mov ebx, dword [ebx + 0x17]
test ebx, ebx
jbe 0x40a2e2
mov eax, dword [ebp - 4]
push ebx
mov eax, dword [ebp - 4]
add eax, 0x1b
mov ecx, 1
mov edx, dword [0x406f9c]
call fcn.00404dfc
add esp, 4
mov eax, dword [ebp - 4]
mov ecx, dword [eax + 0x17]
shl ecx, 3
mov eax, dword [ebp - 4]
mov eax, dword [eax + 0x1b]
mov edx, dword [edi]
call fcn.00405550
mov eax, dword [ebp - 4]
mov eax, dword [eax + 0x17]
shl eax, 3
add dword [edi], eax
mov eax, dword [ebp - 4]
mov eax, dword [eax + 0x17]
push eax
mov eax, dword [ebp - 4]
add eax, 0x1f
mov ecx, 1
mov edx, dword [0x406fc4]
call fcn.00404dfc
add esp, 4
mov ecx, dword [ebp - 4]
mov ecx, dword [ecx + 0x17]
mov eax, dword [ebp - 4]
mov eax, dword [eax + 0x1f]
mov edx, dword [edi]
call fcn.00405550
mov eax, dword [ebp - 4]
mov eax, dword [eax + 0x17]
add dword [edi], eax
mov eax, dword [ebp - 4]
mov eax, dword [eax + 0x17]
push eax
mov eax, dword [ebp - 4]
add eax, 0x23
mov ecx, 1
mov edx, dword [0x406fec]
call fcn.00404dfc
add esp, 4
mov ecx, dword [ebp - 4]
mov ecx, dword [ecx + 0x17]
mov eax, dword [ebp - 4]
mov eax, dword [eax + 0x23]
mov edx, dword [edi]
call fcn.00405550
mov eax, dword [ebp - 4]
mov eax, dword [eax + 0x17]
add dword [edi], eax
mov eax, dword [ebp - 4]
add eax, 0x27
mov ecx, 4
mov edx, dword [edi]
call fcn.00405550
add dword [edi], 4
mov ebx, dword [ebp - 4]
mov ebx, dword [ebx + 0x27]
test ebx, ebx
je 0x40a42e
mov eax, dword [ebp - 4]
push ebx
mov eax, dword [ebp - 4]
add eax, 0x2b
mov ecx, 1
mov edx, dword [0x407014]
call fcn.00404dfc
add esp, 4
mov eax, dword [ebp - 4]
mov eax, dword [eax + 0x27]
push eax
mov eax, dword [ebp - 4]
add eax, 0x2f
mov ecx, 1
mov edx, dword [0x40703c]
call fcn.00404dfc
add esp, 4
mov eax, dword [ebp - 4]
mov eax, dword [eax + 0x27]
push eax
mov eax, dword [ebp - 4]
add eax, 0x33
mov ecx, 1
mov edx, dword [0x407064]
call fcn.00404dfc
add esp, 4
mov eax, dword [ebp - 4]
mov eax, dword [eax + 0x27]
push eax
mov eax, dword [ebp - 4]
add eax, 0x37
mov ecx, 1
mov edx, dword [0x40708c]
call fcn.00404dfc
add esp, 4
mov esi, dword [ebp - 4]
mov esi, dword [esi + 0x27]
dec esi
test esi, esi
jl 0x40a3a5
inc esi
xor ebx, ebx
mov eax, dword [ebp - 4]
mov eax, dword [eax + 0x2b]
mov edx, dword [edi]
movzx edx, byte [edx]
mov dword [eax + ebx*4], edx
add dword [edi], 4
inc ebx
dec esi
jne 0x40a390
mov esi, dword [ebp - 4]
mov esi, dword [esi + 0x27]
dec esi
test esi, esi
jl 0x40a3c8
inc esi
xor ebx, ebx
mov eax, dword [ebp - 4]
mov eax, dword [eax + 0x2f]
mov edx, dword [edi]
movzx edx, byte [edx]
mov dword [eax + ebx*4], edx
add dword [edi], 4
inc ebx
dec esi
jne 0x40a3b3
mov esi, dword [ebp - 4]
mov esi, dword [esi + 0x27]
dec esi
test esi, esi
jl 0x40a3fb
inc esi
xor ebx, ebx
mov eax, dword [ebp - 4]
mov eax, dword [eax + 0x33]
lea eax, [eax + ebx*4]
mov edx, dword [edi]
call fcn.00403fa0
mov eax, dword [ebp - 4]
mov eax, dword [eax + 0x33]
mov eax, dword [eax + ebx*4]
call fcn.00404044
inc eax
add dword [edi], eax
inc ebx
dec esi
jne 0x40a3d6
mov esi, dword [ebp - 4]
mov esi, dword [esi + 0x27]
dec esi
test esi, esi
jl 0x40a42e
inc esi
xor ebx, ebx
mov eax, dword [ebp - 4]
mov eax, dword [eax + 0x37]
lea eax, [eax + ebx*4]
mov edx, dword [edi]
call fcn.00403fa0
mov eax, dword [ebp - 4]
mov eax, dword [eax + 0x37]
mov eax, dword [eax + ebx*4]
call fcn.00404044
inc eax
add dword [edi], eax
inc ebx
dec esi
jne 0x40a409
mov eax, dword [ebp - 4]
add eax, 0x3b
mov ecx, 4
mov edx, dword [edi]
call fcn.00405550
add dword [edi], 4
mov eax, dword [ebp - 4]
add eax, 0x3f
mov ecx, 4
mov edx, dword [edi]
call fcn.00405550
add dword [edi], 4
mov eax, dword [ebp - 4]
add eax, 0x43
mov edx, dword [edi]
call fcn.00403fa0
mov eax, dword [ebp - 4]
mov eax, dword [eax + 0x43]
call fcn.00404044
inc eax
add dword [edi], eax
mov eax, dword [ebp - 4]
add eax, 0x47
mov ecx, 1
mov edx, dword [edi]
call fcn.00405550
inc dword [edi]
mov eax, dword [ebp - 4]
add eax, 0x48
mov ecx, 8
mov edx, dword [edi]
call fcn.00405550
add dword [edi], 8
mov eax, dword [ebp - 4]
add eax, 0x50
mov ecx, 1
mov edx, dword [edi]
call fcn.00405550
inc dword [edi]
mov eax, dword [ebp - 4]
add eax, 0x51
mov ecx, 1
mov edx, dword [edi]
call fcn.00405550
inc dword [edi]
mov eax, dword [ebp - 4]
add eax, 0x52
mov ecx, 1
mov edx, dword [edi]
call fcn.00405550
inc dword [edi]
mov eax, dword [ebp - 4]
add eax, 0x53
mov ecx, 1
mov edx, dword [edi]
call fcn.00405550
inc dword [edi]
mov eax, dword [ebp - 4]
add eax, 0x54
mov ecx, 1
mov edx, dword [edi]
call fcn.00405550
inc dword [edi]
mov eax, dword [ebp - 4]
add eax, 0x55
mov edx, dword [edi]
call fcn.00403fa0
mov eax, dword [ebp - 4]
mov eax, dword [eax + 0x55]
call fcn.00404044
inc eax
add dword [edi], eax
mov eax, dword [ebp - 4]
add eax, 0x59
mov ecx, 4
mov edx, dword [edi]
call fcn.00405550
add dword [edi], 4
mov eax, dword [ebp - 4]
add eax, 0x5d
mov edx, dword [edi]
call fcn.00403fa0
mov eax, dword [ebp - 4]
mov eax, dword [eax + 0x5d]
call fcn.00404044
inc eax
add dword [edi], eax
mov eax, dword [ebp - 4]
add eax, 0x61
mov edx, dword [edi]
call fcn.00403fa0
mov eax, dword [ebp - 4]
mov eax, dword [eax + 0x61]
call fcn.00404044
inc eax
add dword [edi], eax
mov eax, dword [ebp - 4]
cmp dword [eax + 0x5d], 0
je 0x40a5a2
mov eax, dword [ebp - 4]
cmp dword [eax + 0x61], 0
je 0x40a5a2
push 0
lea eax, [ebp - 0x28]
push eax
mov ecx, dword [ebp - 4]
mov ecx, dword [ecx + 0x61]
mov edx, dword [ebp - 4]
mov edx, dword [edx + 0x5d]
mov eax, dword [ebp - 4]
mov eax, dword [eax + 0x59]
call fcn.004066c0
mov edx, dword [ebp - 0x28]
mov eax, 0x40ebdc
call fcn.00403dfc
mov eax, dword [0x40ebdc]
call fcn.00405fe8
test al, al
jne 0x40a603
mov eax, dword [ebp - 4]
push dword [eax + 0x55]
push 0x40a994
mov eax, dword [ebp - 4]
push dword [eax]
mov eax, 0x40ebdc
mov edx, 3
call fcn.00404104
lea edx, [ebp - 0x2c]
mov eax, dword [0x40ebdc]
call fcn.00409cfc
mov edx, dword [ebp - 0x2c]
mov eax, 0x40ebdc
call fcn.00403dfc
lea edx, [ebp - 0x30]
mov eax, dword [0x40ebdc]
call fcn.00405ab4
mov edx, dword [ebp - 0x30]
mov eax, 0x40ebdc
call fcn.00403dfc
mov eax, dword [0x40ebdc]
call fcn.00405fe8
test al, al
jne 0x40a638
lea edx, [ebp - 0x38]
xor eax, eax
call fcn.00402be8
mov eax, dword [ebp - 0x38]
lea edx, [ebp - 0x34]
call fcn.00405f3c
mov edx, dword [ebp - 0x34]
mov ecx, dword [ebp - 4]
mov ecx, dword [ecx]
mov eax, 0x40ebdc
call fcn.00404090
mov eax, dword [0x40ebdc]
call fcn.00405fe8
test al, al
jne 0x40a66b
mov eax, dword [ebp - 4]
cmp byte [eax + 0xc], 0
jne 0x40a90f
push 0x30
push 0x40a958
push 0x40a998
push 0
call sub.user32.dll_MessageBoxA_1
jmp 0x40a90f
mov ebx, dword [ebp - 4]
mov ebx, dword [ebx + 0x3b]
test ebx, ebx
je 0x40a6ad
mov eax, dword [ebp - 4]
mov edx, ebx
mov eax, dword [ebp - 4]
mov eax, dword [eax]
call fcn.00409740
test al, al
jne 0x40a6ad
mov eax, dword [ebp - 4]
cmp byte [eax + 0xc], 0
jne 0x40a90f
push 0x30
push 0x40a958
push 0x40a9b8
push 0
call sub.user32.dll_MessageBoxA_1
jmp 0x40a90f
mov ebx, dword [ebp - 4]
mov ebx, dword [ebx + 0x3f]
test ebx, ebx
je 0x40a6ef
mov eax, dword [ebp - 4]
mov edx, ebx
mov eax, dword [ebp - 4]
mov eax, dword [eax]
call fcn.004096f4
test al, al
jne 0x40a6ef
mov eax, dword [ebp - 4]
cmp byte [eax + 0xc], 0
jne 0x40a90f
push 0x30
push 0x40a958
push 0x40a9e0
push 0
call sub.user32.dll_MessageBoxA_1
jmp 0x40a90f
mov eax, dword [ebp - 4]
cmp dword [eax + 0x43], 0
je 0x40a731
mov edx, dword [ebp - 4]
mov edx, dword [edx + 0x43]
mov eax, dword [ebp - 4]
mov eax, dword [eax]
call fcn.00409768
test al, al
jne 0x40a731
mov eax, dword [ebp - 4]
cmp byte [eax + 0xc], 0
jne 0x40a90f
push 0x30
push 0x40a958
push 0x40aa0c
push 0
call sub.user32.dll_MessageBoxA_1
jmp 0x40a90f
mov eax, dword [ebp - 4]
cmp byte [eax + 0x47], 0
je 0x40a790
mov eax, dword [ebp - 4]
push dword [eax + 0x4c]
push dword [eax + 0x48]
mov eax, dword [ebp - 4]
mov al, byte [eax + 0x52]
push eax
mov eax, dword [ebp - 4]
mov al, byte [eax + 0x53]
push eax
mov ecx, dword [ebp - 4]
mov cl, byte [ecx + 0x51]
mov edx, dword [ebp - 4]
mov dl, byte [edx + 0x50]
mov eax, dword [ebp - 4]
mov eax, dword [eax]
call fcn.00409898
test al, al
jne 0x40a790
mov eax, dword [ebp - 4]
cmp byte [eax + 0xc], 0
jne 0x40a90f
push 0x30
push 0x40a958
push 0x40aa38
push 0
call sub.user32.dll_MessageBoxA_1
jmp 0x40a90f
mov ebx, dword [ebp - 4]
mov bl, byte [ebx + 0x54]
test bl, bl
jbe 0x40a7d2
mov eax, dword [ebp - 4]
mov edx, ebx
mov eax, dword [ebp - 4]
mov eax, dword [eax]
call fcn.00409c40
test al, al
jne 0x40a7d2
mov eax, dword [ebp - 4]
cmp byte [eax + 0xc], 0
jne 0x40a90f
push 0x30
push 0x40a958
push 0x40aa68
push 0
call sub.user32.dll_MessageBoxA_1
jmp 0x40a90f
push 0xa
push 0x40aa98
mov eax, dword [0x40e650]
push eax
call sub.kernel32.dll_FindResourceA
mov ebx, eax
test ebx, ebx
je 0x40a8db
push ebx
mov eax, dword [0x40e650]
push eax
call sub.kernel32.dll_LoadResource
push eax
call sub.kernel32.dll_LockResource
mov dword [ebp - 0x10], eax
lea edx, [ebp - 0x1d]
lea eax, [ebp - 0x10]
mov ecx, 5
call fcn.00402a44
push ebx
mov eax, dword [0x40e650]
push eax
call sub.kernel32.dll_SizeofResource
mov edx, eax
sub edx, 6
lea eax, [ebp - 0x24]
call fcn.00404374
push ebx
mov eax, dword [0x40e650]
push eax
call sub.kernel32.dll_SizeofResource
sub eax, 6
push eax
lea eax, [ebp - 0x24]
call fcn.0040429c
mov edx, eax
mov eax, dword [ebp - 0x10]
add eax, 5
pop ecx
call fcn.00402a44
lea eax, [ebp - 0x24]
call fcn.00407cdc
call fcn.00405af0
test al, al
je 0x40a8bd
mov dl, 1
mov eax, dword [0x4088f8]
call fcn.004084f0
mov dword [ebp - 0x14], eax
xor eax, eax
push ebp
push 0x40a8b6
push dword fs:[eax]
mov dword fs:[eax], esp
mov al, byte [ebp - 0x19]
push eax
mov eax, dword [ebp - 0x24]
call fcn.00404044
push eax
lea eax, [ebp - 0x24]
call fcn.0040429c
mov edx, eax
mov eax, dword [ebp - 0x14]
pop ecx
call fcn.00409190
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x40a8db
mov eax, dword [ebp - 0x14]
call fcn.00403498
ret
mov eax, dword [ebp - 4]
cmp byte [eax + 0xc], 0
jne 0x40a8db
push 0x10
push 0x40a958
push 0x40aa9c
push 0
call sub.user32.dll_MessageBoxA_1
jmp 0x40a90f
mov eax, dword [ebp - 4]
cmp dword [eax + 0x17], 0
jne 0x40a90b
mov eax, dword [ebp - 4]
cmp dword [eax + 0x27], 0
jne 0x40a90b
mov eax, dword [ebp - 4]
cmp byte [eax + 0xc], 0
jne 0x40a90f
push 0x30
push 0x40a958
push 0x40aac0
push 0
call sub.user32.dll_MessageBoxA_1
jmp 0x40a90f
mov byte [ebp - 5], 1
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x40a93f
lea eax, [ebp - 0x38]
mov edx, 6
call fcn.00403dcc
lea eax, [ebp - 0x1d]
mov edx, dword [0x407138]
call fcn.00404670
ret