Function at 0x483c2e
Capabilities:
Get file size
Read file on windows

Disassembly:
push 0x3e0
mov eax, 0x537db7
call fcn.00500c07
mov dword [ebp - 0x3e8], ecx
mov ebx, dword [ebp + 8]
lea ecx, [ebp - 0x98]
xor eax, eax
mov dword [ebp - 0x3e4], ebx
push 0x58ab80
mov edi, eax
mov esi, eax
call fcn.0047ce33
xor ecx, ecx
mov dword [ebp - 4], ecx
mov eax, dword [0x58ac18]
cmp word [eax], cx
jne 0x483d1c
test ebx, ebx
je 0x483c87
push ebx
lea ecx, [ebp - 0x98]
call fcn.0047ce68
xor ecx, ecx
push ecx
push pe_nt_image_headers32
push 3
push ecx
push 1
push SysReAllocString
push dword [ebp - 0x98]
call dword [sym.imp.KERNEL32.dll_CreateFileW]
or ebx, 0xffffffff
mov dword [ebp - 0x3dc], eax
cmp eax, ebx
jne 0x483cc3
lea ecx, [ebp - 0x98]
mov dword [ebp - 4], ebx
call fcn.0047ce58
jmp 0x483e98
push 0
push eax
call dword [sym.imp.KERNEL32.dll_GetFileSize]
mov esi, eax
test esi, esi
je 0x483cb0
and dword [ebp - 0x3e0], 0
push esi
call fcn.005008e0
pop ecx
push 0
mov edi, eax
lea eax, [ebp - 0x3e0]
push eax
push esi
push edi
push dword [ebp - 0x3dc]
call dword [sym.imp.KERNEL32.dll_ReadFile]
push dword [ebp - 0x3dc]
call dword [0x53e34c]
cmp dword [ebp - 0x3e0], esi
je 0x483e86
push edi
call fcn.005005bb
pop ecx
xor edi, edi
jmp 0x483cb0
push eax
lea ecx, [ebp - 0x98]
call fcn.0047ce68
cmp byte [0x58aad9], 0
je 0x483d3f
mov ebx, dword [0x58ee64]
mov dword [ebp - 0x3dc], ebx
jmp 0x483d9a
push 0x58acb0
lea ecx, [ebp - 0x1a8]
call fcn.0047ce33
mov byte [ebp - 4], 1
mov ecx, dword [ebp - 0x1a8]
call fcn.00485466
mov ecx, dword [ebp - 0x98]
xor edx, edx
push eax
push 2
mov dword [ebp - 0x3e0], eax
call fcn.004bd47d
mov ebx, eax
mov eax, dword [ebp - 0x3e0]
mov dword [ebp - 0x3dc], ebx
pop ecx
pop ecx
test eax, eax
je 0x483d8f
push eax
call fcn.005005bb
pop ecx
lea ecx, [ebp - 0x1a8]
call fcn.0047ce58
test ebx, ebx
jne 0x483da6
or ebx, 0xffffffff
jmp 0x483cb0
and dword [ebp - 0x3e0], 0
lea ecx, [ebp - 0x120]
or ebx, 0xffffffff
push ebx
push dword [ebp - 0x3e4]
call fcn.0047ce0f
push 0x557934
push 0x557034
lea ecx, [ebp - 0x120]
mov byte [ebp - 4], 2
call fcn.0047d279
mov edx, dword [ebp - 0x120]
lea eax, [ebp - 0x3d8]
push eax
lea eax, [ebp - 0x3e0]
push eax
push ecx
mov ecx, dword [ebp - 0x3dc]
call fcn.004bd4f7
add esp, 0xc
test eax, eax
je 0x483e12
lea ecx, [ebp - 0x120]
call fcn.0047ce58
jmp 0x483cb0
mov esi, dword [ebp - 0x1ac]
test esi, esi
je 0x483e02
push esi
call fcn.005008e0
mov edx, dword [ebp - 0x3e0]
mov edi, eax
pop ecx
mov ecx, dword [ebp - 0x3dc]
push 3
push esi
push edi
call fcn.004bd52a
add esp, 0xc
test eax, eax
je 0x483e67
cmp eax, 0x600
je 0x483e67
push edi
call fcn.005005bb
xor edi, edi
cmp byte [0x58aad9], 0
pop ecx
jne 0x483e02
mov ecx, dword [ebp - 0x3dc]
call fcn.004bd55d
jmp 0x483e02
cmp byte [0x58aad9], 0
jne 0x483e7b
mov ecx, dword [ebp - 0x3dc]
call fcn.004bd55d
lea ecx, [ebp - 0x120]
call fcn.0047ce58
lea ecx, [ebp - 0x98]
mov dword [ebp - 4], ebx
call fcn.0047ce58
test edi, edi
jne 0x483f0e
push 0
push pe_nt_image_headers32
push 3
push 0
push 1
push SysReAllocString
push dword [ebp - 0x3e4]
call dword [sym.imp.KERNEL32.dll_CreateFileW]
mov dword [ebp - 0x3dc], eax
cmp eax, ebx
je 0x483f0e
xor ebx, ebx
push ebx
push eax
call dword [sym.imp.KERNEL32.dll_GetFileSize]
mov esi, eax
test esi, esi
je 0x483f0e
push esi
mov dword [ebp - 0x3e4], ebx
call fcn.005008e0
pop ecx
push ebx
mov ebx, dword [ebp - 0x3dc]
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 [0x53e34c]
cmp dword [ebp - 0x3e4], esi
je 0x483f0e
push edi
call fcn.005005bb
pop ecx
xor edi, edi
lea eax, [ebp - 0x3ec]
push eax
push 0
push esi
push edi
call dword [sym.imp.GDI32.dll_AddFontMemResourceEx]
push edi
mov esi, eax
call fcn.005005bb
pop ecx
mov ecx, dword [ebp - 0x3e8]
push esi
add ecx, 0x52c
call fcn.0047cb21
call fcn.00500bc5
ret 4