Function at 0x406390
Capabilities:
Extract resource via kernel32 functions

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x44ec9b
mov eax, dword fs:[0]
push eax
sub esp, 0x424
mov eax, dword [0x45d1d4]
xor eax, ebp
mov dword [ebp - 0x14], eax
push ebx
push esi
push edi
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov dword [ebp - 0x10], esp
mov edx, dword [ebp + 0xc]
xor esi, esi
mov eax, dword [ebp + 8]
mov dword [ebp - 0x424], edx
mov edx, dword [ebp + 0x10]
mov dword [ebp - 0x41c], eax
mov dword [ebp - 0x420], edx
mov dword [ebp - 0x428], esi
mov dword [ebp - 4], esi
mov dword [ebp - 0x42c], ecx
mov dword [ebp - 0x430], esi
mov dword [ebp - 0x418], esi
mov byte [ebp - 4], 1
test eax, eax
je 0x406637
mov ecx, eax
lea edx, [ecx + 2]
nop word [eax + eax]
mov ax, word [ecx]
add ecx, 2
test ax, ax
jne 0x406410
sub ecx, edx
sar ecx, 1
lea eax, [ecx + 1]
mov ecx, 2
imul ecx
mov edi, eax
test edx, edx
jg 0x4064cd
jl 0x406441
cmp edi, 0x7fffffff
ja 0x4064cd
cmp edx, 0xffffffff
jl 0x4064cd
jg 0x406454
cmp edi, 0x80000000
jb 0x4064cd
cmp edi, 0x400
jg 0x406477
push edi
call fcn.00408260
add esp, 4
test al, al
je 0x406477
mov eax, edi
call fcn.0040ace0
mov dword [ebp - 0x10], esp
mov ebx, esp
jmp 0x4064a5
mov eax, edi
not eax
cmp eax, 8
jb 0x40668c
lea eax, [edi + 8]
push eax
call fcn.0041639d
add esp, 4
test eax, eax
je 0x4064cd
mov esi, eax
mov dword [eax], 0
mov dword [ebp - 0x428], esi
lea ebx, [eax + 8]
test ebx, ebx
je 0x4064cd
push 0
push 0
push edi
push ebx
push 0xffffffffffffffff
push dword [ebp - 0x41c]
mov byte [ebx], 0
push 0
push 3
call dword [sym.imp.KERNEL32.dll_WideCharToMultiByte]
xor ecx, ecx
test eax, eax
cmove ebx, ecx
jmp 0x4064cf
xor ebx, ebx
test ebx, ebx
je 0x406637
push 0x60
push 0
push ebx
call dword [sym.imp.KERNEL32.dll_LoadLibraryExA]
mov edi, eax
mov dword [ebp - 0x41c], edi
test edi, edi
jne 0x406510
push 2
push eax
push ebx
call dword [sym.imp.KERNEL32.dll_LoadLibraryExA]
mov edi, eax
mov dword [ebp - 0x41c], eax
test edi, edi
jne 0x406510
call fcn.00402df0
mov ebx, eax
jmp 0x406607
push dword [ebp - 0x420]
push dword [ebp - 0x424]
push edi
call dword [sym.imp.KERNEL32.dll_FindResourceA]
mov ebx, eax
test ebx, ebx
jne 0x406533
call fcn.00402df0
jmp 0x4065fa
push ebx
push edi
call dword [sym.imp.KERNEL32.dll_LoadResource]
mov dword [ebp - 0x420], eax
test eax, eax
jne 0x40654f
call fcn.00402df0
jmp 0x4065fa
push ebx
push edi
call dword [sym.imp.KERNEL32.dll_SizeofResource]
mov ebx, eax
mov dword [ebp - 0x424], ebx
lea eax, [ebx + 1]
cmp eax, ebx
jae 0x406570
mov ebx, 0x8007000e
jmp 0x4065fc
mov byte [ebp - 4], 2
cmp eax, 0x400
jbe 0x4065a3
push eax
lea ecx, [ebp - 0x418]
call fcn.00402c60
jmp 0x4065af
lea eax, [ebp - 0x414]
mov dword [ebp - 0x418], eax
cmp dword [ebp - 0x418], 0
mov dword [ebp - 4], 1
jne 0x4065c6
mov ebx, 0x8007000e
jmp 0x4065fc
push ebx
push dword [ebp - 0x420]
push ebx
push dword [ebp - 0x418]
call fcn.00408320
mov eax, dword [ebp - 0x418]
lea ecx, [ebp - 0x430]
add esp, 0x10
mov byte [eax + ebx], 0
push dword [ebp + 0x14]
push dword [ebp - 0x418]
call fcn.00405fa0
mov ebx, eax
test edi, edi
je 0x406607
push edi
call dword [sym.imp.KERNEL32.dll_FreeLibrary]
lea eax, [ebp - 0x414]
cmp dword [ebp - 0x418], eax
je 0x406620
lea ecx, [ebp - 0x418]
call fcn.00404980
test esi, esi
je 0x406633
push esi
mov esi, dword [esi]
call fcn.00416382
add esp, 4
test esi, esi
jne 0x406624
mov eax, ebx
jmp 0x406668
lea eax, [ebp - 0x414]
cmp dword [ebp - 0x418], eax
je 0x406650
lea ecx, [ebp - 0x418]
call fcn.00404980
test esi, esi
je 0x406663
push esi
mov esi, dword [esi]
call fcn.00416382
add esp, 4
test esi, esi
jne 0x406654
mov eax, 0x8007000e
lea esp, [ebp - 0x440]
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov ecx, dword [ebp - 0x14]
xor ecx, ebp
call fcn.0040acca
mov esp, ebp
pop ebp
ret 0x10
push 0x80070216
call fcn.00402e30
int3