Function at 0x4df810
Capabilities:
Read file on windows

Disassembly:
sub esp, 0x44
mov eax, dword [0x6d7160]
xor eax, esp
mov dword [esp + 0x3c], eax
push ebx
push ebp
push esi
push edi
mov edi, edx
test edi, edi
mov esi, ecx
mov dword [esp + 0x1c], esi
mov dword [esp + 0x18], edi
jne 0x4df84a
mov eax, 4
pop edi
pop esi
pop ebp
pop ebx
mov ecx, dword [esp + 0x3c]
xor ecx, esp
call fcn.00607d6d
add esp, 0x44
ret
mov ecx, dword [edi + 0xc]
cmp ecx, dword [edi + 8]
ja 0x4dfb7f
mov eax, dword [edi + 4]
add eax, ecx
mov ecx, dword [esi + 0x10]
cmp dword [ecx + 0x14], 0
je 0x4df8da
mov edx, dword [ecx + 0x1c]
cmp edx, eax
ja 0x4df86d
mov eax, edx
mov dword [ecx + 0x18], eax
mov ecx, dword [edi + 0xc]
add ecx, 2
cmp ecx, dword [edi + 8]
ja 0x4dfb7f
mov esi, dword [esi + 0x10]
mov edx, dword [esi + 0x14]
test edx, edx
je 0x4df905
mov eax, dword [esi + 0x1c]
mov ebx, 2
cmp eax, ebx
jb 0x4df89f
mov ecx, dword [esi + 0x18]
lea ebp, [ecx + 2]
cmp ebp, eax
jbe 0x4df8ac
mov ecx, dword [esi + 0x18]
sub eax, ecx
mov ebx, eax
je 0x4dfb7f
add ecx, edx
push ebx
push ecx
lea edx, [esp + 0x1c]
push edx
call fcn.0060d1b0
add dword [esi + 0x18], ebx
add esp, 0xc
cmp ebx, 2
je 0x4df930
xor eax, eax
pop edi
pop esi
pop ebp
pop ebx
mov ecx, dword [esp + 0x3c]
xor ecx, esp
call fcn.00607d6d
add esp, 0x44
ret
push 0
push eax
mov eax, dword [ecx + 4]
push eax
call fcn.006081d8
add esp, 0xc
test eax, eax
je 0x4df870
mov eax, 3
pop edi
pop esi
pop ebp
pop ebx
mov ecx, dword [esp + 0x3c]
xor ecx, esp
call fcn.00607d6d
add esp, 0x44
ret
mov eax, dword [esi + 4]
push eax
push 1
lea ecx, [esp + 0x1c]
push 2
push ecx
call fcn.0060860a
add esp, 0x10
test eax, eax
jne 0x4df930
cmp dword [esi + 4], eax
jne 0x4dfb7f
cmp dword [esi + 0xc], eax
jne 0x4dfb7f
lea eax, [esp + 0x14]
call fcn.004dc400
mov ax, word [esp + 0x14]
cmp ax, 0x3e8
movzx edx, ax
lea ebx, [edx + edx*2]
lea ebx, [ebx*4 + 2]
mov dword [esp + 0x24], ebx
ja 0x4dfb7f
mov esi, dword [edi + 8]
cmp ebx, esi
ja 0x4dfb7f
mov eax, dword [edi + 0xc]
lea ecx, [eax + ebx]
cmp ecx, esi
ja 0x4dfb7f
test edx, edx
mov dword [edi + 0x10], ecx
mov ecx, dword [edi + 4]
lea ebp, [eax + ecx + 2]
mov dword [esp + 0x20], 0
jbe 0x4dfa7a
lea esp, [esp]
mov edx, dword [esp + 0x1c]
mov esi, dword [edx + 0x10]
mov edx, dword [esi + 0x14]
test edx, edx
je 0x4df9f2
mov eax, dword [esi + 0x1c]
mov ebx, 0xc
cmp eax, ebx
jb 0x4df9b8
mov ecx, dword [esi + 0x18]
lea edi, [ecx + 0xc]
cmp edi, eax
mov edi, dword [esp + 0x18]
jbe 0x4df9c1
mov ecx, dword [esi + 0x18]
sub eax, ecx
mov ebx, eax
je 0x4df9da
push ebx
add ecx, edx
push ecx
lea eax, [esp + 0x48]
push eax
call fcn.0060d1b0
add dword [esi + 0x18], ebx
add esp, 0xc
cmp ebx, 0xc
je 0x4dfa2d
mov eax, 2
pop edi
pop esi
pop ebp
pop ebx
mov ecx, dword [esp + 0x3c]
xor ecx, esp
call fcn.00607d6d
add esp, 0x44
ret
mov eax, dword [esi + 4]
test eax, eax
je 0x4dfa13
push eax
push 1
lea ecx, [esp + 0x48]
push 0xc
push ecx
call fcn.0060860a
add esp, 0x10
test eax, eax
je 0x4dfa13
xor esi, esi
jmp 0x4dfa23
cmp dword [esi + 4], 0
je 0x4dfa20
mov esi, 2
jmp 0x4dfa23
mov esi, dword [esi + 0xc]
test esi, esi
mov eax, esi
jne 0x4dfb81
lea edx, [esp + 0x40]
call fcn.004dc4b0
mov esi, dword [esp + 0x1c]
push ebp
lea ebx, [esp + 0x44]
mov eax, edi
mov ecx, esi
call fcn.004e3d70
add ebp, 0xc
mov ecx, ebp
mov eax, esi
call fcn.004e39f0
test eax, eax
jne 0x4dfb81
mov eax, dword [esp + 0x20]
movzx edx, word [esp + 0x14]
add eax, 1
cmp eax, edx
mov dword [esp + 0x20], eax
jb 0x4df990
mov ebx, dword [esp + 0x24]
jmp 0x4dfa7e
mov esi, dword [esp + 0x1c]
cmp dword [edi], 0
jne 0x4dfb7f
mov eax, dword [esi + 0xc]
shr eax, 9
test al, 1
je 0x4dfb7f
mov eax, dword [edi + 8]
lea ecx, [ebx + 4]
cmp ecx, eax
ja 0x4dfb7f
mov edx, dword [edi + 0xc]
lea ecx, [edx + ebx + 4]
cmp ecx, eax
ja 0x4dfb7f
mov esi, dword [esi + 0x10]
mov edx, dword [esi + 0x14]
test edx, edx
je 0x4dfb0d
mov eax, dword [esi + 0x1c]
mov ebx, 4
cmp eax, ebx
jb 0x4dfad2
mov ecx, dword [esi + 0x18]
lea ebp, [ecx + 4]
cmp ebp, eax
jbe 0x4dfadf
mov ecx, dword [esi + 0x18]
sub eax, ecx
mov ebx, eax
je 0x4dfb7f
add ecx, edx
push ebx
push ecx
lea edx, [esp + 0x20]
push edx
call fcn.0060d1b0
add dword [esi + 0x18], ebx
add esp, 0xc
cmp ebx, 4
je 0x4dfb30
xor eax, eax
pop edi
pop esi
pop ebp
pop ebx
mov ecx, dword [esp + 0x3c]
xor ecx, esp
call fcn.00607d6d
add esp, 0x44
ret
mov eax, dword [esi + 4]
push eax
push 1
lea ecx, [esp + 0x20]
push 4
push ecx
call fcn.0060860a
add esp, 0x10
test eax, eax
jne 0x4dfb30
cmp dword [esi + 4], eax
jne 0x4dfb7f
cmp dword [esi + 0xc], eax
jne 0x4dfb7f
cmp dword [esp + 0x18], 0
je 0x4dfb7f
lea ecx, [esp + 0x18]
call fcn.004dc410
mov eax, dword [edi + 8]
mov edx, dword [edi + 4]
mov edi, dword [esp + 0x1c]
mov dword [esp + 0x30], eax
mov eax, dword [esp + 0x18]
mov dword [esp + 0x34], eax
add eax, 2
lea esi, [esp + 0x28]
mov dword [esp + 0x28], 0x18
mov dword [esp + 0x2c], edx
mov dword [esp + 0x38], eax
mov byte [esp + 0x3c], 1
call fcn.004eb400
test eax, eax
je 0x4df832
xor eax, eax
mov ecx, dword [esp + 0x4c]
pop edi
pop esi
pop ebp
pop ebx
xor ecx, esp
call fcn.00607d6d
add esp, 0x44
ret