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

Disassembly:
push 0xffffffffffffffff
push 0x4a805d
mov eax, dword fs:[0]
push eax
sub esp, 0x44c
mov eax, dword [0x4e0c44]
xor eax, esp
mov dword [esp + 0x448], eax
push ebx
push ebp
push esi
push edi
mov eax, dword [0x4e0c44]
xor eax, esp
push eax
lea eax, [esp + 0x460]
mov dword fs:[0], eax
mov esi, dword [esp + 0x478]
mov ebp, dword [esp + 0x470]
xor ebx, ebx
cmp esi, ebx
mov dword [esp + 0x20], ecx
mov dword [esp + 0x18], esi
push ebx
je 0x455264
mov eax, dword [esi]
mov edx, dword [eax + 0x2c]
push SysReAllocString
push ebp
mov ecx, esi
call edx
cmp eax, 0xffffffff
mov dword [esp + 0x14], eax
je 0x45589b
mov edx, dword [esi]
push ebx
push eax
mov eax, dword [edx + 0x8c]
mov ecx, esi
call eax
jmp 0x45528f
push 0x80
push 3
push ebx
push 1
push SysReAllocString
push ebp
call dword [sym.imp.KERNEL32.dll_CreateFileA]
cmp eax, 0xffffffff
mov dword [esp + 0x14], eax
je 0x45589b
push ebx
push eax
call dword [sym.imp.KERNEL32.dll_GetFileSize]
mov edi, eax
mov esi, edi
shr esi, 1
xor ecx, ecx
lea eax, [esi + 1]
mov edx, 2
mul edx
seto cl
neg ecx
or ecx, eax
push ecx
call fcn.0045f695
mov ecx, dword [esp + 0x1c]
add esp, 4
cmp ecx, ebx
mov dword [esp + 0x1c], eax
je 0x4552d6
mov edx, dword [ecx]
mov edx, dword [edx + 0x48]
lea ecx, [esp + 0x24]
push ecx
mov ecx, dword [esp + 0x1c]
push edi
push eax
mov eax, dword [esp + 0x20]
push eax
call edx
jmp 0x4552e9
mov edx, dword [esp + 0x14]
push ebx
lea ecx, [esp + 0x28]
push ecx
push edi
push eax
push edx
call dword [sym.imp.KERNEL32.dll_ReadFile]
mov edi, dword [esp + 0x1c]
mov word [edi + esi*2], bx
mov dword [esp + 0x3c], vtable.CStringProcessW.0
mov dword [esp + 0x40], ebx
mov dword [esp + 0x48], ebx
mov dword [esp + 0x44], ebx
mov dword [esp + 0x5c], ebx
mov dword [esp + 0x60], ebx
lea eax, [edi + 2]
lea ecx, [esi - 1]
cmp eax, ebx
mov dword [esp + 0x28], eax
mov dword [esp + 0x2c], eax
sete al
mov dword [esp + 0x30], ecx
mov dword [esp + 0x34], ecx
mov ecx, 1
mov byte [esp + 0x50], al
mov dword [esp + 0x468], ebx
mov byte [esp + 0x51], bl
mov dword [esp + 0x54], ebx
mov byte [esp + 0x58], bl
mov word [esp + 0x120], bx
mov word [esp + 0x122], bx
mov byte [esp + 0x1ea], bl
mov dword [esp + 0x250], ecx
xor eax, eax
jmp 0x455370
mov edx, 9
cmp word [esp + eax*2 + 0x122], dx
je 0x4553c8
add eax, 1
cmp eax, 1
jl 0x455370
mov ecx, 2
mov word [esp + 0x124], dx
mov byte [esp + 0x1eb], bl
mov dword [esp + 0x250], ecx
xor eax, eax
cmp ecx, ebx
jle 0x4553dc
jmp 0x4553b0
mov edx, 0xd
cmp word [esp + eax*2 + 0x122], dx
je 0x4553d2
add eax, 1
cmp eax, ecx
jl 0x4553b0
jmp 0x4553e1
mov word [esp + 0x120], dx
jmp 0x4553a2
mov word [esp + 0x120], dx
jmp 0x4553ff
mov edx, 0xd
mov word [esp + ecx*2 + 0x122], dx
mov ecx, dword [esp + 0x250]
mov byte [esp + ecx + 0x1ea], bl
add dword [esp + 0x250], 1
cmp dword [esp + 0x474], 0xb
jne 0x455892
mov eax, 7
mov dword [esp + 0x90], eax
mov dword [esp + 0x8c], ebx
mov word [esp + 0x7c], bx
mov dword [esp + 0xc8], eax
mov dword [esp + 0xc4], ebx
mov word [esp + 0xb4], bx
mov dword [esp + 0xac], 0xf
mov dword [esp + 0xa8], ebx
mov byte [esp + 0x98], bl
cmp dword [esp + 0x47c], ebx
mov byte [esp + 0x468], 3
je 0x4554bb
mov eax, ebp
lea edx, [eax + 1]
lea ebx, [ebx]
mov cl, byte [eax]
add eax, 1
cmp cl, bl
jne 0x455470
sub eax, edx
push eax
push ebp
lea ecx, [esp + 0x9c]
call fcn.00406230
push 1
push 0xffffffffffffffff
push 0x4c4e7c
lea ecx, [esp + 0xa0]
call fcn.00451800
cmp eax, ebx
lea ecx, [esp + 0x94]
jge 0x4554b5
push 0x4c4e85
call fcn.00406b60
jmp 0x4554bb
push eax
call fcn.0040ee00
lea ecx, [esp + 0x28]
call fcn.00451420
mov esi, eax
cmp esi, ebx
mov ebp, 8
je 0x4557db
cmp dword [esp + 0x47c], ebx
je 0x455602
push ebx
push 1
lea edx, [esp + 0x128]
push edx
lea eax, [esp + 0x84]
push eax
mov ecx, esi
call fcn.004515e0
push 0x103
lea ecx, [esp + 0x259]
push ebx
push ecx
mov byte [esp + 0x260], bl
call fcn.0047ec20
mov eax, dword [esp + 0x88]
add esp, 0xc
cmp dword [esp + 0x90], ebp
jae 0x45552b
lea eax, [esp + 0x7c]
push eax
push 0x4c52e4
lea edx, [esp + 0x25c]
push 0x104
push edx
call fcn.0047ebe5
lea eax, [esp + 0x264]
push eax
lea ecx, [esp + 0xa8]
push ecx
lea edx, [esp + 0x100]
push edx
call fcn.0040e110
push 0x103
lea eax, [esp + 0x379]
push ebx
push eax
mov byte [esp + 0x490], 4
mov byte [esp + 0x380], bl
call fcn.0047ec20
mov eax, dword [esp + 0x114]
add esp, 0x28
cmp dword [esp + 0x100], 0x10
jae 0x45559d
lea eax, [esp + 0xec]
push eax
push 0x4c52e4
lea ecx, [esp + 0x360]
push 0x104
push ecx
call fcn.0047ebe5
mov edx, dword [esp + 0x28]
add esp, 0x10
push ebx
push edx
lea eax, [esp + 0x360]
push 0xb
push eax
call fcn.0048237a
mov ecx, dword [esp + 0x30]
add esp, 4
push eax
call fcn.00454aa0
mov eax, dword [esp + 0x100]
cmp eax, 0x10
mov byte [esp + 0x468], 3
jb 0x455602
mov ecx, dword [esp + 0xec]
add eax, 1
push eax
push ecx
call fcn.00406140
add esp, 8
push 1
push ebx
mov ecx, esi
call fcn.00450f50
cmp eax, 1
jne 0x4557c4
push eax
push ebx
mov ecx, esi
call fcn.00450f50
push ebx
push 1
lea edx, [esp + 0x128]
push edx
lea eax, [esp + 0x84]
push eax
mov ecx, esi
call fcn.004515e0
push 0xffffffffffffffff
push ebx
lea ecx, [esp + 0x80]
push ecx
lea ecx, [esp + 0xd8]
mov dword [esp + 0xf0], 7
mov dword [esp + 0xec], ebx
mov word [esp + 0xdc], bx
call fcn.00422170
mov edx, dword [esi + 0xc]
mov byte [esp + 0x468], 5
xor edi, edi
mov eax, dword [esi + 8]
cmp eax, edx
jge 0x4556a2
mov ecx, dword [esi + 4]
movzx ecx, word [ecx + eax*2]
cmp cx, bx
je 0x455695
add eax, 1
cmp cx, 9
mov dword [esi + 8], eax
jne 0x455676
cmp dword [esi + 8], edx
jge 0x4556e4
add edi, 1
cmp edi, 0xd
jl 0x455676
cmp dword [esi + 8], edx
jge 0x4556e4
push ebx
push ebx
lea edx, [esp + 0x128]
push edx
lea eax, [esp + 0x84]
push eax
mov ecx, esi
call fcn.004515e0
cmp dword [esp + 0x90], ebp
mov eax, dword [esp + 0x7c]
jae 0x4556d1
lea eax, [esp + 0x7c]
push eax
lea ecx, [esp + 0xb4]
push ecx
call fcn.00452090
add esp, 8
jmp 0x4556f6
push ebx
push 0x4c5ef0
lea ecx, [esp + 0xb8]
call fcn.00422260
mov esi, dword [esp + 0x20]
lea edx, [esp + 0xcc]
push edx
lea eax, [esp + 0x68]
add esi, 0x2c
push eax
mov ecx, esi
call fcn.004537c0
lea ecx, [esp + 0xb0]
push ecx
lea edx, [esp + 0xd0]
push edx
lea ecx, [esp + 0xf0]
call fcn.00451cd0
push eax
lea eax, [esp + 0x70]
push eax
mov ecx, esi
mov byte [esp + 0x470], 6
call fcn.00453ff0
mov eax, dword [esp + 0x11c]
cmp eax, ebp
jb 0x455762
mov edx, dword [esp + 0x108]
lea ecx, [eax + eax + 2]
push ecx
push edx
call fcn.00406140
add esp, 8
mov eax, dword [esp + 0x100]
cmp eax, ebp
mov dword [esp + 0x11c], 7
mov dword [esp + 0x118], ebx
mov word [esp + 0x108], bx
jb 0x45579c
mov ecx, dword [esp + 0xec]
lea eax, [eax + eax + 2]
push eax
push ecx
call fcn.00406140
add esp, 8
mov eax, dword [esp + 0xe4]
cmp eax, ebp
mov byte [esp + 0x468], 3
jb 0x4557c4
lea edx, [eax + eax + 2]
mov eax, dword [esp + 0xd0]
push edx
push eax
call fcn.00406140
add esp, 8
lea ecx, [esp + 0x28]
call fcn.00451420
mov esi, eax
cmp esi, ebx
jne 0x4554d3
mov edi, dword [esp + 0x1c]
push edi
call fcn.0045f690
mov ecx, dword [esp + 0x1c]
mov eax, dword [esp + 0x18]
add esp, 4
cmp ecx, ebx
push eax
je 0x4557fa
mov edx, dword [ecx]
mov edx, dword [edx + 0x44]
call edx
jmp 0x455800
call dword [sym.imp.KERNEL32.dll_CloseHandle]
mov eax, dword [esp + 0xac]
cmp eax, 0x10
jb 0x455820
mov ecx, dword [esp + 0x98]
add eax, 1
push eax
push ecx
call fcn.00406140
add esp, 8
mov eax, dword [esp + 0xc8]
cmp eax, ebp
mov dword [esp + 0xac], 0xf
mov dword [esp + 0xa8], ebx
mov byte [esp + 0x98], bl
jb 0x455859
lea edx, [eax + eax + 2]
mov eax, dword [esp + 0xb4]
push edx
push eax
call fcn.00406140
add esp, 8
mov eax, dword [esp + 0x90]
cmp eax, ebp
mov dword [esp + 0xc8], 7
mov dword [esp + 0xc4], ebx
mov word [esp + 0xb4], bx
jb 0x45589b
mov edx, dword [esp + 0x7c]
lea ecx, [eax + eax + 2]
push ecx
push edx
call fcn.00406140
add esp, 8
jmp 0x45589b
push edi
call fcn.0045f690
add esp, 4
mov ecx, dword [esp + 0x460]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebp
pop ebx
mov ecx, dword [esp + 0x448]
xor ecx, esp
call fcn.0047e4dd
add esp, 0x458
ret 0x10