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

Disassembly:
push ebp
mov ebp, esp
and esp, 0xfffffff8
sub esp, 0x8c
mov eax, dword [0x5c5678]
xor eax, esp
mov dword [esp + 0x88], eax
mov eax, dword [ebp + 8]
push ebx
push esi
push edi
push 0x3c
mov ebx, ecx
push 0x4e
push eax
mov dword [esp + 0x1c], ebx
mov dword [esp + 0x48], eax
call fcn.00457410
add esp, 0xc
cmp dword [ebx + 0x1c], 0x10
jb 0x450252
mov eax, dword [ebx + 8]
jmp 0x450255
lea eax, [ebx + 8]
push eax
mov eax, dword [esp + 0x40]
push 0x2712
push eax
call fcn.00457410
mov ecx, dword [ebx + 0x80]
mov edx, dword [ebx + 0x68]
mov eax, ecx
mov dword [esp + 0x3c], 0
mov esi, dword [eax]
mov edi, edx
add esp, 0xc
mov dword [esp + 0x38], ecx
mov dword [esp + 0x34], edx
mov dword [esp + 0x18], esi
mov dword [esp + 0x14], edi
nop
test edi, edi
je 0x45029a
cmp edi, dword [esp + 0x34]
je 0x45029f
call fcn.0053ecd6
cmp esi, dword [esp + 0x38]
je 0x450337
test edi, edi
jne 0x4502c9
call fcn.0053ecd6
xor eax, eax
cmp esi, dword [eax + 0x18]
jne 0x4502be
call fcn.0053ecd6
cmp dword [esi + 0x40], 0x10
jb 0x4502cd
mov ebx, dword [esi + 0x2c]
jmp 0x4502d0
mov eax, dword [edi]
jmp 0x4502b4
lea ebx, [esi + 0x2c]
test edi, edi
jne 0x4502ee
call fcn.0053ecd6
cmp esi, dword [edi + 0x18]
jne 0x4502e3
call fcn.0053ecd6
cmp dword [esi + 0x24], 0x10
jb 0x4502f2
mov esi, dword [esi + 0x10]
jmp 0x4502f5
mov edi, dword [edi]
jmp 0x4502d9
add esi, 0x10
mov edx, dword [esp + 0x10]
push 0x11
push ebx
push 4
push esi
push 1
lea ecx, [esp + 0x44]
push ecx
add edx, 0xe8
push edx
call fcn.00457390
add esp, 0x1c
test eax, eax
jne 0x4505f6
lea esi, [esp + 0x14]
call fcn.00413720
mov esi, dword [esp + 0x18]
mov edi, dword [esp + 0x14]
mov ebx, dword [esp + 0x10]
jmp 0x450290
mov eax, dword [ebx + 0xc8]
mov dword [esp + 0x24], 0
mov dword [esp + 0x34], eax
cmp dword [ebx + 0xc4], eax
jbe 0x450356
call fcn.0053ecd6
mov esi, dword [ebx + 0xc4]
mov eax, dword [ebx + 0xb8]
mov dword [esp + 0x40], eax
cmp esi, dword [ebx + 0xc8]
jbe 0x450373
call fcn.0053ecd6
mov edi, dword [ebx + 0xb8]
lea ecx, [esi + 0x20]
mov dword [esp + 0x14], edi
mov dword [esp + 0x1c], ecx
mov dword [esp + 0x18], esi
test edi, edi
je 0x450392
cmp edi, dword [esp + 0x40]
je 0x450397
call fcn.0053ecd6
cmp esi, dword [esp + 0x34]
je 0x4505d4
test edi, edi
jne 0x450429
call fcn.0053ecd6
xor eax, eax
cmp esi, dword [eax + 0x10]
jb 0x4503ba
call fcn.0053ecd6
mov eax, dword [esp + 0x1c]
cmp dword [eax + 0x14], 8
jb 0x4503c6
mov eax, dword [eax]
push 0
push 0x80
push 3
push 0
push 1
push SysReAllocString
push eax
call dword [sym.imp.KERNEL32.dll_CreateFileW]
mov dword [esp + 0x2c], eax
cmp eax, 0xffffffff
je 0x4505aa
push 0
push eax
call dword [sym.imp.KERNEL32.dll_GetFileSize]
mov ebx, eax
push 0x5cea3e
push ebx
call fcn.0053ef06
add esp, 8
mov dword [esp + 0x20], eax
test eax, eax
je 0x450593
mov esi, dword [esp + 0x10]
mov ecx, dword [esi + 0xdc]
add esi, 0xd0
test ecx, ecx
jne 0x45042d
xor eax, eax
jmp 0x450435
mov eax, dword [edi]
jmp 0x4503b0
mov eax, dword [esi + 0x14]
sub eax, ecx
sar eax, 2
mov edi, dword [esi + 0x10]
mov edx, edi
sub edx, ecx
sar edx, 2
cmp edx, eax
jae 0x450451
mov eax, dword [esp + 0x20]
mov dword [edi], eax
add edi, 4
mov dword [esi + 0x10], edi
jmp 0x45046f
cmp ecx, edi
jbe 0x45045a
call fcn.0053ecd6
mov eax, dword [esi]
push edi
push eax
lea ecx, [esp + 0x28]
push ecx
lea edx, [esp + 0x54]
push edx
mov eax, esi
call fcn.00452790
mov ecx, dword [esp + 0x20]
mov edx, dword [esp + 0x2c]
push 0
lea eax, [esp + 0x2c]
push eax
push ebx
push ecx
push edx
mov dword [esp + 0x3c], 0
call dword [sym.imp.KERNEL32.dll_ReadFile]
cmp dword [esp + 0x28], ebx
jne 0x450593
mov ebx, dword [esp + 0x14]
test ebx, ebx
jne 0x4504c4
call fcn.0053ecd6
xor eax, eax
mov edi, dword [esp + 0x18]
cmp edi, dword [eax + 0x10]
jb 0x4504b6
call fcn.0053ecd6
mov esi, dword [esp + 0x1c]
cmp dword [esi + 0x14], 8
jb 0x4504c8
mov eax, dword [esi]
jmp 0x4504ca
mov eax, dword [ebx]
jmp 0x4504a8
mov eax, esi
push eax
call dword [sym.imp.SHLWAPI.dll_PathFindExtensionW]
test eax, eax
je 0x450593
mov ecx, str..zip
mov edi, edi
mov dx, word [eax]
cmp dx, word [ecx]
jne 0x450506
test dx, dx
je 0x450502
mov dx, word [eax + 2]
cmp dx, word [ecx + 2]
jne 0x450506
add eax, 4
add ecx, 4
test dx, dx
jne 0x4504e0
xor eax, eax
jmp 0x45050b
sbb eax, eax
sbb eax, 0xffffffff
test eax, eax
jne 0x450522
mov eax, dword [esp + 0x24]
push eax
push str.log__d.zip
push 0x40
lea ecx, [esp + 0x5c]
push ecx
jmp 0x450533
mov edx, dword [esp + 0x24]
push edx
push str.pic__d.png
push 0x40
lea eax, [esp + 0x5c]
push eax
call fcn.0054014f
add esp, 0x10
test ebx, ebx
jne 0x45055b
call fcn.0053ecd6
xor eax, eax
cmp edi, dword [eax + 0x10]
jb 0x450550
call fcn.0053ecd6
cmp dword [esi - 8], 0x10
jb 0x45055f
mov eax, dword [esi - 0x1c]
jmp 0x450562
mov eax, dword [ebx]
jmp 0x450546
lea eax, [esi - 0x1c]
mov ecx, dword [esp + 0x28]
mov edx, dword [esp + 0x20]
push 0x11
push ecx
push 0xd
push edx
push 0xc
lea ecx, [esp + 0x64]
push ecx
push 0xb
push eax
mov eax, dword [esp + 0x30]
push 1
lea edx, [esp + 0x54]
push edx
add eax, 0xe8
push eax
call fcn.00457390
add esp, 0x2c
mov ecx, dword [esp + 0x2c]
push ecx
call dword [sym.imp.KERNEL32.dll_CloseHandle]
mov edi, dword [esp + 0x14]
mov esi, dword [esp + 0x18]
mov ebx, dword [esp + 0x10]
test edi, edi
jne 0x4505d0
call fcn.0053ecd6
xor eax, eax
cmp esi, dword [eax + 0x10]
jb 0x4505bf
call fcn.0053ecd6
add dword [esp + 0x1c], 0x38
add esi, 0x38
inc dword [esp + 0x24]
jmp 0x450384
mov eax, dword [edi]
jmp 0x4505b5
mov edx, dword [esp + 0x3c]
push edx
push ebx
call fcn.00450610
pop edi
pop esi
pop ebx
mov ecx, dword [esp + 0x88]
xor ecx, esp
call fcn.0053d78d
mov esp, ebp
pop ebp
ret 4
mov ecx, dword [esp + 0x94]
pop edi
pop esi
pop ebx
xor ecx, esp
xor al, al
call fcn.0053d78d
mov esp, ebp
pop ebp
ret 4