Function at 0x403f60
Capabilities:
Read file on windows

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x5299bb
mov eax, dword fs:[0]
push eax
mov eax, 0x10ec
call fcn.0050b1c0
mov eax, dword [0x58c920]
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 0x539fac
push eax
mov dword [ebp - 4], ebx
call fcn.0050ac3d
add esp, 8
mov dword [esi + 0x64], eax
cmp eax, ebx
jne 0x403ff2
cmp dword [ebp - 0x1024], 0x10
jb 0x404327
mov eax, dword [ebp - 0x1038]
push eax
jmp 0x40431f
push 2
mov edi, 0xfffffff7
push edi
push eax
call fcn.0050b13e
mov ecx, dword [esi + 0x64]
push ecx
call fcn.0050b04f
add esp, 0x10
test eax, eax
jle 0x404096
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.0050ae9e
add esp, 0x10
mov ecx, 0x5880f4
lea eax, [ebp - 0x1c]
lea esp, [esp]
mov dl, byte [eax]
cmp dl, byte [ecx]
jne 0x404060
test dl, dl
je 0x40405c
mov dl, byte [eax + 1]
cmp dl, byte [ecx + 1]
jne 0x404060
add eax, 2
add ecx, 2
test dl, dl
jne 0x404040
xor eax, eax
jmp 0x404065
sbb eax, eax
sbb eax, 0xffffffff
cmp eax, ebx
je 0x404088
mov ecx, dword [esi + 0x64]
push 2
dec edi
push edi
push ecx
call fcn.0050b13e
mov edx, dword [esi + 0x64]
push edx
call fcn.0050b04f
add esp, 0x10
test eax, eax
jg 0x404014
jmp 0x404096
push edi
push str.find_file_end_pos:_d.
call fcn.0050aac4
add esp, 8
mov eax, dword [esi + 0x64]
push 2
add edi, 0xffffffb8
push edi
push eax
call fcn.0050b13e
mov ecx, dword [esi + 0x64]
push ecx
call fcn.0050b04f
mov edx, dword [esi + 0x64]
push edx
push 4
lea edi, [esi + 0x60]
push 1
push edi
mov dword [esi + 0x5c], eax
call fcn.0050ae9e
mov eax, dword [esi + 0x64]
push eax
push 0x20
lea ecx, [esi + 0xb0]
push 1
push ecx
call fcn.0050ae9e
mov edx, dword [esi + 0x64]
push edx
push 4
lea ebx, [esi + 0x6c]
push 1
push ebx
call fcn.0050ae9e
mov eax, dword [esi + 0x64]
add esp, 0x40
push eax
push 0x20
lea ecx, [esi + 0x70]
push 1
push ecx
call fcn.0050ae9e
mov edx, dword [ebx]
mov eax, dword [esi + 0x64]
push edx
push 0
push 0
push eax
call fcn.00416bc0
add esp, 0x20
mov dword [esi], eax
test eax, eax
jne 0x40412c
mov ecx, dword [esi + 0x64]
push ecx
call fcn.0050a699
add esp, 4
cmp dword [ebp - 0x1024], 0x10
jmp 0x404316
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.0050b13e
add esp, 0xc
cmp edi, 0x1000
jbe 0x404154
mov edi, 0x1000
mov ecx, dword [esi + 0x64]
push ecx
push edi
lea edx, [ebp - 0x101c]
push 1
push edx
call fcn.0050ae9e
mov edi, eax
add esp, 0x10
test edi, edi
jle 0x404191
push edi
lea eax, [ebp - 0x101c]
push eax
lea ecx, [ebp - 0x1038]
call fcn.00403e40
sub dword [ebp - 0x10f0], edi
mov edi, dword [ebp - 0x10f0]
jmp 0x404147
lea ecx, [ebp - 0x10ec]
call fcn.00412c70
mov eax, dword [ebp - 0x1038]
mov edi, 0x10
cmp dword [ebp - 0x1024], edi
jae 0x4041b5
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.00413600
mov eax, dword [ebp - 0x1038]
mov dword [ebp - 0x1028], 0
cmp dword [ebp - 0x1024], edi
jae 0x4041ed
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.0050b13e
add esp, 0xc
jmp 0x404210
mov eax, 0x1000
cmp ebx, 0x1000
ja 0x40421f
mov eax, ebx
mov ecx, dword [esi + 0x64]
push ecx
push eax
lea edx, [ebp - 0x101c]
push 1
push edx
call fcn.0050ae9e
mov edi, eax
add esp, 0x10
test edi, edi
jle 0x404252
push edi
lea eax, [ebp - 0x101c]
push eax
lea ecx, [ebp - 0x1038]
call fcn.00403e40
sub ebx, edi
jmp 0x404210
mov eax, dword [ebp - 0x1038]
mov ebx, 0x10
cmp dword [ebp - 0x1024], ebx
jae 0x40426b
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.00413600
mov eax, dword [esi + 0x64]
push 0
push 0
push eax
call fcn.0050b13e
mov ecx, dword [esi]
lea edi, [esi + 4]
push edi
push ecx
call fcn.00415b10
mov edx, dword [edi]
push 0
push 0
mov dword [esi + 0xf0], edx
call fcn.005291e3
mov dword [esi + 0x68], eax
lea eax, [ebp - 0x1054]
push eax
call fcn.004039d0
mov eax, dword [ebp - 0x1054]
add esp, 0x20
cmp dword [ebp - 0x1040], ebx
jae 0x4042d5
lea eax, [ebp - 0x1054]
push eax
call fcn.00528f0a
add esp, 4
cmp dword [ebp - 0x1040], ebx
jb 0x4042f5
mov ecx, dword [ebp - 0x1054]
push ecx
call fcn.0041a274
add esp, 4
cmp dword [ebp - 0x1024], ebx
mov dword [ebp - 0x1040], 0xf
mov dword [ebp - 0x1044], 0
mov byte [ebp - 0x1054], 0
jb 0x404327
mov edx, dword [ebp - 0x1038]
push edx
call fcn.0041a274
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.005090f3
mov esp, ebp
pop ebp
ret 0xc