Function at 0x445360
Capabilities:
Read file on windows

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x68d4d8
mov eax, dword fs:[0]
push eax
sub esp, 0x1c
push ebx
push esi
push edi
mov eax, dword [0x71a00c]
xor eax, ebp
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov esi, ecx
mov edi, dword [esi + 0x408]
test edi, edi
je 0x4453f4
mov eax, dword [esi + 8]
cmp eax, 0xffffffff
je 0x4453b0
cmp edi, dword [esi + 0x10]
jae 0x4453b0
push 0
push 0
push edi
push eax
call dword [sym.imp.KERNEL32.dll_SetFilePointer]
mov dword [esi + 0xc], edi
mov eax, dword [esi + 0xd0]
test eax, eax
je 0x4453c8
mov byte [eax + 0x2d], 0
mov dword [esi + 0xd0], 0
mov eax, dword [esi + 0xd4]
test eax, eax
je 0x4453e0
mov byte [eax + 0x2d], 0
mov dword [esi + 0xd4], 0
mov dword [esi + 0x408], 0
mov dword [esi + 0x40c], 2
mov ecx, dword [esi + 8]
lea ebx, [esi + 4]
cmp ecx, 0xffffffff
je 0x4455c2
mov eax, dword [ebx + 8]
add eax, 4
cmp eax, dword [ebx + 0xc]
ja 0x4455c2
push 0
lea eax, [ebp - 0x18]
push eax
push 4
lea eax, [ebp - 0x10]
push eax
push ecx
call dword [sym.imp.KERNEL32.dll_ReadFile]
test eax, eax
je 0x4455c2
cmp dword [ebp - 0x18], 4
jne 0x4455c2
add dword [ebx + 8], 4
mov eax, dword [ebp - 0x10]
cmp ah, 0x50
jne 0x4455c2
cmp byte [ebp - 0xe], 0x49
jne 0x4455c2
cmp byte [ebp - 0xd], 0x43
jne 0x4455c2
cmp al, 0x42
je 0x445479
cmp al, 0x49
je 0x445472
cmp al, ah
jne 0x4455c2
mov edi, 2
jmp 0x44547e
mov edi, 1
jmp 0x44547e
mov edi, 3
lea eax, [ebp - 0x14]
mov ecx, ebx
push eax
call fcn.00620550
test al, al
je 0x4455c2
mov eax, dword [esi + 0x40c]
test eax, eax
je 0x4454de
cmp eax, 2
jne 0x4454a5
cmp edi, 1
jne 0x4454af
cmp eax, 1
jne 0x4454de
cmp edi, 3
jne 0x4454de
mov eax, dword [esi + 0xc]
mov ecx, ebx
add eax, dword [ebp - 0x14]
push eax
call fcn.00620920
push dword [ebp + 0xc]
mov ecx, esi
push dword [ebp + 8]
call fcn.00445360
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 8
mov dword [ebp - 0x24], 0
mov dword [ebp - 0x20], 0
mov dword [ebp - 0x1c], 0
mov dword [ebp - 4], 0
lea ecx, [ebp - 0x24]
push dword [ebp - 0x14]
call fcn.00404500
push dword [ebp - 0x14]
mov ecx, ebx
push dword [ebp - 0x24]
call fcn.00620500
test al, al
je 0x4455a2
sub edi, 1
je 0x445559
sub edi, 1
je 0x445541
sub edi, 1
jne 0x4455a2
mov edi, dword [ebp + 8]
lea eax, [ebp - 0x24]
push eax
push dword [ebp + 0xc]
lea ecx, [esi + 0xb8]
push edi
call fcn.00458db0
jmp 0x44556f
mov edi, dword [ebp + 8]
lea eax, [ebp - 0x24]
push eax
push dword [ebp + 0xc]
lea ecx, [esi + 0xb8]
push edi
call fcn.00458c30
jmp 0x44556f
mov edi, dword [ebp + 8]
lea eax, [ebp - 0x24]
push eax
push dword [ebp + 0xc]
lea ecx, [esi + 0xb8]
push edi
call fcn.00458b90
cmp dword [esi + 0x40c], 0
je 0x445582
mov byte [edi + 0x2c], 1
dec dword [esi + 0x40c]
lea ecx, [ebp - 0x24]
mov bl, 1
call fcn.00404550
mov al, bl
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 8
lea ecx, [ebp - 0x24]
xor bl, bl
call fcn.00404550
mov al, bl
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 8
xor al, al
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 8