Function at 0x43cd71
Capabilities:
Extract resource via kernel32 functions
Get file size
Read file on windows

Disassembly:
push 0x3ec
mov eax, 0x4a14c4
call fcn.00482ae5
mov dword [ebp - 0x3f8], edx
mov eax, dword [ebp + 0xc]
xor edi, edi
mov esi, dword [ebp + 0x1c]
mov dword [ebp - 0x3f4], eax
mov eax, dword [ebp + 0x10]
mov dword [ebp - 0x3f0], eax
mov eax, dword [ebp + 0x14]
mov dword [ebp - 0x3ec], eax
mov eax, dword [ebp + 0x18]
mov dword [ebp - 0x3e8], eax
test ecx, ecx
jne 0x43cfea
push 0x4d3b20
lea ecx, [ebp - 0x9c]
call fcn.004270c3
mov dword [ebp - 4], edi
mov eax, dword [0x4d3ba8]
cmp word [eax], di
jne 0x43ce7f
cmp dword [ebp + 8], edi
je 0x43cdeb
push dword [ebp + 8]
lea ecx, [ebp - 0x9c]
call fcn.004270f8
push edi
push 0x80
push 3
push edi
push 1
push SysReAllocString
push dword [ebp - 0x9c]
call dword [sym.imp.KERNEL32.dll_CreateFileW]
mov ebx, eax
cmp ebx, 0xffffffff
jne 0x43ce22
or dword [ebp - 4], 0xffffffff
lea ecx, [ebp - 0x9c]
call fcn.004270e8
jmp 0x43d063
push edi
push ebx
call dword [sym.imp.KERNEL32.dll_GetFileSize]
mov esi, eax
test esi, esi
je 0x43ce0e
push esi
mov dword [ebp - 0x3e0], edi
call fcn.004827b9
pop ecx
push 0
mov edi, eax
lea eax, [ebp - 0x3e0]
push eax
push esi
push edi
push ebx
call dword [sym.imp.KERNEL32.dll_ReadFile]
push ebx
call dword [sym.imp.KERNEL32.dll_CloseHandle]
cmp dword [ebp - 0x3e0], esi
je 0x43cfd9
push edi
call fcn.00482102
pop ecx
or dword [ebp - 4], 0xffffffff
lea ecx, [ebp - 0x9c]
call fcn.004270e8
jmp 0x43d061
push eax
lea ecx, [ebp - 0x9c]
call fcn.004270f8
push 0x4d3c30
lea ecx, [ebp - 0x1ac]
call fcn.004270c3
mov byte [ebp - 4], 1
cmp byte [0x4d3a88], 0
je 0x43ceb0
mov ebx, dword [0x4d6808]
jmp 0x43cedc
mov ecx, dword [ebp - 0x1ac]
call fcn.0041ab24
mov ecx, dword [ebp - 0x9c]
mov esi, eax
push esi
push 2
xor edx, edx
call fcn.00413a5f
mov ebx, eax
pop ecx
pop ecx
test esi, esi
je 0x43cedc
push esi
call fcn.00482102
pop ecx
test ebx, ebx
jne 0x43cef0
lea ecx, [ebp - 0x1ac]
call fcn.004270e8
jmp 0x43ce0e
push 0xffffffffffffffff
push dword [ebp + 8]
lea ecx, [ebp - 0x124]
mov dword [ebp - 0x3e0], edi
call fcn.0042709f
push 0x4ad330
push 0x4ac5e8
lea ecx, [ebp - 0x124]
mov byte [ebp - 4], 2
call fcn.00427528
mov edx, dword [ebp - 0x124]
lea eax, [ebp - 0x3dc]
push eax
lea eax, [ebp - 0x3e0]
push eax
push ecx
mov ecx, ebx
call fcn.00413ad9
add esp, 0xc
test eax, eax
je 0x43cf4f
lea ecx, [ebp - 0x124]
call fcn.004270e8
jmp 0x43cee0
mov esi, dword [ebp - 0x1b0]
test esi, esi
je 0x43cf42
push esi
call fcn.004827b9
mov edx, dword [ebp - 0x3e0]
mov edi, eax
pop ecx
push 3
push esi
push edi
mov ecx, ebx
call fcn.00413b0c
add esp, 0xc
test eax, eax
je 0x43cfb3
cmp eax, 0x600
je 0x43cfb3
push edi
call fcn.00482102
cmp byte [0x4d3a88], 0
pop ecx
jne 0x43cf98
mov ecx, ebx
call fcn.00413b3f
lea ecx, [ebp - 0x124]
call fcn.004270e8
lea ecx, [ebp - 0x1ac]
call fcn.004270e8
jmp 0x43ce6b
cmp byte [0x4d3a88], 0
jne 0x43cfc3
mov ecx, ebx
call fcn.00413b3f
lea ecx, [ebp - 0x124]
call fcn.004270e8
lea ecx, [ebp - 0x1ac]
call fcn.004270e8
or dword [ebp - 4], 0xffffffff
lea ecx, [ebp - 0x9c]
call fcn.004270e8
jmp 0x43d05d
test esi, esi
jne 0x43cffd
mov esi, dword [0x4d680c]
test esi, esi
cmove esi, dword [0x4d6804]
push ecx
push dword [ebp + 8]
push esi
call dword [sym.imp.KERNEL32.dll_FindResourceW]
mov ebx, eax
test ebx, ebx
je 0x43d063
push ebx
push esi
call dword [sym.imp.KERNEL32.dll_LoadResource]
mov dword [ebp - 0x3e4], eax
push ebx
test eax, eax
jne 0x43d029
call dword [sym.imp.KERNEL32.dll_FreeResource]
jmp 0x43d063
push esi
call dword [sym.imp.KERNEL32.dll_SizeofResource]
mov esi, eax
test esi, esi
je 0x43d063
push esi
call fcn.004827b9
pop ecx
push esi
push dword [ebp - 0x3e4]
mov edi, eax
call dword [sym.imp.KERNEL32.dll_LockResource]
push eax
push edi
call fcn.004844a0
add esp, 0xc
push ebx
call dword [sym.imp.KERNEL32.dll_FreeResource]
test edi, edi
jne 0x43d0d4
xor edi, edi
push edi
push 0x80
push 3
push edi
push 1
push SysReAllocString
push dword [ebp + 8]
call dword [sym.imp.KERNEL32.dll_CreateFileW]
mov ebx, eax
cmp ebx, 0xffffffff
je 0x43d0c8
push edi
push ebx
call dword [sym.imp.KERNEL32.dll_GetFileSize]
mov esi, eax
test esi, esi
je 0x43d0c8
push esi
mov dword [ebp - 0x3e4], edi
call fcn.004827b9
pop ecx
push 0
mov edi, eax
lea eax, [ebp - 0x3e4]
push eax
push esi
push edi
push ebx
call dword [sym.imp.KERNEL32.dll_ReadFile]
push ebx
call dword [sym.imp.KERNEL32.dll_CloseHandle]
cmp dword [ebp - 0x3e4], esi
je 0x43d0d0
push edi
call fcn.00482102
pop ecx
xor eax, eax
call fcn.00482aa3
ret
test edi, edi
je 0x43d0c8
push dword [ebp - 0x3e8]
mov edx, esi
mov ecx, edi
push dword [ebp - 0x3ec]
push dword [ebp - 0x3f0]
push dword [ebp - 0x3f4]
push dword [ebp - 0x3f8]
call fcn.0043d10b
add esp, 0x14
mov esi, eax
push edi
call fcn.00482102
pop ecx
mov eax, esi
jmp 0x43d0ca