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

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x48
mov eax, dword [0x42e07c]
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 0x402f66
mov esi, dword [sym.imp.KERNEL32.dll_GetModuleHandleW]
push 0x428c28
push 0x12d
push edi
call esi
push eax
call dword [sym.imp.KERNEL32.dll_FindResourceW]
mov dword [ebp - 0x38], eax
cmp eax, edi
je 0x402f5e
push eax
push edi
call esi
push eax
call dword [sym.imp.KERNEL32.dll_LoadResource]
cmp eax, edi
je 0x402f5e
push eax
call dword [sym.imp.KERNEL32.dll_LockResource]
mov dword [ebp - 0x3c], eax
cmp eax, edi
je 0x402f5e
push dword [ebp - 0x38]
push edi
call esi
push eax
call dword [sym.imp.KERNEL32.dll_SizeofResource]
mov esi, eax
push esi
call fcn.0041492c
pop ecx
push esi
push dword [ebp - 0x3c]
mov dword [ebp - 0x44], eax
push eax
call fcn.00414500
add esp, 0xc
mov esi, dword [ebp - 0x44]
cmp esi, edi
je 0x402f5e
push 0xb
pop ecx
lea edi, [ebx + 0x5c]
rep movsd dword es:[edi], dword [esi]
mov eax, dword [section..data]
mov ecx, section..data
call dword [eax + 0xc]
push dword [ebx + 0x80]
add eax, 0x10
push dword [ebx + 0x7c]
mov dword [ebp - 0x38], eax
push str._cn__d_cxy__dhzr
lea eax, [ebp - 0x38]
call fcn.004023e7
add esp, 0xc
lea eax, [ebx + 0x6c]
push eax
lea eax, [ebp - 0x40]
push eax
push 0x10
pop ecx
call fcn.00401e5b
pop ecx
pop ecx
lea ecx, [ebp - 0x38]
call fcn.00402c96
mov eax, dword [ebp - 0x40]
add eax, 0xfffffff0
call fcn.00401159
mov ecx, dword [ebx + 0x84]
call fcn.00424760
mov esi, eax
push esi
call fcn.0041492c
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.00424a10
pop ecx
push dword [ebp - 0x44]
call fcn.00414d4a
mov ebx, dword [ebp - 0x48]
mov eax, dword [ebp - 0x34]
pop ecx
push 6
pop ecx
push 6
lea edi, [ebx + 0x2c]
mov esi, eax
rep movsd dword es:[edi], dword [esi]
pop ecx
push 7
lea esi, [eax + 0x18]
lea edi, [ebx + 0x44]
rep movsd dword es:[edi], dword [esi]
cmp dword [ebx + 0x44], 0
pop ecx
lea edi, [ebx + 0x10]
lea esi, [eax + 0x30]
rep movsd dword es:[edi], dword [esi]
push 0x4c
pop esi
mov edi, 0x428c34
jbe 0x402eb6
add eax, esi
push eax
push edi
lea eax, [ebx + 0x88]
call fcn.004023e7
mov esi, dword [ebx + 0x44]
mov eax, dword [ebp - 0x34]
pop ecx
pop ecx
add esi, 0x4c
mov ecx, dword [ebx + 0x48]
test ecx, ecx
je 0x402ebf
add esi, ecx
cmp dword [ebx + 0x4c], 0
jbe 0x402eda
add eax, esi
push eax
lea eax, [ebx + 0x8c]
push eax
call fcn.004020c5
add esi, dword [ebx + 0x4c]
mov eax, dword [ebp - 0x34]
cmp dword [ebx + 0x50], 0
jbe 0x402ef5
add eax, esi
push eax
lea eax, [ebx + 0x90]
push eax
call fcn.004020c5
add esi, dword [ebx + 0x50]
mov eax, dword [ebp - 0x34]
cmp dword [ebx + 0x54], 0
jbe 0x402f10
add eax, esi
push eax
lea eax, [ebx + 0x94]
push eax
call fcn.004020c5
add esi, dword [ebx + 0x54]
mov eax, dword [ebp - 0x34]
cmp dword [ebx + 0x58], 0
jbe 0x402f2b
add eax, esi
push eax
lea eax, [ebx + 0x98]
push eax
call fcn.004020c5
add esi, dword [ebx + 0x58]
mov eax, dword [ebp - 0x34]
cmp dword [ebx + 0x10], 0
jbe 0x402f45
add esi, eax
push esi
push edi
lea eax, [ebx + 0x9c]
call fcn.004023e7
mov eax, dword [ebp - 0x34]
pop ecx
pop ecx
push eax
mov dword [ebp - 0x40], 1
call fcn.00414d4a
mov eax, dword [ebp - 0x38]
pop ecx
add eax, 0xfffffff0
call fcn.00401159
mov edi, dword [ebp - 0x40]
jmp 0x403000
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 0x402f5e
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 0x402ff7
cmp byte [ebp - 0x2f], 0x44
jne 0x402ff7
mov ecx, dword [ebp - 8]
call fcn.00424760
mov dword [ebp - 0x3c], eax
add eax, 0x2c
push eax
call fcn.0041492c
pop ecx
mov edi, eax
push 0x2c
lea eax, [ebp - 0x30]
push eax
push edi
mov dword [ebp - 0x44], edi
call fcn.00414500
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 0x402dd2
push dword [ebp - 0x34]
call dword [sym.imp.KERNEL32.dll_CloseHandle]
mov eax, dword [ebp + 8]
add eax, 0xfffffff0
call fcn.00401159
mov ecx, dword [ebp - 4]
mov eax, edi
pop edi
pop esi
xor ecx, ebp
pop ebx
call fcn.004144e4
leave
ret 4