Function at 0x403531
Capabilities:
Extract resource via kernel32 functions
Read file on windows

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x48
mov eax, dword [0x42f064]
xor eax, ebp
mov dword [ebp - 4], eax
mov eax, dword [ebp + 8]
push ebx
push esi
push edi
xor edi, edi
mov ebx, ecx
mov dword [ebp - 0x48], ebx
mov dword [ebp - 0x40], edi
cmp dword [eax - 0xc], edi
jne 0x403797
mov esi, dword [sym.imp.KERNEL32.dll_GetModuleHandleW]
push 0x429de0
push 0x12d
push edi
call esi
push eax
call dword [sym.imp.KERNEL32.dll_FindResourceW]
mov dword [ebp - 0x38], eax
cmp eax, edi
je 0x40378f
push eax
push edi
call esi
push eax
call dword [sym.imp.KERNEL32.dll_LoadResource]
cmp eax, edi
je 0x40378f
push eax
call dword [sym.imp.KERNEL32.dll_LockResource]
mov dword [ebp - 0x3c], eax
cmp eax, edi
je 0x40378f
push dword [ebp - 0x38]
push edi
call esi
push eax
call dword [sym.imp.KERNEL32.dll_SizeofResource]
mov esi, eax
push esi
call fcn.00414ccc
pop ecx
push esi
push dword [ebp - 0x3c]
mov dword [ebp - 0x44], eax
push eax
call fcn.004148a0
add esp, 0xc
mov esi, dword [ebp - 0x44]
cmp esi, edi
je 0x40378f
push 0xb
pop ecx
lea edi, [ebx + 0x108]
rep movsd dword es:[edi], dword [esi]
mov eax, dword [0x43024c]
mov ecx, 0x43024c
call dword [eax + 0xc]
push dword [ebx + 0x12c]
add eax, 0x10
push dword [ebx + 0x128]
mov dword [ebp - 0x38], eax
push str._cn__d_cxy__dhzr
lea eax, [ebp - 0x38]
call fcn.00402bdf
add esp, 0xc
lea eax, [ebx + 0x118]
push eax
lea eax, [ebp - 0x40]
push eax
push 0x10
pop ecx
call fcn.004025a7
pop ecx
pop ecx
lea ecx, [ebp - 0x38]
call fcn.0040348e
mov eax, dword [ebp - 0x40]
add eax, 0xfffffff0
call fcn.004018b4
mov ecx, dword [ebx + 0x130]
call fcn.00424ec0
mov esi, eax
push esi
call fcn.00414ccc
pop ecx
mov ecx, dword [ebp - 0x38]
push esi
mov esi, dword [ebp - 0x44]
add esi, 0x2c
mov ebx, eax
mov dword [ebp - 0x34], eax
call fcn.004251d0
pop ecx
push dword [ebp - 0x44]
call fcn.00415069
mov ebx, dword [ebp - 0x48]
mov eax, dword [ebp - 0x34]
pop ecx
push 6
pop ecx
push 6
lea edi, [ebx + 0xd8]
mov esi, eax
rep movsd dword es:[edi], dword [esi]
pop ecx
push 7
lea esi, [eax + 0x18]
lea edi, [ebx + 0xf0]
rep movsd dword es:[edi], dword [esi]
cmp dword [ebx + 0xf0], 0
pop ecx
lea edi, [ebx + 0xbc]
lea esi, [eax + 0x30]
push 0x4c
rep movsd dword es:[edi], dword [esi]
pop esi
jbe 0x4036c5
add eax, esi
push eax
push 0x429dec
lea eax, [ebx + 0x134]
call fcn.00402bdf
mov esi, dword [ebx + 0xf0]
mov eax, dword [ebp - 0x34]
pop ecx
pop ecx
add esi, 0x4c
mov ecx, dword [ebx + 0xf4]
test ecx, ecx
je 0x4036d1
add esi, ecx
cmp dword [ebx + 0xf8], 0
jbe 0x4036f2
add eax, esi
push eax
lea eax, [ebx + 0x138]
push eax
call fcn.004028bd
add esi, dword [ebx + 0xf8]
mov eax, dword [ebp - 0x34]
cmp dword [ebx + 0xfc], 0
jbe 0x403713
add eax, esi
push eax
lea eax, [ebx + 0x13c]
push eax
call fcn.004028bd
add esi, dword [ebx + 0xfc]
mov eax, dword [ebp - 0x34]
cmp dword [ebx + 0x100], 0
jbe 0x403734
add eax, esi
push eax
lea eax, [ebx + 0x140]
push eax
call fcn.004028bd
add esi, dword [ebx + 0x100]
mov eax, dword [ebp - 0x34]
cmp dword [ebx + 0x104], 0
jbe 0x403755
add eax, esi
push eax
lea eax, [ebx + 0x144]
push eax
call fcn.004028bd
add esi, dword [ebx + 0x104]
mov eax, dword [ebp - 0x34]
cmp dword [ebx + 0xbc], 0
jbe 0x403776
add esi, eax
push esi
push 0x429dec
lea eax, [ebx + 0x148]
call fcn.00402bdf
mov eax, dword [ebp - 0x34]
pop ecx
pop ecx
push eax
mov dword [ebp - 0x40], 1
call fcn.00415069
mov eax, dword [ebp - 0x38]
pop ecx
add eax, 0xfffffff0
call fcn.004018b4
mov edi, dword [ebp - 0x40]
jmp 0x403831
push edi
push 0x80
push 3
push edi
push 1
push 0x80000000
push eax
call dword [sym.imp.KERNEL32.dll_CreateFileW]
mov dword [ebp - 0x34], eax
cmp eax, 0xffffffff
je 0x40378f
mov esi, dword [sym.imp.KERNEL32.dll_ReadFile]
push 0x2c
pop eax
push edi
lea ecx, [ebp - 0x3c]
push ecx
push eax
mov dword [ebp - 0x3c], eax
lea eax, [ebp - 0x30]
push eax
push dword [ebp - 0x34]
call esi
cmp byte [ebp - 0x30], 0x55
jne 0x403828
cmp byte [ebp - 0x2f], 0x44
jne 0x403828
mov ecx, dword [ebp - 8]
call fcn.00424ec0
mov dword [ebp - 0x3c], eax
add eax, 0x2c
push eax
call fcn.00414ccc
pop ecx
mov edi, eax
push 0x2c
lea eax, [ebp - 0x30]
push eax
push edi
mov dword [ebp - 0x44], edi
call fcn.004148a0
add esp, 0xc
push 0
lea eax, [ebp - 0x3c]
push eax
push dword [ebp - 0x3c]
add edi, 0x2c
push edi
push dword [ebp - 0x34]
call esi
push dword [ebp - 0x34]
call dword [sym.imp.KERNEL32.dll_CloseHandle]
xor edi, edi
jmp 0x4035ca
push dword [ebp - 0x34]
call dword [sym.imp.KERNEL32.dll_CloseHandle]
mov eax, dword [ebp + 8]
add eax, 0xfffffff0
call fcn.004018b4
mov ecx, dword [ebp - 4]
mov eax, edi
pop edi
pop esi
xor ecx, ebp
pop ebx
call fcn.00414657
leave
ret 4