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

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x108
mov dword [ebp - 0x20], 0x4e5004
mov eax, dword [ebp - 0x20]
mov eax, dword [eax + 0x20]
mov dword [esp], eax
mov eax, dword [sym.imp.kernel32.dll_GetModuleHandleW]
call eax
sub esp, 4
mov dword [ebp - 0x24], eax
mov eax, dword [ebp - 0x20]
mov eax, dword [eax + 0xc]
mov dword [esp + 0xc], 4
mov dword [esp + 8], 0x1000
mov dword [esp + 4], eax
mov dword [esp], 0
mov eax, dword [sym.imp.kernel32.dll_VirtualAlloc]
call eax
sub esp, 0x10
mov dword [ebp - 0x28], eax
mov eax, dword [ebp - 0x20]
mov eax, dword [eax + 0xc]
mov dword [esp + 4], eax
mov eax, dword [ebp - 0x28]
mov dword [esp], eax
call fcn.0043d4a7
mov dword [esp + 8], 0x104
mov eax, dword [ebp - 0x28]
mov dword [esp + 4], eax
mov dword [esp], 0
mov eax, dword [sym.imp.kernel32.dll_GetModuleFileNameW]
call eax
sub esp, 0xc
mov eax, dword [ebp - 0x20]
mov eax, dword [eax + 0x30]
mov dword [ebp - 0x2c], eax
mov dword [ebp - 0xc], 0
mov eax, dword [ebp - 0xc]
lea edx, [eax + eax]
mov eax, dword [ebp - 0x28]
add eax, edx
movzx eax, word [eax]
test ax, ax
je 0x43d5c2
add dword [ebp - 0xc], 1
jmp 0x43d5a9
mov eax, dword [ebp - 0xc]
mov dword [ebp - 0x10], eax
mov eax, dword [ebp - 0x10]
add eax, 0x7fffffff
lea edx, [eax + eax]
mov eax, dword [ebp - 0x28]
add eax, edx
movzx eax, word [eax]
cmp ax, 0x5c
je 0x43d5f7
mov eax, dword [ebp - 0x10]
lea edx, [eax + eax]
mov eax, dword [ebp - 0x28]
add eax, edx
mov word [eax], 0
sub dword [ebp - 0x10], 1
jmp 0x43d5c8
mov dword [ebp - 0x14], 0
mov edx, dword [ebp - 0x2c]
mov eax, dword [ebp - 0x14]
add eax, edx
movzx eax, byte [eax]
test al, al
je 0x43d632
mov edx, dword [ebp - 0x2c]
mov eax, dword [ebp - 0x14]
add eax, edx
movzx eax, byte [eax]
mov edx, dword [ebp - 0x10]
lea ecx, [edx + edx]
mov edx, dword [ebp - 0x28]
add edx, ecx
cbw
mov word [edx], ax
add dword [ebp - 0x10], 1
add dword [ebp - 0x14], 1
jmp 0x43d5fe
mov dword [esp + 4], 0x44
lea eax, [ebp - 0xb8]
mov dword [esp], eax
call fcn.0043d4a7
mov dword [esp + 4], 0x10
lea eax, [ebp - 0xc8]
mov dword [esp], eax
call fcn.0043d4a7
mov dword [esp + 0x18], 0
mov dword [esp + 0x14], 0x80
mov dword [esp + 0x10], 3
mov dword [esp + 0xc], 0
mov dword [esp + 8], 1
mov dword [esp + 4], 1
mov eax, dword [ebp - 0x28]
mov dword [esp], eax
mov eax, dword [sym.imp.kernel32.dll_CreateFileW]
call eax
sub esp, 0x1c
mov dword [ebp - 0x30], eax
cmp dword [ebp - 0x30], 0xffffffff
je 0x43d9aa
mov dword [esp + 4], 0
mov eax, dword [ebp - 0x30]
mov dword [esp], eax
mov eax, dword [sym.imp.kernel32.dll_GetFileSize]
call eax
sub esp, 8
mov dword [ebp - 0x34], eax
mov eax, dword [ebp - 0x20]
mov eax, dword [eax + 0x38]
mov dword [esp + 0xc], 4
mov dword [esp + 8], 0x1000
mov dword [esp + 4], eax
mov dword [esp], 0
mov eax, dword [sym.imp.kernel32.dll_VirtualAlloc]
call eax
sub esp, 0x10
mov dword [ebp - 0x38], eax
mov dword [ebp - 0xcc], 0
mov dword [esp + 0x10], 0
lea eax, [ebp - 0xcc]
mov dword [esp + 0xc], eax
mov eax, dword [ebp - 0x34]
mov dword [esp + 8], eax
mov eax, dword [ebp - 0x38]
mov dword [esp + 4], eax
mov eax, dword [ebp - 0x30]
mov dword [esp], eax
mov eax, dword [sym.imp.kernel32.dll_ReadFile]
call eax
sub esp, 0x14
test eax, eax
sete al
test al, al
jne 0x43d9ad
mov edx, dword [ebp - 0xcc]
mov eax, dword [ebp - 0x38]
add eax, edx
mov dword [ebp - 0x3c], eax
mov eax, dword [ebp - 0x20]
mov eax, dword [eax + 0x28]
add dword [ebp - 0x38], eax
mov eax, dword [ebp - 0x38]
mov dword [ebp - 0xd0], eax
mov eax, dword [ebp - 0xd0]
mov eax, dword [eax]
mov dword [ebp - 0x40], eax
mov eax, dword [ebp - 0xd0]
add eax, 4
mov dword [ebp - 0xd0], eax
mov eax, dword [ebp - 0xd0]
mov eax, dword [eax]
mov dword [ebp - 0x44], eax
mov eax, dword [ebp - 0xd0]
add eax, 4
mov dword [ebp - 0xd0], eax
mov dword [ebp - 0x18], 0
mov eax, dword [ebp - 0x18]
cmp dword [ebp - 0x40], eax
jbe 0x43d7c8
mov eax, dword [ebp - 0xd0]
mov ecx, dword [eax]
mov eax, dword [ebp - 0xd0]
mov edx, dword [ebp - 0x44]
add edx, ecx
mov dword [eax], edx
add dword [ebp - 0x18], 1
mov eax, dword [ebp - 0xd0]
add eax, 4
mov dword [ebp - 0xd0], eax
jmp 0x43d796
mov eax, dword [ebp - 0x20]
mov eax, dword [eax + 8]
add dword [ebp - 0x38], eax
mov eax, dword [ebp - 0x38]
add eax, 1
mov dword [esp + 4], eax
mov eax, dword [ebp - 0x24]
mov dword [esp], eax
mov eax, dword [sym.imp.kernel32.dll_GetProcAddress]
call eax
sub esp, 8
mov dword [ebp - 0x48], eax
cmp dword [ebp - 0x48], 0
je 0x43d9b0
mov eax, dword [ebp - 0x38]
movzx eax, byte [eax]
movsx eax, al
add dword [ebp - 0x38], eax
mov eax, dword [ebp - 0x38]
add eax, 1
mov dword [esp + 4], eax
mov eax, dword [ebp - 0x24]
mov dword [esp], eax
mov eax, dword [sym.imp.kernel32.dll_GetProcAddress]
call eax
sub esp, 8
mov dword [ebp - 0x4c], eax
cmp dword [ebp - 0x4c], 0
je 0x43d9b3
mov eax, dword [ebp - 0x38]
movzx eax, byte [eax]
movsx eax, al
add dword [ebp - 0x38], eax
mov eax, dword [ebp - 0x38]
add eax, 1
mov dword [esp], eax
mov eax, dword [ebp - 0x48]
call eax
sub esp, 4
mov dword [ebp - 0x50], eax
cmp dword [ebp - 0x50], 0
je 0x43d9b6
mov eax, dword [ebp - 0x38]
movzx eax, byte [eax]
movsx eax, al
add dword [ebp - 0x38], eax
mov eax, dword [ebp - 0x38]
add eax, 0xc
mov dword [ebp - 0x54], eax
mov eax, dword [ebp - 0x38]
mov dword [ebp - 0x58], eax
mov eax, dword [ebp - 0x58]
mov eax, dword [eax + 4]
mov dword [ebp - 0x5c], eax
mov eax, dword [ebp - 0x58]
mov eax, dword [eax + 8]
mov dword [ebp - 0x60], eax
mov edx, dword [ebp - 0x54]
mov eax, dword [ebp - 0x60]
add eax, edx
mov dword [ebp - 0x64], eax
mov eax, dword [ebp - 0x50]
mov eax, dword [eax + 0x3c]
mov edx, eax
mov eax, dword [ebp - 0x50]
add eax, edx
mov dword [ebp - 0x68], eax
mov eax, dword [ebp - 0x68]
mov edx, dword [eax + 0x2c]
mov eax, dword [ebp - 0x50]
add eax, edx
mov dword [ebp - 0x6c], eax
mov dword [ebp - 0xd4], 0
lea eax, [ebp - 0xd4]
mov dword [esp + 0xc], eax
mov dword [esp + 8], 0x40
mov eax, dword [ebp - 0x60]
mov dword [esp + 4], eax
mov eax, dword [ebp - 0x6c]
mov dword [esp], eax
mov eax, dword [ebp - 0x4c]
call eax
sub esp, 0x10
mov eax, dword [ebp - 0x60]
mov dword [esp + 8], eax
mov eax, dword [ebp - 0x54]
mov dword [esp + 4], eax
mov eax, dword [ebp - 0x6c]
mov dword [esp], eax
call fcn.0043d4d8
mov edx, dword [ebp - 0xd4]
lea eax, [ebp - 0xd4]
mov dword [esp + 0xc], eax
mov dword [esp + 8], edx
mov eax, dword [ebp - 0x60]
mov dword [esp + 4], eax
mov eax, dword [ebp - 0x6c]
mov dword [esp], eax
mov eax, dword [ebp - 0x4c]
call eax
sub esp, 0x10
mov edx, dword [ebp - 0x6c]
mov eax, dword [ebp - 0x5c]
add eax, edx
mov dword [ebp - 0x70], eax
mov dword [ebp - 0x1c], 0
mov eax, dword [ebp - 0x20]
mov edx, dword [eax + 0x18]
mov eax, dword [ebp - 0x1c]
add eax, edx
movzx eax, byte [eax]
test al, al
setne al
test al, al
je 0x43d96b
mov eax, dword [ebp - 0x20]
mov edx, dword [eax + 0x18]
mov eax, dword [ebp - 0x1c]
add eax, edx
movzx eax, byte [eax]
mov edx, dword [ebp - 0x1c]
lea ecx, [edx + edx]
mov edx, dword [ebp - 0x3c]
add edx, ecx
cbw
mov word [edx], ax
add dword [ebp - 0x1c], 1
jmp 0x43d930
mov eax, dword [ebp - 0x1c]
lea edx, [eax + eax]
mov eax, dword [ebp - 0x3c]
add eax, edx
mov word [eax], 0
mov eax, dword [ebp - 0x3c]
mov dword [ebp - 0xdc], eax
mov eax, dword [ebp - 0x64]
mov dword [ebp - 0xe0], eax
mov byte [ebp - 0xd8], 1
mov eax, dword [ebp - 0x70]
mov dword [ebp - 0x74], eax
lea eax, [ebp - 0xe0]
mov dword [esp], eax
mov eax, dword [ebp - 0x74]
call eax
jmp 0x43d9b7
nop
jmp 0x43d9b7
nop
jmp 0x43d9b7
nop
jmp 0x43d9b7
nop
jmp 0x43d9b7
nop
leave
ret