Function at 0x418730
Capabilities:
Extract resource via kernel32 functions

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x5ae46c
mov eax, dword fs:[0]
push eax
sub esp, 0xcc
mov eax, dword [0x627490]
xor eax, ebp
mov dword [ebp - 0x10], eax
push ebx
push esi
push edi
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov ebx, edx
mov dword [ebp - 0x18], 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 [ebp - 0x14], eax
test esi, esi
jne 0x4188a9
sub esp, 0x18
mov ecx, esp
mov dword [ebp - 0x18], esp
push esi
mov dword [ecx + 0x14], 0xf
mov dword [ecx + 0x10], esi
push 0x5fa63d
mov byte [ecx], 0
call fcn.00404c00
mov dword [ebp - 4], esi
lea ecx, [ebp - 0xc0]
mov edx, dword [ebp - 0x14]
call fcn.004057e0
mov esi, eax
mov edx, ebx
mov byte [ebp - 4], 1
lea ecx, [ebp - 0x30]
call fcn.00405860
push eax
mov edx, str.FindResource_err
mov byte [ebp - 4], 2
lea ecx, [ebp - 0x60]
call fcn.00405a70
push str.ierr
mov edx, eax
mov byte [ebp - 4], 3
lea ecx, [ebp - 0xa8]
call fcn.00405b00
sub esp, 0x10
mov byte [ebp - 4], 4
mov ecx, esp
mov edx, eax
push esi
call fcn.00405ba0
add esp, 4
mov byte [ebp - 4], 8
call fcn.004459b0
add esp, 0x30
cmp dword [ebp - 0x94], 0x10
jb 0x418830
push dword [ebp - 0xa8]
call fcn.00448bd1
add esp, 4
cmp dword [ebp - 0x4c], 0x10
mov dword [ebp - 0x94], 0xf
mov dword [ebp - 0x98], 0
mov byte [ebp - 0xa8], 0
jb 0x41885c
push dword [ebp - 0x60]
call fcn.00448bd1
add esp, 4
cmp dword [ebp - 0x1c], 0x10
mov dword [ebp - 0x4c], 0xf
mov dword [ebp - 0x50], 0
mov byte [ebp - 0x60], 0
jb 0x41887f
push dword [ebp - 0x30]
call fcn.00448bd1
add esp, 4
cmp dword [ebp - 0xac], 0x10
mov dword [ebp - 0x1c], 0xf
mov dword [ebp - 0x20], 0
mov byte [ebp - 0x30], 0
jb 0x4189ee
push dword [ebp - 0xc0]
jmp 0x4189e6
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 0x4188d6
test ebx, ebx
je 0x4188d6
push eax
call dword [sym.imp.KERNEL32.dll_LockResource]
mov dword [edi], eax
mov dword [edi + 4], ebx
jmp 0x4189fb
sub esp, 0x18
mov ecx, esp
mov dword [ebp - 0x14], esp
push 0
mov dword [ecx + 0x14], 0xf
mov dword [ecx + 0x10], 0
push 0x5fa63d
mov byte [ecx], 0
call fcn.00404c00
mov edx, ebx
mov dword [ebp - 4], 9
lea ecx, [ebp - 0xd8]
call fcn.00418590
mov esi, eax
mov byte [ebp - 4], 0xa
lea ecx, [ebp - 0x78]
mov edx, dword [ebp - 0x18]
call fcn.00405860
push eax
mov edx, str.FindResource_err
mov byte [ebp - 4], 0xb
lea ecx, [ebp - 0x48]
call fcn.00405a70
push str.nResSize
mov edx, eax
mov byte [ebp - 4], 0xc
lea ecx, [ebp - 0x90]
call fcn.00405b00
sub esp, 0x10
mov byte [ebp - 4], 0xd
mov ecx, esp
mov edx, eax
push esi
call fcn.00405ba0
add esp, 4
mov byte [ebp - 4], 0x11
call fcn.004459b0
add esp, 0x30
cmp dword [ebp - 0x7c], 0x10
jb 0x41897c
push dword [ebp - 0x90]
call fcn.00448bd1
add esp, 4
cmp dword [ebp - 0x34], 0x10
mov dword [ebp - 0x7c], 0xf
mov dword [ebp - 0x80], 0
mov byte [ebp - 0x90], 0
jb 0x4189a2
push dword [ebp - 0x48]
call fcn.00448bd1
add esp, 4
cmp dword [ebp - 0x64], 0x10
mov dword [ebp - 0x34], 0xf
mov dword [ebp - 0x38], 0
mov byte [ebp - 0x48], 0
jb 0x4189c5
push dword [ebp - 0x78]
call fcn.00448bd1
add esp, 4
cmp dword [ebp - 0xc4], 0x10
mov dword [ebp - 0x64], 0xf
mov dword [ebp - 0x68], 0
mov byte [ebp - 0x78], 0
jb 0x4189ee
push dword [ebp - 0xd8]
call fcn.00448bd1
add esp, 4
mov dword [edi + 4], 0
mov dword [edi], 0
mov eax, edi
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov ecx, dword [ebp - 0x10]
xor ecx, ebp
call fcn.00570ab6
mov esp, ebp
pop ebp
ret