Function at 0x403ed0
Capabilities:
Read file on windows

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x52928b
mov eax, dword fs:[0]
push eax
mov eax, 0x10ec
call fcn.00509ca0
mov eax, dword [0x58c8c0]
xor eax, ebp
mov dword [ebp - 0x10], eax
push ebx
push esi
push edi
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov edx, dword [ebp + 0x10]
mov eax, dword [ebp + 8]
mov esi, ecx
mov ecx, dword [ebp + 0xc]
xor ebx, ebx
mov dword [ebp - 0x10f4], ecx
mov dword [ebp - 0x10f8], edx
mov dword [ebp - 0x1024], 0xf
mov dword [ebp - 0x1028], ebx
mov byte [ebp - 0x1038], bl
push 0x539f20
push eax
mov dword [ebp - 4], ebx
call fcn.00509662
add esp, 8
mov dword [esi + 0x64], eax
cmp eax, ebx
jne 0x403f62
cmp dword [ebp - 0x1024], 0x10
jb 0x404297
mov eax, dword [ebp - 0x1038]
push eax
jmp 0x40428f
push 2
mov edi, 0xfffffff7
push edi
push eax
call fcn.00509c20
mov ecx, dword [esi + 0x64]
push ecx
call fcn.00509b31
add esp, 0x10
test eax, eax
jle 0x404006
mov edx, dword [esi + 0x64]
push edx
xor eax, eax
push 9
mov dword [ebp - 0x1b], eax
mov dword [ebp - 0x17], eax
lea eax, [ebp - 0x1c]
push 1
push eax
mov byte [ebp - 0x1c], 0
call fcn.00509980
add esp, 0x10
mov ecx, 0x5880f4
lea eax, [ebp - 0x1c]
lea esp, [esp]
mov dl, byte [eax]
cmp dl, byte [ecx]
jne 0x403fd0
test dl, dl
je 0x403fcc
mov dl, byte [eax + 1]
cmp dl, byte [ecx + 1]
jne 0x403fd0
add eax, 2
add ecx, 2
test dl, dl
jne 0x403fb0
xor eax, eax
jmp 0x403fd5
sbb eax, eax
sbb eax, 0xffffffff
cmp eax, ebx
je 0x403ff8
mov ecx, dword [esi + 0x64]
push 2
dec edi
push edi
push ecx
call fcn.00509c20
mov edx, dword [esi + 0x64]
push edx
call fcn.00509b31
add esp, 0x10
test eax, eax
jg 0x403f84
jmp 0x404006
push edi
push str.find_file_end_pos:_d.
call fcn.00509679
add esp, 8
mov eax, dword [esi + 0x64]
push 2
add edi, 0xffffffb8
push edi
push eax
call fcn.00509c20
mov ecx, dword [esi + 0x64]
push ecx
call fcn.00509b31
mov edx, dword [esi + 0x64]
push edx
push 4
lea edi, [esi + 0x60]
push 1
push edi
mov dword [esi + 0x5c], eax
call fcn.00509980
mov eax, dword [esi + 0x64]
push eax
push 0x20
lea ecx, [esi + 0xb0]
push 1
push ecx
call fcn.00509980
mov edx, dword [esi + 0x64]
push edx
push 4
lea ebx, [esi + 0x6c]
push 1
push ebx
call fcn.00509980
mov eax, dword [esi + 0x64]
add esp, 0x40
push eax
push 0x20
lea ecx, [esi + 0x70]
push 1
push ecx
call fcn.00509980
mov edx, dword [ebx]
mov eax, dword [esi + 0x64]
push edx
push 0
push 0
push eax
call fcn.00416b00
add esp, 0x20
mov dword [esi], eax
test eax, eax
jne 0x40409c
mov ecx, dword [esi + 0x64]
push ecx
call fcn.0050917b
add esp, 4
cmp dword [ebp - 0x1024], 0x10
jmp 0x404286
mov eax, dword [edi]
mov edi, dword [ebx]
push 0
sub edi, eax
push eax
mov eax, dword [esi + 0x64]
push eax
mov dword [ebp - 0x10f0], edi
call fcn.00509c20
add esp, 0xc
cmp edi, 0x1000
jbe 0x4040c4
mov edi, 0x1000
mov ecx, dword [esi + 0x64]
push ecx
push edi
lea edx, [ebp - 0x101c]
push 1
push edx
call fcn.00509980
mov edi, eax
add esp, 0x10
test edi, edi
jle 0x404101
push edi
lea eax, [ebp - 0x101c]
push eax
lea ecx, [ebp - 0x1038]
call fcn.00403db0
sub dword [ebp - 0x10f0], edi
mov edi, dword [ebp - 0x10f0]
jmp 0x4040b7
lea ecx, [ebp - 0x10ec]
call fcn.00412bb0
mov eax, dword [ebp - 0x1038]
mov edi, 0x10
cmp dword [ebp - 0x1024], edi
jae 0x404125
lea eax, [ebp - 0x1038]
mov ecx, dword [ebp - 0x10f4]
mov edx, dword [ebp - 0x1028]
push ecx
push edx
push eax
lea ecx, [ebp - 0x10ec]
call fcn.00413540
mov eax, dword [ebp - 0x1038]
mov dword [ebp - 0x1028], 0
cmp dword [ebp - 0x1024], edi
jae 0x40415d
lea eax, [ebp - 0x1038]
mov byte [eax], 0
mov eax, dword [ebx]
mov ebx, dword [esi + 0x5c]
push 0
push eax
sub ebx, eax
mov eax, dword [esi + 0x64]
push eax
call fcn.00509c20
add esp, 0xc
jmp 0x404180
mov eax, 0x1000
cmp ebx, 0x1000
ja 0x40418f
mov eax, ebx
mov ecx, dword [esi + 0x64]
push ecx
push eax
lea edx, [ebp - 0x101c]
push 1
push edx
call fcn.00509980
mov edi, eax
add esp, 0x10
test edi, edi
jle 0x4041c2
push edi
lea eax, [ebp - 0x101c]
push eax
lea ecx, [ebp - 0x1038]
call fcn.00403db0
sub ebx, edi
jmp 0x404180
mov eax, dword [ebp - 0x1038]
mov ebx, 0x10
cmp dword [ebp - 0x1024], ebx
jae 0x4041db
lea eax, [ebp - 0x1038]
mov ecx, dword [ebp - 0x10f8]
mov edx, dword [ebp - 0x1028]
push ecx
push edx
push eax
lea ecx, [ebp - 0x10ec]
call fcn.00413540
mov eax, dword [esi + 0x64]
push 0
push 0
push eax
call fcn.00509c20
mov ecx, dword [esi]
lea edi, [esi + 4]
push edi
push ecx
call fcn.00415a50
mov edx, dword [edi]
push 0
push 0
mov dword [esi + 0xf0], edx
call fcn.00528aaf
mov dword [esi + 0x68], eax
lea eax, [ebp - 0x1054]
push eax
call fcn.004039f0
mov eax, dword [ebp - 0x1054]
add esp, 0x20
cmp dword [ebp - 0x1040], ebx
jae 0x404245
lea eax, [ebp - 0x1054]
push eax
call fcn.005287d6
add esp, 4
cmp dword [ebp - 0x1040], ebx
jb 0x404265
mov ecx, dword [ebp - 0x1054]
push ecx
call fcn.0041a1a9
add esp, 4
cmp dword [ebp - 0x1024], ebx
mov dword [ebp - 0x1040], 0xf
mov dword [ebp - 0x1044], 0
mov byte [ebp - 0x1054], 0
jb 0x404297
mov edx, dword [ebp - 0x1038]
push edx
call fcn.0041a1a9
add esp, 4
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov ecx, dword [ebp - 0x10]
xor ecx, ebp
call fcn.005089e3
mov esp, ebp
pop ebp
ret 0xc