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

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x46041e
mov eax, dword fs:[0]
push eax
sub esp, 0x470
mov eax, dword [0x47ea94]
xor eax, ebp
mov dword [ebp - 0x10], eax
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov dword [ebp - 0x454], 0
push 0x412
push 0
lea eax, [ebp - 0x424]
push eax
call sub.VCRUNTIME140.dll_memset
add esp, 0xc
mov dword [ebp - 0x438], 0
push 0x10000
lea ecx, [ebp - 0x450]
call fcn.00401e70
mov dword [ebp - 4], 0
mov dword [ebp - 0x434], 0
mov dword [ebp - 0x440], 0
push 0x208
lea ecx, [ebp - 0x424]
push ecx
call fcn.00436a00
add esp, 8
mov dword [ebp - 0x440], eax
cmp dword [ebp - 0x440], 0
je 0x436f4a
mov dword [ebp - 0x45c], 0xcb
mov dword [ebp - 4], 0xffffffff
lea ecx, [ebp - 0x450]
call fcn.00401ec0
mov eax, dword [ebp - 0x45c]
jmp 0x4374a7
mov edx, dword [ebp + 8]
push edx
lea eax, [ebp - 0x424]
push eax
call dword [sym.imp.SHLWAPI.dll_PathAppendW]
mov dword [ebp - 0x430], 0xffffffff
push 0
push 0
push 3
push 0
push 1
push SysReAllocString
lea ecx, [ebp - 0x424]
push ecx
call dword [sym.imp.KERNEL32.dll_CreateFileW]
mov dword [ebp - 0x430], eax
cmp dword [ebp - 0x430], 0xffffffff
jne 0x436fb7
mov dword [ebp - 0x460], 2
mov dword [ebp - 4], 0xffffffff
lea ecx, [ebp - 0x450]
call fcn.00401ec0
mov eax, dword [ebp - 0x460]
jmp 0x4374a7
push 0
mov edx, dword [ebp - 0x430]
push edx
call dword [sym.imp.KERNEL32.dll_GetFileSize]
mov dword [ebp - 0x434], eax
cmp dword [ebp - 0x434], 0
je 0x436fde
cmp dword [ebp - 0x434], 0xffffffff
jne 0x43701c
mov eax, dword [ebp - 0x430]
push eax
call dword [sym.imp.KERNEL32.dll_CloseHandle]
mov dword [ebp - 0x430], 0
mov dword [ebp - 0x464], 0x570
mov dword [ebp - 4], 0xffffffff
lea ecx, [ebp - 0x450]
call fcn.00401ec0
mov eax, dword [ebp - 0x464]
jmp 0x4374a7
cmp dword [ebp - 0x434], 0x10000
jbe 0x437066
mov ecx, dword [ebp - 0x430]
push ecx
call dword [sym.imp.KERNEL32.dll_CloseHandle]
mov dword [ebp - 0x430], 0
mov dword [ebp - 0x468], 0x570
mov dword [ebp - 4], 0xffffffff
lea ecx, [ebp - 0x450]
call fcn.00401ec0
mov eax, dword [ebp - 0x468]
jmp 0x4374a7
mov edx, dword [ebp - 0x434]
add edx, 1
push edx
call dword [sym.imp.api_ms_win_crt_heap_l1_1_0.dll_malloc]
add esp, 4
mov dword [ebp - 0x438], eax
cmp dword [ebp - 0x438], 0
jne 0x4370c6
mov eax, dword [ebp - 0x430]
push eax
call dword [sym.imp.KERNEL32.dll_CloseHandle]
mov dword [ebp - 0x430], 0
mov dword [ebp - 0x46c], 0xe
mov dword [ebp - 4], 0xffffffff
lea ecx, [ebp - 0x450]
call fcn.00401ec0
mov eax, dword [ebp - 0x46c]
jmp 0x4374a7
mov dword [ebp - 0x458], 0
push 0
lea ecx, [ebp - 0x458]
push ecx
mov edx, dword [ebp - 0x434]
push edx
mov eax, dword [ebp - 0x438]
push eax
mov ecx, dword [ebp - 0x430]
push ecx
call dword [sym.imp.KERNEL32.dll_ReadFile]
mov dword [ebp - 0x454], eax
mov edx, dword [ebp - 0x430]
push edx
call dword [sym.imp.KERNEL32.dll_CloseHandle]
mov dword [ebp - 0x430], 0
cmp dword [ebp - 0x454], 0
je 0x437128
mov eax, dword [ebp - 0x458]
cmp eax, dword [ebp - 0x434]
je 0x437169
mov ecx, dword [ebp - 0x438]
push ecx
call dword [sym.imp.api_ms_win_crt_heap_l1_1_0.dll_free]
add esp, 4
mov dword [ebp - 0x438], 0
mov dword [ebp - 0x470], 0x3ee
mov dword [ebp - 4], 0xffffffff
lea ecx, [ebp - 0x450]
call fcn.00401ec0
mov eax, dword [ebp - 0x470]
jmp 0x4374a7
mov edx, 1
imul eax, edx, 0
mov ecx, dword [ebp - 0x438]
mov edx, dword [ecx + eax]
mov dword [ebp - 0x474], edx
mov dword [ebp - 0x43c], 4
jmp 0x43719b
mov eax, dword [ebp - 0x43c]
add eax, 1
mov dword [ebp - 0x43c], eax
mov ecx, dword [ebp - 0x43c]
cmp ecx, dword [ebp - 0x434]
jae 0x4371cb
mov edx, dword [ebp - 0x438]
add edx, dword [ebp - 0x43c]
movsx eax, byte [edx]
xor eax, 0x2b
mov ecx, dword [ebp - 0x438]
add ecx, dword [ebp - 0x43c]
mov byte [ecx], al
jmp 0x43718c
mov edx, dword [ebp - 0x434]
sub edx, 4
mov dword [ebp - 0x434], edx
mov eax, dword [ebp - 0x434]
push eax
mov ecx, 1
shl ecx, 2
add ecx, dword [ebp - 0x438]
push ecx
call fcn.00437c10
add esp, 8
mov dword [ebp - 0x478], eax
mov edx, dword [ebp - 0x474]
cmp edx, dword [ebp - 0x478]
jne 0x437460
movzx eax, word [ebp - 0x434]
push eax
mov ecx, 1
shl ecx, 2
add ecx, dword [ebp - 0x438]
push ecx
lea ecx, [ebp - 0x450]
call fcn.00437be0
mov edx, dword [ebp + 0xc]
push edx
lea ecx, [ebp - 0x450]
call fcn.004379b0
mov eax, dword [ebp + 0xc]
add eax, 4
push eax
lea ecx, [ebp - 0x450]
call fcn.004379b0
mov ecx, dword [ebp + 0xc]
add ecx, 8
push ecx
lea ecx, [ebp - 0x450]
call fcn.004379b0
mov edx, dword [ebp + 0xc]
add edx, 0xc
push edx
lea ecx, [ebp - 0x450]
call fcn.004379b0
mov eax, dword [ebp + 0xc]
add eax, 0x10
push eax
lea ecx, [ebp - 0x450]
call fcn.004379b0
mov ecx, dword [ebp + 0xc]
add ecx, 0x14
push ecx
lea ecx, [ebp - 0x450]
call fcn.004379b0
mov edx, dword [ebp + 0xc]
add edx, 0x18
push edx
lea ecx, [ebp - 0x450]
call fcn.004379b0
mov eax, dword [ebp + 0xc]
add eax, 0x1c
push eax
lea ecx, [ebp - 0x450]
call fcn.004379b0
mov ecx, dword [ebp + 0xc]
add ecx, 0x20
push ecx
lea ecx, [ebp - 0x450]
call fcn.004379b0
mov edx, dword [ebp + 0xc]
add edx, 0x24
push edx
lea ecx, [ebp - 0x450]
call fcn.004379b0
mov dword [ebp - 0x42c], 0
xor eax, eax
mov word [ebp - 0x428], ax
lea ecx, [ebp - 0x428]
push ecx
lea edx, [ebp - 0x42c]
push edx
lea ecx, [ebp - 0x450]
call fcn.00437a80
movzx eax, al
test eax, eax
je 0x437344
cmp dword [ebp - 0x42c], 0
je 0x437344
movzx ecx, word [ebp - 0x428]
test ecx, ecx
je 0x437344
movzx edx, word [ebp - 0x428]
push edx
mov eax, dword [ebp - 0x42c]
push eax
mov ecx, dword [ebp + 0xc]
add ecx, 0x28
call fcn.00411520
mov dword [ebp - 0x42c], 0
xor ecx, ecx
mov word [ebp - 0x428], cx
lea edx, [ebp - 0x428]
push edx
lea eax, [ebp - 0x42c]
push eax
lea ecx, [ebp - 0x450]
call fcn.00437a80
movzx ecx, al
test ecx, ecx
je 0x4373a5
cmp dword [ebp - 0x42c], 0
je 0x4373a5
movzx edx, word [ebp - 0x428]
test edx, edx
je 0x4373a5
movzx eax, word [ebp - 0x428]
push eax
mov ecx, dword [ebp - 0x42c]
push ecx
mov ecx, dword [ebp + 0xc]
add ecx, 0x40
call fcn.00411520
mov dword [ebp - 0x42c], 0
xor edx, edx
mov word [ebp - 0x428], dx
lea eax, [ebp - 0x428]
push eax
lea ecx, [ebp - 0x42c]
push ecx
lea ecx, [ebp - 0x450]
call fcn.00437a80
movzx edx, al
test edx, edx
je 0x437406
cmp dword [ebp - 0x42c], 0
je 0x437406
movzx eax, word [ebp - 0x428]
test eax, eax
je 0x437406
movzx ecx, word [ebp - 0x428]
push ecx
mov edx, dword [ebp - 0x42c]
push edx
mov ecx, dword [ebp + 0xc]
add ecx, 0x58
call fcn.00411520
lea eax, [ebp - 0x428]
push eax
lea ecx, [ebp - 0x42c]
push ecx
lea ecx, [ebp - 0x450]
call fcn.00437a80
movzx edx, al
test edx, edx
je 0x437454
cmp dword [ebp - 0x42c], 0
je 0x437454
movzx eax, word [ebp - 0x428]
test eax, eax
je 0x437454
movzx ecx, word [ebp - 0x428]
push ecx
mov edx, dword [ebp - 0x42c]
push edx
mov ecx, dword [ebp + 0xc]
add ecx, 0x70
call fcn.00411520
mov dword [ebp - 0x440], 0
jmp 0x43746a
mov dword [ebp - 0x440], 0x65d
cmp dword [ebp - 0x438], 0
je 0x437483
mov eax, dword [ebp - 0x438]
push eax
call dword [sym.imp.api_ms_win_crt_heap_l1_1_0.dll_free]
add esp, 4
mov ecx, dword [ebp - 0x440]
mov dword [ebp - 0x47c], ecx
mov dword [ebp - 4], 0xffffffff
lea ecx, [ebp - 0x450]
call fcn.00401ec0
mov eax, dword [ebp - 0x47c]
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
mov ecx, dword [ebp - 0x10]
xor ecx, ebp
call fcn.0045be1b
mov esp, ebp
pop ebp
ret