Function at 0x403330
Capabilities:
Read file on windows

Disassembly:
push 0xffffffffffffffff
push 0x4683b8
mov eax, dword fs:[0]
push eax
sub esp, 0x20
mov eax, dword [0x4812a4]
xor eax, esp
mov dword [esp + 0x1c], eax
push ebx
push ebp
push edi
mov eax, dword [0x4812a4]
xor eax, esp
push eax
lea eax, [esp + 0x30]
mov dword fs:[0], eax
mov ebp, dword [esp + 0x40]
xor ebx, ebx
cmp ebp, ebx
jne 0x4033ab
cmp byte [esi + 0x44], bl
jne 0x4033a4
mov byte [esi + 0x44], 1
mov dword [esi + 0x48], 2
mov edx, dword [str.Failed_to_open_file]
mov eax, edx
lea edi, [eax + 1]
mov cl, byte [eax]
add eax, 1
test cl, cl
jne 0x403386
sub eax, edi
push eax
push edx
lea ecx, [esi + 0x4c]
call fcn.00407a50
or eax, 0xffffffff
mov dword [esi + 0x70], eax
mov dword [esi + 0x6c], eax
xor al, al
jmp 0x4035d8
mov edi, dword [esi + 0x18]
cmp edi, ebx
je 0x4033c3
mov ecx, edi
mov eax, dword [ecx]
mov edx, dword [eax]
mov edi, dword [edi + 0x40]
push 1
call edx
cmp edi, ebx
jne 0x4033b2
push 2
or eax, 0xffffffff
mov dword [esi + 0x18], ebx
mov dword [esi + 0x1c], ebx
push ebx
push ebp
mov dword [esi + 8], eax
mov dword [esi + 4], eax
call fcn.0044a10c
push ebp
call fcn.0044a329
push ebx
push ebx
push ebp
mov edi, eax
call fcn.0044a10c
add esp, 0x1c
cmp edi, ebx
jg 0x40341e
cmp byte [esi + 0x44], bl
jne 0x4033a4
mov byte [esi + 0x44], 1
mov dword [esi + 0x48], 0xd
mov edx, dword [str.Error_document_empty.]
mov eax, edx
lea edi, [eax + 1]
lea ecx, [ecx]
mov cl, byte [eax]
add eax, 1
test cl, cl
jne 0x403410
jmp 0x40338f
mov dword [esp + 0x28], 0xf
mov dword [esp + 0x24], ebx
mov byte [esp + 0x14], bl
mov dword [esp + 0x38], ebx
mov eax, dword [esp + 0x24]
cmp eax, edi
ja 0x403469
cmp dword [esp + 0x28], edi
je 0x403469
push 1
push edi
lea ecx, [esp + 0x18]
mov ebx, eax
call fcn.00406ce0
test al, al
je 0x403469
cmp dword [esp + 0x28], 0x10
mov eax, dword [esp + 0x14]
mov dword [esp + 0x24], ebx
jae 0x403465
lea eax, [esp + 0x14]
mov byte [eax + ebx], 0
lea eax, [edi + 1]
push eax
call fcn.00448742
push ebp
push 1
mov ebx, eax
push edi
push ebx
mov byte [ebx], 0
call fcn.0044a633
add esp, 0x14
cmp eax, 1
je 0x403509
push ebx
call fcn.00449838
add esp, 4
cmp byte [esi + 0x44], 0
jne 0x4034d2
mov byte [esi + 0x44], 1
mov dword [esi + 0x48], 2
mov edx, dword [str.Failed_to_open_file]
mov eax, edx
lea edi, [eax + 1]
mov cl, byte [eax]
add eax, 1
test cl, cl
jne 0x4034b2
sub eax, edi
push eax
push edx
lea ecx, [esi + 0x4c]
call fcn.00407a50
or eax, 0xffffffff
mov dword [esi + 0x70], eax
mov dword [esi + 0x6c], eax
jmp 0x4034d5
or eax, 0xffffffff
mov dword [esp + 0x38], eax
cmp dword [esp + 0x28], 0x10
jb 0x4034ed
mov ecx, dword [esp + 0x14]
push ecx
call fcn.00449824
add esp, 4
mov dword [esp + 0x28], 0xf
mov dword [esp + 0x24], 0
mov byte [esp + 0x14], 0
xor al, al
jmp 0x4035d8
mov byte [ebx + edi], 0
cmp byte [ebx], 0
mov eax, ebx
mov ebp, ebx
je 0x403575
mov cl, byte [ebp]
cmp cl, 0xa
jne 0x403537
mov edx, ebp
sub edx, eax
add edx, 1
push edx
push eax
lea eax, [esp + 0x18]
call fcn.004090c0
add ebp, 1
mov eax, ebp
jmp 0x40356f
cmp cl, 0xd
jne 0x40356c
mov ecx, ebp
sub ecx, eax
test ecx, ecx
jle 0x40354f
push ecx
push eax
lea eax, [esp + 0x18]
call fcn.004090c0
push 0xa
mov eax, 1
lea edi, [esp + 0x14]
call fcn.004071b0
cmp byte [ebp + 1], 0xa
jne 0x403530
add ebp, 2
mov eax, ebp
jmp 0x40356f
add ebp, 1
cmp byte [ebp], 0
jne 0x403516
sub ebp, eax
je 0x403584
push ebp
push eax
lea eax, [esp + 0x18]
call fcn.004090c0
push ebx
call fcn.00449838
mov eax, dword [esp + 0x18]
add esp, 4
cmp dword [esp + 0x28], 0x10
jae 0x40359c
lea eax, [esp + 0x14]
mov edx, dword [esi]
push 0
push 0
push eax
mov eax, dword [edx + 8]
mov ecx, esi
call eax
cmp byte [esi + 0x44], 0
je 0x4035c5
mov dword [esp + 0x38], 0xffffffff
lea ecx, [esp + 0x10]
call fcn.00409220
xor al, al
jmp 0x4035d8
mov dword [esp + 0x38], 0xffffffff
lea ecx, [esp + 0x10]
call fcn.00409220
mov al, 1
mov ecx, dword [esp + 0x30]
mov dword fs:[0], ecx
pop ecx
pop edi
pop ebp
pop ebx
mov ecx, dword [esp + 0x1c]
xor ecx, esp
call fcn.00449829
add esp, 0x2c
ret 4