Function at 0x418b90
Capabilities:
Extract resource via kernel32 functions

Disassembly:
push ebp
mov ebp, esp
and esp, 0xfffffff8
push 0xffffffffffffffff
push 0x5b56f2
mov eax, dword fs:[0]
push eax
sub esp, 0xd0
mov eax, dword [0x630490]
xor eax, esp
mov dword [esp + 0xc8], eax
push ebx
push esi
push edi
mov eax, dword [0x630490]
xor eax, esp
push eax
lea eax, [esp + 0xe0]
mov dword fs:[0], eax
mov ebx, edx
mov dword [esp + 0x14], ebx
mov edi, ecx
push 0
call dword [sym.imp.KERNEL32.dll_GetModuleHandleW]
push str.MYDATA
movzx esi, bx
push esi
push eax
call dword [sym.imp.KERNEL32.dll_FindResourceW]
mov esi, eax
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov dword [esp + 0x10], eax
test esi, esi
jne 0x418d4c
sub esp, 0x18
mov ecx, esp
mov dword [esp + 0x2c], esp
push esi
mov dword [ecx + 0x14], 0xf
mov dword [ecx + 0x10], esi
push 0x602695
mov byte [ecx], 0
call fcn.00404c00
mov dword [esp + 0x100], esi
lea ecx, [esp + 0xc0]
mov edx, dword [esp + 0x28]
call fcn.004057e0
mov esi, eax
mov edx, ebx
mov byte [esp + 0x100], 1
lea ecx, [esp + 0x30]
call fcn.00405860
push eax
mov edx, str.FindResource_err
mov byte [esp + 0x104], 2
lea ecx, [esp + 0x64]
call fcn.00405a70
push str.ierr
mov edx, eax
mov byte [esp + 0x108], 3
lea ecx, [esp + 0xb0]
call fcn.00405b00
sub esp, 0x10
mov byte [esp + 0x118], 4
mov ecx, esp
mov edx, eax
push esi
call fcn.00405ba0
add esp, 4
mov byte [esp + 0x118], 8
call fcn.0044c6e0
add esp, 0x30
cmp dword [esp + 0xa4], 0x10
jb 0x418cc4
push dword [esp + 0x90]
call fcn.0044f9f1
add esp, 4
cmp dword [esp + 0x5c], 0x10
mov dword [esp + 0xa4], 0xf
mov dword [esp + 0xa0], 0
mov byte [esp + 0x90], 0
jb 0x418cf5
push dword [esp + 0x48]
call fcn.0044f9f1
add esp, 4
cmp dword [esp + 0x2c], 0x10
mov dword [esp + 0x5c], 0xf
mov dword [esp + 0x58], 0
mov byte [esp + 0x48], 0
jb 0x418d1d
push dword [esp + 0x18]
call fcn.0044f9f1
add esp, 4
cmp dword [esp + 0xbc], 0x10
mov dword [esp + 0x2c], 0xf
mov dword [esp + 0x28], 0
mov byte [esp + 0x18], 0
jb 0x418ec3
push dword [esp + 0xa8]
jmp 0x418ebb
push esi
push 0
call dword [sym.imp.KERNEL32.dll_SizeofResource]
push esi
push 0
mov ebx, eax
call dword [sym.imp.KERNEL32.dll_LoadResource]
test eax, eax
je 0x418d79
test ebx, ebx
je 0x418d79
push eax
call dword [sym.imp.KERNEL32.dll_LockResource]
mov dword [edi], eax
mov dword [edi + 4], ebx
jmp 0x418ed0
sub esp, 0x18
mov ecx, esp
mov dword [esp + 0x28], esp
push 0
mov dword [ecx + 0x14], 0xf
mov dword [ecx + 0x10], 0
push 0x602695
mov byte [ecx], 0
call fcn.00404c00
mov edx, ebx
mov dword [esp + 0x100], 9
lea ecx, [esp + 0xd8]
call fcn.00418850
mov esi, eax
mov byte [esp + 0x100], 0xa
lea ecx, [esp + 0x78]
mov edx, dword [esp + 0x2c]
call fcn.00405860
push eax
mov edx, str.FindResource_err
mov byte [esp + 0x104], 0xb
lea ecx, [esp + 0x4c]
call fcn.00405a70
push str.nResSize
mov edx, eax
mov byte [esp + 0x108], 0xc
lea ecx, [esp + 0x98]
call fcn.00405b00
sub esp, 0x10
mov byte [esp + 0x118], 0xd
mov ecx, esp
mov edx, eax
push esi
call fcn.00405ba0
add esp, 4
mov byte [esp + 0x118], 0x11
call fcn.0044c6e0
add esp, 0x30
cmp dword [esp + 0x8c], 0x10
jb 0x418e3f
push dword [esp + 0x78]
call fcn.0044f9f1
add esp, 4
cmp dword [esp + 0x44], 0x10
mov dword [esp + 0x8c], 0xf
mov dword [esp + 0x88], 0
mov byte [esp + 0x78], 0
jb 0x418e6d
push dword [esp + 0x30]
call fcn.0044f9f1
add esp, 4
cmp dword [esp + 0x74], 0x10
mov dword [esp + 0x44], 0xf
mov dword [esp + 0x40], 0
mov byte [esp + 0x30], 0
jb 0x418e95
push dword [esp + 0x60]
call fcn.0044f9f1
add esp, 4
cmp dword [esp + 0xd4], 0x10
mov dword [esp + 0x74], 0xf
mov dword [esp + 0x70], 0
mov byte [esp + 0x60], 0
jb 0x418ec3
push dword [esp + 0xc0]
call fcn.0044f9f1
add esp, 4
mov dword [edi + 4], 0
mov dword [edi], 0
mov eax, edi
mov ecx, dword [esp + 0xe0]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov ecx, dword [esp + 0xc8]
xor ecx, esp
call fcn.005778cb
mov esp, ebp
pop ebp
ret