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

Disassembly:
push 0x3ec
mov eax, 0x49d79a
call fcn.0047f7dc
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 0x43b2c1
push 0x4d0aa8
lea ecx, [ebp - 0x9c]
call fcn.00425270
mov dword [ebp - 4], edi
mov eax, dword [0x4d0b40]
cmp word [eax], di
jne 0x43b156
cmp dword [ebp + 8], edi
je 0x43b0c2
push dword [ebp + 8]
lea ecx, [ebp - 0x9c]
call fcn.004252a5
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 0x43b0f9
or dword [ebp - 4], 0xffffffff
lea ecx, [ebp - 0x9c]
call fcn.00425295
jmp 0x43b33a
push edi
push ebx
call dword [sym.imp.KERNEL32.dll_GetFileSize]
mov esi, eax
test esi, esi
je 0x43b0e5
push esi
mov dword [ebp - 0x3e0], edi
call fcn.0047f4b0
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 0x43b2b0
push edi
call fcn.0047ecd0
pop ecx
or dword [ebp - 4], 0xffffffff
lea ecx, [ebp - 0x9c]
call fcn.00425295
jmp 0x43b338
push eax
lea ecx, [ebp - 0x9c]
call fcn.004252a5
push 0x4d0bd8
lea ecx, [ebp - 0x1ac]
call fcn.00425270
mov byte [ebp - 4], 1
cmp byte [0x4d0a28], 0
je 0x43b187
mov ebx, dword [0x4d37a8]
jmp 0x43b1b3
mov ecx, dword [ebp - 0x1ac]
call fcn.00418e51
mov ecx, dword [ebp - 0x9c]
mov esi, eax
push esi
push 2
xor edx, edx
call fcn.00411f89
mov ebx, eax
pop ecx
pop ecx
test esi, esi
je 0x43b1b3
push esi
call fcn.0047ecd0
pop ecx
test ebx, ebx
jne 0x43b1c7
lea ecx, [ebp - 0x1ac]
call fcn.00425295
jmp 0x43b0e5
push 0xffffffffffffffff
push dword [ebp + 8]
lea ecx, [ebp - 0x124]
mov dword [ebp - 0x3e0], edi
call fcn.0042524c
push 0x4ad218
push 0x4ac4cc
lea ecx, [ebp - 0x124]
mov byte [ebp - 4], 2
call fcn.004256b6
mov edx, dword [ebp - 0x124]
lea eax, [ebp - 0x3dc]
push eax
lea eax, [ebp - 0x3e0]
push eax
push ecx
mov ecx, ebx
call fcn.00412003
add esp, 0xc
test eax, eax
je 0x43b226
lea ecx, [ebp - 0x124]
call fcn.00425295
jmp 0x43b1b7
mov esi, dword [ebp - 0x1b0]
test esi, esi
je 0x43b219
push esi
call fcn.0047f4b0
mov edx, dword [ebp - 0x3e0]
mov edi, eax
pop ecx
push 3
push esi
push edi
mov ecx, ebx
call fcn.00412036
add esp, 0xc
test eax, eax
je 0x43b28a
cmp eax, 0x600
je 0x43b28a
push edi
call fcn.0047ecd0
cmp byte [0x4d0a28], 0
pop ecx
jne 0x43b26f
mov ecx, ebx
call fcn.00412069
lea ecx, [ebp - 0x124]
call fcn.00425295
lea ecx, [ebp - 0x1ac]
call fcn.00425295
jmp 0x43b142
cmp byte [0x4d0a28], 0
jne 0x43b29a
mov ecx, ebx
call fcn.00412069
lea ecx, [ebp - 0x124]
call fcn.00425295
lea ecx, [ebp - 0x1ac]
call fcn.00425295
or dword [ebp - 4], 0xffffffff
lea ecx, [ebp - 0x9c]
call fcn.00425295
jmp 0x43b334
test esi, esi
jne 0x43b2d4
mov esi, dword [0x4d37ac]
test esi, esi
cmove esi, dword [0x4d37a4]
push ecx
push dword [ebp + 8]
push esi
call dword [sym.imp.KERNEL32.dll_FindResourceW]
mov ebx, eax
test ebx, ebx
je 0x43b33a
push ebx
push esi
call dword [sym.imp.KERNEL32.dll_LoadResource]
mov dword [ebp - 0x3e4], eax
push ebx
test eax, eax
jne 0x43b300
call dword [sym.imp.KERNEL32.dll_FreeResource]
jmp 0x43b33a
push esi
call dword [sym.imp.KERNEL32.dll_SizeofResource]
mov esi, eax
test esi, esi
je 0x43b33a
push esi
call fcn.0047f4b0
pop ecx
push esi
push dword [ebp - 0x3e4]
mov edi, eax
call dword [sym.imp.KERNEL32.dll_LockResource]
push eax
push edi
call fcn.004810f0
add esp, 0xc
push ebx
call dword [sym.imp.KERNEL32.dll_FreeResource]
test edi, edi
jne 0x43b3ab
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 0x43b39f
push edi
push ebx
call dword [sym.imp.KERNEL32.dll_GetFileSize]
mov esi, eax
test esi, esi
je 0x43b39f
push esi
mov dword [ebp - 0x3e4], edi
call fcn.0047f4b0
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 0x43b3a7
push edi
call fcn.0047ecd0
pop ecx
xor eax, eax
call fcn.0047f79a
ret
test edi, edi
je 0x43b39f
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.0043b3e2
add esp, 0x14
mov esi, eax
push edi
call fcn.0047ecd0
pop ecx
mov eax, esi
jmp 0x43b3a1