Function at 0x6860c0
Capabilities:
Read file on windows

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x118
mov eax, dword [0x6d7a68]
xor eax, ebp
mov dword [ebp - 4], eax
mov eax, dword [ebp + 8]
test eax, eax
push ebx
mov ebx, dword [ebp + 0xc]
push esi
mov esi, ecx
mov dword [ebp - 0x118], ebx
mov dword [ebp - 0x110], 0
je 0x6863d2
push edi
push 0x68dee0
push eax
call fcn.0068b58d
mov edi, eax
add esp, 8
test edi, edi
jne 0x68619e
push 0x193
mov ecx, esi
call fcn.00682270
push 0x194
mov ecx, esi
call fcn.00682270
push 0x19c
mov ecx, esi
call fcn.00682270
push 0x19b
mov ecx, esi
call fcn.00682270
push 0x1a6
mov ecx, esi
call fcn.00682270
push 4
mov ecx, esi
call fcn.00682270
push 0x238
mov ecx, esi
call fcn.00682270
push 0x12c
mov ecx, esi
call fcn.00682270
push 0x1f6
mov ecx, esi
call fcn.00682270
test ebx, ebx
je 0x6863d1
push 0x68da2c
mov ecx, ebx
call fcn.00685e30
pop edi
pop esi
pop ebx
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.0067de1d
mov esp, ebp
pop ebp
ret 8
mov eax, dword [esi + 0x10]
push edi
push 1
mov dword [eax], 0
mov ecx, dword [esi + 0x10]
push 4
push ecx
call fcn.0068b8cf
push edi
push 1
lea edx, [ebp - 0x110]
push 4
push edx
mov dword [ebp - 0x110], 0
call fcn.0068b8cf
add esp, 0x20
test byte [ebp - 0x110], 1
je 0x6861e8
push 0x19c
mov ecx, esi
call fcn.00682270
test byte [ebp - 0x110], 2
je 0x6861fd
push 0x12e
mov ecx, esi
call fcn.00682270
test byte [ebp - 0x110], 4
je 0x686212
push 0x12c
mov ecx, esi
call fcn.00682270
test byte [ebp - 0x110], 8
je 0x686227
push 0x12d
mov ecx, esi
call fcn.00682270
test byte [ebp - 0x110], 0x10
je 0x686239
push 1
mov ecx, esi
call fcn.00682270
test dword [ebp - 0x110], 0x2000
je 0x686251
push 0x230
mov ecx, esi
call fcn.00682270
test byte [ebp - 0x110], 0x20
je 0x686266
push 0x19b
mov ecx, esi
call fcn.00682270
test byte [ebp - 0x110], 0x40
je 0x686278
push 2
mov ecx, esi
call fcn.00682270
test byte [ebp - 0x110], 0x80
je 0x68628d
push 0x194
mov ecx, esi
call fcn.00682270
test dword [ebp - 0x110], 0x4000
je 0x6862a5
push 0x1f6
mov ecx, esi
call fcn.00682270
test dword [ebp - 0x110], 0x100
je 0x6862bd
push 0x191
mov ecx, esi
call fcn.00682270
test dword [ebp - 0x110], 0x200
je 0x6862d5
push 0x1a6
mov ecx, esi
call fcn.00682270
test dword [ebp - 0x110], 0x400
je 0x6862ed
push 0x193
mov ecx, esi
call fcn.00682270
test dword [ebp - 0x110], 0x800
je 0x686305
push 0x238
mov ecx, esi
call fcn.00682270
test dword [ebp - 0x110], 0x1000
je 0x68631d
push 0x190
mov ecx, esi
call fcn.00682270
push edi
push 4
lea eax, [ebp - 0x114]
push 1
push eax
mov byte [ebp - 0x109], 0
call fcn.0068b8cf
add esp, 0x10
cmp eax, 4
jne 0x6863c8
xor esi, esi
cmp dword [ebp - 0x114], esi
jbe 0x6863c8
mov ebx, dword [0x68c140]
push edi
push 1
lea ecx, [ebp - 0x109]
push 1
push ecx
mov byte [ebp - 0x109], 0
call fcn.0068b8cf
add esp, 0x10
cmp eax, 1
jne 0x6863c8
movzx edx, byte [ebp - 0x109]
push edi
push edx
push eax
lea eax, [ebp - 0x108]
push eax
call fcn.0068b8cf
movzx ecx, byte [ebp - 0x109]
add esp, 0x10
cmp eax, ecx
jne 0x6863c8
lea edx, [ebp - 0x108]
push edx
mov byte [ebp - 5], 0
call ebx
cmp eax, 0xffffffff
je 0x6863bd
mov ecx, dword [ebp - 0x118]
test ecx, ecx
je 0x6863bd
lea eax, [ebp - 0x108]
push eax
call fcn.00685e30
add esi, 1
cmp esi, dword [ebp - 0x114]
jb 0x686351
push edi
call fcn.0068b26c
add esp, 4
pop edi
mov ecx, dword [ebp - 4]
pop esi
xor ecx, ebp
pop ebx
call fcn.0067de1d
mov esp, ebp
pop ebp
ret 8