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

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x48
mov eax, dword [0x433024]
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 0x4037a3
mov esi, dword [sym.imp.KERNEL32.dll_GetModuleHandleW]
push 0x42ce08
push 0x12d
push edi
call esi
push eax
call dword [sym.imp.KERNEL32.dll_FindResourceW]
mov dword [ebp - 0x38], eax
cmp eax, edi
je 0x40379b
push eax
push edi
call esi
push eax
call dword [sym.imp.KERNEL32.dll_LoadResource]
cmp eax, edi
je 0x40379b
push eax
call dword [sym.imp.KERNEL32.dll_LockResource]
mov dword [ebp - 0x3c], eax
cmp eax, edi
je 0x40379b
push dword [ebp - 0x38]
push edi
call esi
push eax
call dword [sym.imp.KERNEL32.dll_SizeofResource]
mov esi, eax
push esi
call fcn.0041679c
pop ecx
push esi
push dword [ebp - 0x3c]
mov dword [ebp - 0x44], eax
push eax
call fcn.00416370
add esp, 0xc
mov esi, dword [ebp - 0x44]
cmp esi, edi
je 0x40379b
push 0xb
pop ecx
lea edi, [ebx + 0x108]
rep movsd dword es:[edi], dword [esi]
mov eax, dword [0x4341fc]
mov ecx, 0x4341fc
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.00402bdd
add esp, 0xc
lea eax, [ebx + 0x118]
push eax
lea eax, [ebp - 0x40]
push eax
push 0x10
pop ecx
call fcn.004025a5
pop ecx
pop ecx
lea ecx, [ebp - 0x38]
call fcn.0040349a
mov eax, dword [ebp - 0x40]
add eax, 0xfffffff0
call fcn.004018b2
mov ecx, dword [ebx + 0x130]
call fcn.00427a70
mov esi, eax
push esi
call fcn.0041679c
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.00427d80
pop ecx
push dword [ebp - 0x44]
call fcn.00416b39
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 0x4036d1
add eax, esi
push eax
push 0x42ce14
lea eax, [ebx + 0x134]
call fcn.00402bdd
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 0x4036dd
add esi, ecx
cmp dword [ebx + 0xf8], 0
jbe 0x4036fe
add eax, esi
push eax
lea eax, [ebx + 0x138]
push eax
call fcn.004028bb
add esi, dword [ebx + 0xf8]
mov eax, dword [ebp - 0x34]
cmp dword [ebx + 0xfc], 0
jbe 0x40371f
add eax, esi
push eax
lea eax, [ebx + 0x13c]
push eax
call fcn.004028bb
add esi, dword [ebx + 0xfc]
mov eax, dword [ebp - 0x34]
cmp dword [ebx + 0x100], 0
jbe 0x403740
add eax, esi
push eax
lea eax, [ebx + 0x140]
push eax
call fcn.004028bb
add esi, dword [ebx + 0x100]
mov eax, dword [ebp - 0x34]
cmp dword [ebx + 0x104], 0
jbe 0x403761
add eax, esi
push eax
lea eax, [ebx + 0x144]
push eax
call fcn.004028bb
add esi, dword [ebx + 0x104]
mov eax, dword [ebp - 0x34]
cmp dword [ebx + 0xbc], 0
jbe 0x403782
add esi, eax
push esi
push 0x42ce14
lea eax, [ebx + 0x148]
call fcn.00402bdd
mov eax, dword [ebp - 0x34]
pop ecx
pop ecx
push eax
mov dword [ebp - 0x40], 1
call fcn.00416b39
mov eax, dword [ebp - 0x38]
pop ecx
add eax, 0xfffffff0
call fcn.004018b2
mov edi, dword [ebp - 0x40]
jmp 0x40383d
push edi
push 0x80
push 3
push edi
push 1
push SysReAllocString
push eax
call dword [sym.imp.KERNEL32.dll_CreateFileW]
mov dword [ebp - 0x34], eax
cmp eax, 0xffffffff
je 0x40379b
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 0x403834
cmp byte [ebp - 0x2f], 0x44
jne 0x403834
mov ecx, dword [ebp - 8]
call fcn.00427a70
mov dword [ebp - 0x3c], eax
add eax, 0x2c
push eax
call fcn.0041679c
pop ecx
mov edi, eax
push 0x2c
lea eax, [ebp - 0x30]
push eax
push edi
mov dword [ebp - 0x44], edi
call fcn.00416370
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 0x4035d6
push dword [ebp - 0x34]
call dword [sym.imp.KERNEL32.dll_CloseHandle]
mov eax, dword [ebp + 8]
add eax, 0xfffffff0
call fcn.004018b2
mov ecx, dword [ebp - 4]
mov eax, edi
pop edi
pop esi
xor ecx, ebp
pop ebx
call fcn.00416201
leave
ret 4