Function at 0x4df790
Capabilities:
Read file on windows

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x2c
mov dword [ebp - 0x10], 0
mov dword [ebp - 4], 0
mov dword [ebp - 0xc], 0
push 0x54bce4
mov eax, dword [ebp + 0xc]
push eax
mov ecx, dword [ebp + 8]
push ecx
call fcn.0046e6f0
add esp, 0xc
mov dword [ebp - 8], eax
cmp dword [ebp - 8], 0
je 0x4df958
push 2
push 0
mov edx, dword [ebp - 8]
push edx
call fcn.00443e5c
add esp, 0xc
mov eax, dword [ebp - 8]
push eax
call fcn.00443d67
add esp, 4
mov dword [ebp - 0x14], eax
push 0
push 0
mov ecx, dword [ebp - 8]
push ecx
call fcn.00443e5c
add esp, 0xc
mov edx, dword [ebp - 0x14]
add edx, 1
push edx
call fcn.00405e7b
add esp, 4
mov dword [ebp - 0x10], eax
cmp dword [ebp - 0x10], 0
je 0x4df953
mov eax, dword [ebp - 0x14]
add eax, 1
push eax
push 0
mov ecx, dword [ebp - 0x10]
push ecx
call fcn.004057a0
add esp, 0xc
mov edx, dword [ebp - 8]
push edx
push 1
mov eax, dword [ebp - 0x14]
push eax
mov ecx, dword [ebp - 0x10]
push ecx
call fcn.00443bb4
add esp, 0x10
mov edx, dword [ebp - 0x10]
add edx, dword [ebp - 0x14]
mov byte [edx], 0
mov eax, dword [ebp - 0x10]
mov dword [ebp - 4], eax
mov ecx, dword [ebp - 4]
mov dword [ebp - 0xc], ecx
mov edx, dword [ebp - 0x10]
movsx eax, byte [edx]
test eax, eax
je 0x4df8be
mov ecx, dword [ebp - 0x10]
movsx edx, byte [ecx]
cmp edx, 0xd
jne 0x4df897
mov eax, dword [ebp - 0x10]
movsx ecx, byte [eax + 1]
cmp ecx, 0xa
jne 0x4df897
mov edx, dword [ebp - 0x10]
add edx, 1
mov dword [ebp - 0x10], edx
mov eax, dword [ebp - 4]
mov ecx, dword [ebp - 0x10]
mov dl, byte [ecx]
mov byte [eax], dl
mov eax, dword [ebp - 4]
movsx ecx, byte [eax]
mov dword [ebp - 0x20], ecx
jmp 0x4df8bc
mov edx, dword [ebp - 4]
mov eax, dword [ebp - 0x10]
mov cl, byte [eax]
mov byte [edx], cl
mov edx, dword [ebp - 4]
movsx eax, byte [edx]
mov dword [ebp - 0x20], eax
mov ecx, dword [ebp - 4]
add ecx, 1
mov dword [ebp - 4], ecx
mov edx, dword [ebp - 0x10]
add edx, 1
mov dword [ebp - 0x10], edx
jmp 0x4df858
mov eax, dword [ebp - 4]
mov byte [eax], 0
mov ecx, dword [ebp - 0xc]
mov dword [ebp - 0x10], ecx
mov edx, dword [ebp - 8]
push edx
call fcn.0044389c
add esp, 4
mov eax, dword [ebp - 0x10]
mov dword [ebp - 0x1c], eax
mov ecx, dword [ebp - 0x1c]
mov dword [ebp - 0x18], ecx
mov edx, dword [ebp - 0x18]
movzx eax, byte [edx]
test eax, eax
je 0x4df94d
mov ecx, dword [ebp - 0x18]
movzx edx, byte [ecx]
cmp edx, 0x5c
jne 0x4df90e
mov eax, dword [ebp - 0x18]
movzx ecx, byte [eax + 1]
cmp ecx, 0xa
jne 0x4df90e
mov edx, dword [ebp - 0x18]
add edx, 2
mov dword [ebp - 0x18], edx
jmp 0x4df94b
mov eax, dword [ebp - 0x18]
movzx ecx, byte [eax]
cmp ecx, 0x93
je 0x4df929
mov edx, dword [ebp - 0x18]
movzx eax, byte [edx]
cmp eax, 0x94
jne 0x4df92f
mov ecx, dword [ebp - 0x18]
mov byte [ecx], 0x22
mov edx, dword [ebp - 0x1c]
mov eax, dword [ebp - 0x18]
mov cl, byte [eax]
mov byte [edx], cl
mov edx, dword [ebp - 0x1c]
add edx, 1
mov dword [ebp - 0x1c], edx
mov eax, dword [ebp - 0x18]
add eax, 1
mov dword [ebp - 0x18], eax
jmp 0x4df8e2
mov ecx, dword [ebp - 0x1c]
mov byte [ecx], 0
jmp 0x4dfa26
call fcn.00402cf0
mov edx, dword [eax]
mov dword [ebp - 0x24], edx
cmp dword [ebp - 0x24], 1
je 0x4df970
cmp dword [ebp - 0x24], 0xd
je 0x4df970
jmp 0x4df9cc
cmp dword [ebp + 8], 0
je 0x4df9ca
mov eax, dword [ebp + 8]
cmp dword [eax + 0x80], 0
je 0x4df994
xor ecx, ecx
je 0x4df994
mov edx, dword [ebp + 8]
mov eax, dword [edx + 0x80]
mov dword [ebp - 0x28], eax
jmp 0x4df99b
mov dword [ebp - 0x28], 0xffffffe2
mov ecx, dword [ebp + 8]
mov edx, dword [ebp - 0x28]
mov dword [ecx + 0x80], edx
push 0
push 0xff
mov eax, dword [ebp + 0xc]
push eax
call fcn.00402cf0
mov ecx, dword [eax]
push ecx
push 0x5b
push 0xffffffffffffffe2
mov edx, dword [ebp + 8]
push edx
call fcn.00463eb0
add esp, 0x1c
jmp 0x4dfa26
cmp dword [ebp + 8], 0
je 0x4dfa26
mov eax, dword [ebp + 8]
cmp dword [eax + 0x80], 0
je 0x4df9f0
xor ecx, ecx
je 0x4df9f0
mov edx, dword [ebp + 8]
mov eax, dword [edx + 0x80]
mov dword [ebp - 0x2c], eax
jmp 0x4df9f7
mov dword [ebp - 0x2c], 0xffffffff
mov ecx, dword [ebp + 8]
mov edx, dword [ebp - 0x2c]
mov dword [ecx + 0x80], edx
push 0
push 0xff
mov eax, dword [ebp + 0xc]
push eax
call fcn.00402cf0
mov ecx, dword [eax]
push ecx
push 0x5c
push 0xffffffffffffffff
mov edx, dword [ebp + 8]
push edx
call fcn.00463eb0
add esp, 0x1c
mov eax, dword [ebp - 0x10]
mov esp, ebp
pop ebp
ret