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

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x40
mov eax, dword [0x4302ec]
xor eax, ebp
mov dword [ebp - 4], eax
mov eax, dword [ebp + 8]
cmp dword [eax - 0xc], 0
push ebx
push esi
push edi
mov ebx, ecx
mov dword [ebp - 0x38], 0
jne 0x4046ec
mov edi, dword [sym.imp.KERNEL32.dll_GetModuleHandleW]
push 0x4288c0
push 0x12d
push 0
call edi
push eax
call dword [sym.imp.KERNEL32.dll_FindResourceW]
mov esi, eax
test esi, esi
je 0x404975
push esi
push 0
call edi
push eax
call dword [sym.imp.KERNEL32.dll_LoadResource]
test eax, eax
je 0x404975
push eax
call dword [sym.imp.KERNEL32.dll_LockResource]
mov dword [ebp - 0x34], eax
test eax, eax
je 0x404975
push esi
push 0
call edi
push eax
call dword [sym.imp.KERNEL32.dll_SizeofResource]
mov edi, eax
push edi
call fcn.0041981a
mov esi, eax
mov eax, dword [ebp - 0x34]
push edi
push eax
push esi
mov dword [ebp - 0x40], esi
call fcn.00418d00
add esp, 0x10
jmp 0x404774
push 0
push 0x80
push 3
push 0
push 1
push 0x80000000
push eax
call dword [sym.imp.KERNEL32.dll_CreateFileW]
mov dword [ebp - 0x34], eax
cmp eax, 0xffffffff
je 0x404975
push 0
lea ecx, [ebp - 0x3c]
push ecx
push 0x2c
lea edx, [ebp - 0x30]
push edx
push eax
mov dword [ebp - 0x3c], 0x2c
call dword [sym.imp.KERNEL32.dll_ReadFile]
mov eax, dword [ebp - 8]
push eax
call fcn.00402530
mov dword [ebp - 0x3c], eax
add eax, 0x2c
push eax
call fcn.0041981a
add esp, 8
mov edi, eax
push 0
mov ecx, 0xb
lea esi, [ebp - 0x30]
rep movsd dword es:[edi], dword [esi]
mov edx, dword [ebp - 0x3c]
mov esi, dword [ebp - 0x34]
lea ecx, [ebp - 0x3c]
push ecx
mov dword [ebp - 0x40], eax
push edx
add eax, 0x2c
push eax
push esi
call dword [sym.imp.KERNEL32.dll_ReadFile]
push esi
call dword [sym.imp.KERNEL32.dll_CloseHandle]
mov esi, dword [ebp - 0x40]
test esi, esi
je 0x404975
lea edi, [ebx + 0x5c]
mov ecx, 0xb
rep movsd dword es:[edi], dword [esi]
mov eax, dword [0x432304]
mov edx, dword [eax + 0xc]
mov ecx, 0x432304
call edx
mov ecx, dword [ebx + 0x7c]
add eax, 0x10
mov dword [ebp - 0x34], eax
mov eax, dword [ebx + 0x80]
push eax
push ecx
lea edx, [ebp - 0x34]
push str._cn__d_cxy__dhzr
push edx
call fcn.00403b00
push 0x10
lea eax, [ebx + 0x6c]
push eax
lea ecx, [ebp - 0x38]
push ecx
call fcn.00403c60
mov eax, dword [eax]
mov edx, dword [eax - 0xc]
add esp, 0x1c
push edx
push eax
lea ecx, [ebp - 0x34]
call fcn.00404170
mov eax, dword [ebp - 0x38]
add eax, 0xfffffff0
lea ecx, [eax + 0xc]
or edx, 0xffffffff
lock xadd dword [ecx], edx
dec edx
test edx, edx
jg 0x4047f4
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
mov ecx, dword [ebx + 0x84]
push ecx
call fcn.00402530
mov edi, eax
push edi
call fcn.0041981a
mov edx, dword [ebp - 0x34]
mov esi, eax
push esi
push edx
push edi
mov edi, dword [ebp - 0x40]
lea eax, [edi + 0x2c]
push eax
mov dword [ebp - 0x38], esi
call fcn.004027d0
push edi
call fcn.0041980f
mov ecx, dword [esi]
mov dword [ebx + 0x2c], ecx
mov edx, dword [esi + 4]
mov dword [ebx + 0x30], edx
mov eax, dword [esi + 8]
mov dword [ebx + 0x34], eax
mov ecx, dword [esi + 0xc]
mov dword [ebx + 0x38], ecx
mov edx, dword [esi + 0x10]
mov dword [ebx + 0x3c], edx
mov eax, dword [esi + 0x14]
mov dword [ebx + 0x40], eax
mov ecx, dword [esi + 0x18]
mov dword [ebx + 0x44], ecx
mov edx, dword [esi + 0x1c]
mov dword [ebx + 0x48], edx
mov eax, dword [esi + 0x20]
mov dword [ebx + 0x4c], eax
mov ecx, dword [esi + 0x24]
mov dword [ebx + 0x50], ecx
mov edx, dword [esi + 0x28]
mov dword [ebx + 0x54], edx
mov eax, dword [esi + 0x2c]
add esi, 0x30
mov dword [ebx + 0x58], eax
lea edi, [ebx + 0x10]
mov ecx, 7
add esp, 0x1c
cmp dword [ebx + 0x44], 0
rep movsd dword es:[edi], dword [esi]
mov edi, dword [ebp - 0x38]
mov esi, 0x4c
jbe 0x4048a8
lea ecx, [edi + 0x4c]
push ecx
lea edx, [ebx + 0x88]
push 0x4288f8
push edx
call fcn.00403b00
mov esi, dword [ebx + 0x44]
add esp, 0xc
add esi, 0x4c
cmp dword [ebx + 0x48], 0
jbe 0x4048c9
lea eax, [esi + edi]
push eax
lea ecx, [ebx + 0x8c]
push 0x4288f8
push ecx
call fcn.00403b00
add esp, 0xc
add esi, dword [ebx + 0x48]
cmp dword [ebx + 0x4c], 0
jbe 0x4048e1
lea edx, [esi + edi]
push edx
lea ecx, [ebx + 0x90]
call fcn.00403b80
add esi, dword [ebx + 0x4c]
cmp dword [ebx + 0x50], 0
jbe 0x4048f9
lea eax, [esi + edi]
push eax
lea ecx, [ebx + 0x94]
call fcn.00403b80
add esi, dword [ebx + 0x50]
cmp dword [ebx + 0x54], 0
jbe 0x404911
lea ecx, [esi + edi]
push ecx
lea ecx, [ebx + 0x98]
call fcn.00403b80
add esi, dword [ebx + 0x54]
cmp dword [ebx + 0x58], 0
jbe 0x404929
lea edx, [esi + edi]
push edx
lea ecx, [ebx + 0x9c]
call fcn.00403b80
add esi, dword [ebx + 0x58]
cmp dword [ebx + 0x10], 0
jbe 0x404946
add esi, edi
push esi
push 0x4288f8
add ebx, 0xa0
push ebx
call fcn.00403b00
add esp, 0xc
push edi
mov dword [ebp - 0x38], 1
call fcn.0041980f
mov eax, dword [ebp - 0x34]
add eax, 0xfffffff0
add esp, 4
lea ecx, [eax + 0xc]
or edx, 0xffffffff
lock xadd dword [ecx], edx
dec edx
test edx, edx
jg 0x404975
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
mov eax, dword [ebp + 8]
add eax, 0xfffffff0
lea ecx, [eax + 0xc]
or edx, 0xffffffff
lock xadd dword [ecx], edx
dec edx
pop edi
pop esi
pop ebx
test edx, edx
jg 0x404997
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
mov ecx, dword [ebp - 4]
mov eax, dword [ebp - 0x38]
xor ecx, ebp
call fcn.00418c6f
mov esp, ebp
pop ebp
ret 4