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

Disassembly:
push ebp
mov ebp, esp
push ecx
mov ecx, 4
push 0
push 0
dec ecx
jne 0x40591d
push ecx
xchg dword [ebp - 4], ecx
push ebx
push esi
push edi
mov esi, ecx
mov dword [ebp - 4], edx
mov edi, eax
mov ebx, dword [ebp + 8]
xor eax, eax
push ebp
push 0x405e45
push dword fs:[eax]
mov dword fs:[eax], esp
push 0x405e58
mov eax, dword [0x40966c]
push eax
call sub.user32.dll_LoadIconA
push eax
push 1
push 0x80
mov eax, dword [0x40966c]
push eax
call sub.user32.dll_SendMessageA
mov byte [ebp - 5], 0
mov eax, dword [ebp - 4]
push eax
push edi
push 0
call sub.kernel32.dll_FindResourceA
mov edi, eax
push edi
push 0
call sub.kernel32.dll_SizeofResource
test eax, eax
jne 0x40599c
push 0x30
push 0x405e64
push 0x405e70
push 0
call sub.user32.dll_MessageBoxA
jmp 0x405e2a
push edi
push 0
call sub.kernel32.dll_LoadResource
push eax
call sub.kernel32.dll_LockResource
mov dword [ebp - 0xc], eax
mov edx, dword [ebp - 0xc]
mov eax, esi
mov ecx, 0x3d
call fcn.00403088
add dword [ebp - 0xc], 0x3d
mov edx, dword [esi + 4]
mov eax, ebx
call fcn.00402194
mov ecx, dword [esi + 4]
mov edx, dword [ebp - 0xc]
mov eax, dword [ebx]
call fcn.00403088
mov eax, dword [esi + 4]
add dword [ebp - 0xc], eax
mov edx, dword [esi + 8]
lea eax, [ebx + 4]
call fcn.00402194
mov ecx, dword [esi + 8]
mov edx, dword [ebp - 0xc]
mov eax, dword [ebx + 4]
call fcn.00403088
mov eax, dword [esi + 8]
add dword [ebp - 0xc], eax
mov eax, dword [esi]
push eax
lea eax, [ebx + 8]
mov ecx, 1
mov edx, dword [0x403940]
call fcn.00402c04
add esp, 4
mov ecx, dword [esi]
shl ecx, 3
mov edx, dword [ebp - 0xc]
mov eax, dword [ebx + 8]
call fcn.00403088
mov eax, dword [esi]
shl eax, 3
add dword [ebp - 0xc], eax
mov eax, dword [esi]
push eax
lea eax, [ebx + 0xc]
mov ecx, 1
mov edx, dword [0x403964]
call fcn.00402c04
add esp, 4
mov ecx, dword [esi]
mov edx, dword [ebp - 0xc]
mov eax, dword [ebx + 0xc]
call fcn.00403088
mov eax, dword [esi]
add dword [ebp - 0xc], eax
mov eax, dword [esi]
push eax
lea eax, [ebx + 0x10]
mov ecx, 1
mov edx, dword [0x403988]
call fcn.00402c04
add esp, 4
mov ecx, dword [esi]
mov edx, dword [ebp - 0xc]
mov eax, dword [ebx + 0x10]
call fcn.00403088
mov eax, dword [esi]
add dword [ebp - 0xc], eax
mov eax, dword [esi + 0x1c]
test eax, eax
je 0x405aa8
mov edx, eax
lea eax, [ebx + 0x14]
call fcn.00402194
mov ecx, dword [esi + 0x1c]
mov edx, dword [ebp - 0xc]
mov eax, dword [ebx + 0x14]
call fcn.00403088
mov eax, dword [esi + 0x1c]
add dword [ebp - 0xc], eax
mov eax, dword [esi + 0x24]
test eax, eax
je 0x405b13
cmp dword [esi + 0x28], 0
je 0x405b13
mov edx, eax
lea eax, [ebx + 0x18]
call fcn.00402194
mov ecx, dword [esi + 0x24]
mov edx, dword [ebp - 0xc]
mov eax, dword [ebx + 0x18]
call fcn.00403088
mov eax, dword [esi + 0x24]
add dword [ebp - 0xc], eax
mov edx, dword [esi + 0x28]
lea eax, [ebx + 0x1c]
call fcn.00402194
mov ecx, dword [esi + 0x28]
mov edx, dword [ebp - 0xc]
mov eax, dword [ebx + 0x1c]
call fcn.00403088
mov eax, dword [esi + 0x28]
add dword [ebp - 0xc], eax
push 0
lea eax, [ebp - 0x14]
push eax
mov ecx, dword [ebx + 0x1c]
mov edx, dword [ebx + 0x18]
mov eax, dword [esi + 0x20]
call fcn.004046f0
mov edx, dword [ebp - 0x14]
mov eax, 0x409d34
call fcn.00401d7c
mov eax, dword [0x409d34]
call fcn.00403f18
test al, al
jne 0x405b54
push dword [ebx + 0x14]
push 0x405ea0
push dword [ebx]
mov eax, 0x409d34
mov edx, 3
call fcn.00401f80
lea edx, [ebp - 0x18]
mov eax, dword [0x409d34]
call fcn.0040565c
mov edx, dword [ebp - 0x18]
mov eax, 0x409d34
call fcn.00401d7c
mov eax, dword [0x409d34]
call fcn.00403f18
test al, al
jne 0x405b86
lea edx, [ebp - 0x20]
xor eax, eax
call fcn.00401440
mov eax, dword [ebp - 0x20]
lea edx, [ebp - 0x1c]
call fcn.00403e6c
mov edx, dword [ebp - 0x1c]
mov ecx, dword [ebx]
mov eax, 0x409d34
call fcn.00401f0c
mov eax, dword [0x409d34]
call fcn.00403f18
test al, al
jne 0x405bb6
cmp byte [esi + 0x12], 0
jne 0x405e2a
push 0x30
push 0x405e64
push 0x405ea4
push 0
call sub.user32.dll_MessageBoxA
jmp 0x405e2a
mov edi, dword [esi + 0x2c]
test edi, edi
je 0x405cbe
push edi
lea eax, [ebx + 0x20]
mov ecx, 1
mov edx, dword [0x4039ac]
call fcn.00402c04
add esp, 4
mov eax, dword [esi + 0x2c]
push eax
lea eax, [ebx + 0x24]
mov ecx, 1
mov edx, dword [0x4039d0]
call fcn.00402c04
add esp, 4
mov eax, dword [esi + 0x2c]
push eax
lea eax, [ebx + 0x28]
mov ecx, 1
mov edx, dword [0x4039f4]
call fcn.00402c04
add esp, 4
mov eax, dword [esi + 0x2c]
push eax
lea eax, [ebx + 0x2c]
mov ecx, 1
mov edx, dword [0x403a18]
call fcn.00402c04
add esp, 4
mov eax, dword [esi + 0x2c]
dec eax
test eax, eax
jl 0x405cbe
inc eax
mov dword [ebp - 0x10], eax
xor edi, edi
mov eax, dword [ebx + 0x20]
mov edx, dword [ebp - 0xc]
movzx edx, byte [edx]
mov dword [eax + edi*4], edx
add dword [ebp - 0xc], 4
mov eax, dword [ebx + 0x24]
mov edx, dword [ebp - 0xc]
movzx edx, byte [edx]
mov dword [eax + edi*4], edx
add dword [ebp - 0xc], 4
mov eax, dword [ebx + 0x24]
mov edx, dword [eax + edi*4]
mov eax, dword [ebx + 0x28]
lea eax, [eax + edi*4]
call fcn.00402194
mov eax, dword [ebx + 0x24]
mov ecx, dword [eax + edi*4]
mov eax, dword [ebx + 0x28]
mov eax, dword [eax + edi*4]
mov edx, dword [ebp - 0xc]
call fcn.00403088
mov eax, dword [ebx + 0x24]
mov eax, dword [eax + edi*4]
add dword [ebp - 0xc], eax
mov eax, dword [ebx + 0x24]
mov edx, dword [eax + edi*4]
mov eax, dword [ebx + 0x2c]
lea eax, [eax + edi*4]
call fcn.00402194
mov eax, dword [ebx + 0x24]
mov ecx, dword [eax + edi*4]
mov eax, dword [ebx + 0x2c]
mov eax, dword [eax + edi*4]
mov edx, dword [ebp - 0xc]
call fcn.00403088
mov eax, dword [ebx + 0x24]
mov eax, dword [eax + edi*4]
add dword [ebp - 0xc], eax
inc edi
dec dword [ebp - 0x10]
jne 0x405c38
mov eax, dword [esi + 0x38]
test eax, eax
je 0x405ce3
mov edx, eax
lea eax, [ebx + 0x30]
call fcn.00402194
mov ecx, dword [esi + 0x38]
mov edx, dword [ebp - 0xc]
mov eax, dword [ebx + 0x30]
call fcn.00403088
mov eax, dword [esi + 0x38]
add dword [ebp - 0xc], eax
mov edi, dword [esi + 0x30]
test edi, edi
je 0x405d19
mov edx, edi
mov eax, dword [ebx]
call fcn.00405570
test al, al
jne 0x405d19
cmp byte [esi + 0x12], 0
jne 0x405e2a
push 0x30
push 0x405e64
push 0x405ec4
push 0
call sub.user32.dll_MessageBoxA
jmp 0x405e2a
mov edi, dword [esi + 0x34]
test edi, edi
je 0x405d4f
mov edx, edi
mov eax, dword [ebx]
call fcn.00405524
test al, al
jne 0x405d4f
cmp byte [esi + 0x12], 0
jne 0x405e2a
push 0x30
push 0x405e64
push 0x405eec
push 0
call sub.user32.dll_MessageBoxA
jmp 0x405e2a
cmp dword [esi + 0x38], 0
je 0x405d85
mov edx, dword [ebx + 0x30]
mov eax, dword [ebx]
call fcn.00405598
test al, al
jne 0x405d85
cmp byte [esi + 0x12], 0
jne 0x405e2a
push 0x30
push 0x405e64
push 0x405f18
push 0
call sub.user32.dll_MessageBoxA
jmp 0x405e2a
push 0xa
push 0x405f44
mov eax, dword [0x40966c]
push eax
call sub.kernel32.dll_FindResourceA
test eax, eax
je 0x405e00
lea eax, [ebp - 0x24]
call fcn.0040455c
lea eax, [ebp - 0x24]
mov edx, 0x405f54
call fcn.00401ec8
mov ecx, dword [ebp - 0x24]
mov eax, 0x405f44
mov edx, 0xa
call fcn.00404950
test al, al
je 0x405de5
lea eax, [ebp - 0x28]
call fcn.0040455c
lea eax, [ebp - 0x28]
mov edx, 0x405f54
call fcn.00401ec8
mov eax, dword [ebp - 0x28]
call fcn.0040487c
jmp 0x405e00
cmp byte [esi + 0x12], 0
jne 0x405e00
push 0x10
push 0x405e64
push 0x405f68
push 0
call sub.user32.dll_MessageBoxA
jmp 0x405e2a
cmp dword [esi], 0
jne 0x405e26
cmp dword [esi + 0x2c], 0
jne 0x405e26
cmp byte [esi + 0x12], 0
jne 0x405e2a
push 0x30
push 0x405e64
push 0x405f8c
push 0
call sub.user32.dll_MessageBoxA
jmp 0x405e2a
mov byte [ebp - 5], 1
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x405e4c
lea eax, [ebp - 0x28]
mov edx, 6
call fcn.00401d4c
ret