Function at 0x408307
Capabilities:
Read file on windows

Disassembly:
cmp dword [0x41abe4], 0x32
jb 0x40856a
cmp dword [0x41abe4], 0x100000
jae 0x407b44
mov eax, dword [edi]
mov edx, dword [0x41abe4]
mov byte [eax + edx + 1], 0
mov byte [0x41acbc], 0
mov byte [0x41acbd], 0
mov byte [0x41acbe], 0
mov esi, dword [0x41abe4]
test esi, esi
jbe 0x408533
mov ebx, 1
cmp byte [0x41acbe], 0
jne 0x407b8c
mov eax, dword [edi]
cmp byte [eax + ebx], 8
jne 0x407d43
inc byte [0x41acbe]
jmp 0x407d43
cmp byte [0x41acbe], 1
jne 0x407bd3
mov eax, dword [edi]
mov al, byte [eax + ebx]
mov edx, eax
and dl, 0xf
cmp dl, 9
jne 0x407bc7
and eax, 0xff
shr eax, 4
cmp eax, 0xff
ja 0x407bba
bt dword [0x419158], eax
jae 0x407bc7
inc byte [0x41acbe]
jmp 0x407d43
mov byte [0x41acbe], 0
jmp 0x407d43
cmp byte [0x41acbe], 1
jbe 0x407c13
cmp byte [0x41acbe], 9
jae 0x407c13
mov eax, dword [edi]
mov al, byte [eax + ebx]
xor edx, edx
mov dl, al
shr edx, 4
cmp edx, 0xa
jae 0x407c07
and al, 0xf
cmp al, 0xa
jae 0x407c07
inc byte [0x41acbe]
jmp 0x407d43
mov byte [0x41acbe], 0
jmp 0x407d43
mov al, byte [0x41acbe]
add al, 0xf7
sub al, 7
jae 0x407c3d
mov eax, dword [edi]
cmp byte [eax + ebx], 0
jne 0x407c31
inc byte [0x41acbe]
jmp 0x407d43
mov byte [0x41acbe], 0
jmp 0x407d43
cmp byte [0x41acbe], 0x10
jne 0x407d43
mov eax, dword [0x41ac2c]
call fcn.0040358c
mov edx, eax
xor eax, eax
mov al, byte [0x41acbe]
mov ecx, ebx
sub ecx, eax
mov eax, dword [edi]
add eax, ecx
mov ecx, 9
call fcn.00405a68
mov eax, dword [0x41ac2c]
call fcn.00405a04
test al, al
je 0x407d3c
mov eax, dword [0x41ac30]
call fcn.0040358c
mov edx, eax
mov eax, dword [edi]
add eax, ebx
mov ecx, 0x10
call fcn.00405a68
mov eax, dword [0x41ac30]
call fcn.00405a04
test al, al
je 0x407d3c
mov edx, dword [0x41ac18]
mov eax, dword [0x41ac30]
call fcn.00403624
test eax, eax
jne 0x407d3c
push dword [0x41ac18]
push 0x408774
push 0x40880c
mov eax, dword [0x41ac00]
add eax, ebx
xor edx, edx
mov dl, byte [0x41acbe]
sub eax, edx
xor edx, edx
push edx
push eax
lea eax, [ebp - 0x14]
call fcn.00404900
push dword [ebp - 0x14]
push 0x40881c
push dword [0x41ac2c]
push 0x408828
push 0x408834
mov eax, dword [0x41ac00]
add eax, ebx
xor edx, edx
push edx
push eax
lea eax, [ebp - 0x18]
call fcn.00404900
push dword [ebp - 0x18]
push 0x40881c
push dword [0x41ac30]
mov eax, 0x41ac18
mov edx, 0xb
call fcn.0040344c
inc dword [0x41ac0c]
mov byte [0x41acbe], 0
cmp byte [0x41acbc], 0
jne 0x407d63
mov eax, dword [edi]
cmp byte [eax + ebx], 0x30
jne 0x4080ea
inc byte [0x41acbc]
jmp 0x4080ea
cmp byte [0x41acbc], 1
jne 0x407d99
mov eax, dword [edi]
cmp byte [eax + ebx], 0x38
jne 0x407d86
inc byte [0x41acbc]
mov byte [0x41acbd], 2
jmp 0x40852b
mov byte [0x41acbc], 0
mov byte [0x41acbd], 0
jmp 0x4080ea
cmp byte [0x41acbc], 2
jne 0x407de0
mov eax, dword [edi]
mov al, byte [eax + ebx]
and eax, 0xff
bt dword [0x419138], eax
jae 0x407dd4
mov eax, dword [edi]
mov al, byte [eax + ebx - 3]
and eax, 0xff
bt dword [0x419118], eax
jae 0x407dd4
inc byte [0x41acbc]
jmp 0x4080ea
mov byte [0x41acbc], 0
jmp 0x4080ea
cmp byte [0x41acbc], 3
jne 0x407e08
mov eax, dword [edi]
cmp byte [eax + ebx], 0x39
jne 0x407dfc
inc byte [0x41acbc]
jmp 0x4080ea
mov byte [0x41acbc], 0
jmp 0x4080ea
cmp byte [0x41acbc], 3
jbe 0x407e44
cmp byte [0x41acbc], 0x11
jae 0x407e44
mov eax, dword [edi]
mov al, byte [eax + ebx]
and eax, 0xff
bt dword [0x4190d8], eax
jae 0x407e38
inc byte [0x41acbc]
jmp 0x4080ea
mov byte [0x41acbc], 0
jmp 0x4080ea
cmp byte [0x41acbc], 0x11
jne 0x4080ea
mov eax, dword [edi]
mov al, byte [eax + ebx]
and eax, 0xff
bt dword [0x4190d8], eax
jae 0x4080ea
mov eax, dword [edi]
mov al, byte [eax + ebx + 1]
and eax, 0xff
bt dword [0x419118], eax
jae 0x4080ea
xor eax, eax
mov al, byte [0x41acbc]
mov edx, ebx
sub edx, eax
mov dword [0x41abe8], edx
mov byte [0x41acbc], 0
mov eax, 0x41ac1c
call fcn.004035dc
mov edx, dword [edi]
mov ecx, dword [0x41abe8]
add edx, ecx
mov ecx, 0x12
call fcn.004043ec
mov eax, dword [0x41ac1c]
call fcn.00405a04
test al, al
je 0x4080ea
push dword [0x41ac10]
push 0x408774
push 0x408844
mov eax, dword [0x41ac00]
add eax, dword [0x41abe8]
xor edx, edx
push edx
push eax
lea eax, [ebp - 0x1c]
call fcn.00404900
push dword [ebp - 0x1c]
push 0x40881c
push dword [0x41ac1c]
mov eax, 0x41ac10
mov edx, 6
call fcn.0040344c
cmp dword [0x41abe8], 0xc8
jbe 0x407f29
mov eax, dword [0x41abe8]
sub eax, 0xc8
mov dword [0x41abf0], eax
jmp 0x407f33
mov dword [0x41abf0], 1
mov eax, dword [0x41abe8]
add eax, 0xc8
mov dword [0x41abf8], eax
mov eax, dword [0x41abf8]
add eax, 0x20
cmp eax, dword [0x41abe4]
jbe 0x407f5c
mov eax, dword [0x41abe4]
mov dword [0x41abf8], eax
mov eax, dword [0x41abf0]
cmp eax, dword [0x41abf8]
ja 0x4080e3
mov eax, dword [0x41abf0]
cmp eax, dword [0x41abe8]
jbe 0x407f88
cmp ebx, dword [0x41abf0]
jbe 0x407f88
mov dword [0x41abf0], ebx
cmp byte [0x41acbc], 0x1f
jae 0x407fc1
mov eax, dword [edi]
mov edx, dword [0x41abf0]
mov al, byte [eax + edx]
and eax, 0xff
bt dword [0x4190f8], eax
jae 0x407fb5
inc byte [0x41acbc]
jmp 0x4080cc
mov byte [0x41acbc], 0
jmp 0x4080cc
cmp byte [0x41acbc], 0x1f
jne 0x4080cc
mov eax, dword [edi]
mov edx, dword [0x41abf0]
mov al, byte [eax + edx]
and eax, 0xff
bt dword [0x4190f8], eax
jae 0x4080c5
mov eax, dword [edi]
mov edx, dword [0x41abf0]
mov al, byte [eax + edx + 1]
and eax, 0xff
bt dword [0x419118], eax
jae 0x4080c5
mov eax, dword [edi]
mov edx, dword [0x41abf0]
mov al, byte [eax + edx - 0x20]
and eax, 0xff
bt dword [0x419118], eax
jae 0x4080c5
mov eax, 0x41ac20
call fcn.004035dc
xor edx, edx
mov dl, byte [0x41acbc]
mov ecx, dword [0x41abf0]
sub ecx, edx
mov edx, dword [edi]
add edx, ecx
mov ecx, 0x20
call fcn.004043ec
mov eax, dword [0x41ac20]
call fcn.00405a04
test al, al
je 0x4080c5
mov edx, dword [0x41ac10]
mov eax, dword [0x41ac20]
call fcn.00403624
test eax, eax
jne 0x4080c5
push dword [0x41ac10]
push 0x408828
push 0x408854
mov eax, dword [0x41ac00]
add eax, dword [0x41abf0]
xor edx, edx
mov dl, byte [0x41acbc]
sub eax, edx
xor edx, edx
push edx
push eax
lea eax, [ebp - 0x20]
call fcn.00404900
push dword [ebp - 0x20]
push 0x40881c
push dword [0x41ac20]
mov eax, 0x41ac10
mov edx, 6
call fcn.0040344c
inc dword [0x41ac04]
mov byte [0x41acbc], 0
inc dword [0x41abf0]
mov eax, dword [0x41abf0]
cmp eax, dword [0x41abf8]
jbe 0x407f6d
mov byte [0x41acbc], 0
cmp byte [0x41acbd], 1
jbe 0x40852b
cmp byte [0x41acbd], 2
jne 0x40811f
mov eax, dword [edi]
cmp byte [eax + ebx], 0x20
jne 0x408113
inc byte [0x41acbd]
jmp 0x40852b
mov byte [0x41acbd], 0
jmp 0x40852b
cmp byte [0x41acbd], 3
jne 0x408152
mov eax, dword [edi]
mov al, byte [eax + ebx]
and eax, 0xff
bt dword [0x419138], eax
jae 0x408146
inc byte [0x41acbd]
jmp 0x40852b
mov byte [0x41acbd], 0
jmp 0x40852b
cmp byte [0x41acbd], 4
jne 0x40817a
mov eax, dword [edi]
cmp byte [eax + ebx], 0x39
jne 0x40816e
inc byte [0x41acbd]
jmp 0x40852b
mov byte [0x41acbd], 0
jmp 0x40852b
mov al, byte [0x41acbd]
cmp al, 0x1f
ja 0x40818d
and eax, 0x7f
bt dword [0x408858], eax
jae 0x4081ae
mov eax, dword [edi]
cmp byte [eax + ebx], 0x20
jne 0x4081a2
inc byte [0x41acbd]
jmp 0x40852b
mov byte [0x41acbd], 0
jmp 0x40852b
mov al, byte [0x41acbd]
cmp al, 0x1f
ja 0x4081c1
and eax, 0x7f
bt dword [0x40885c], eax
jae 0x4081ed
mov eax, dword [edi]
mov al, byte [eax + ebx]
and eax, 0xff
bt dword [0x4190d8], eax
jae 0x4081e1
inc byte [0x41acbd]
jmp 0x40852b
mov byte [0x41acbd], 0
jmp 0x40852b
cmp byte [0x41acbd], 0x19
jne 0x40852b
mov eax, dword [edi]
mov al, byte [eax + ebx]
and eax, 0xff
bt dword [0x4190d8], eax
jae 0x40852b
mov eax, dword [edi]
mov al, byte [eax + ebx + 1]
and eax, 0xff
bt dword [0x419118], eax
jae 0x40852b
mov eax, dword [edi]
mov al, byte [eax + ebx - 0x1a]
and eax, 0xff
bt dword [0x419118], eax
jae 0x40852b
xor eax, eax
mov al, byte [0x41acbd]
mov edx, ebx
sub edx, eax
mov dword [0x41abec], edx
mov byte [0x41acbd], 0
mov eax, dword [edi]
mov edx, dword [0x41abec]
lea edx, [eax + edx]
mov eax, 0x41ac24
mov ecx, 0x1a
call fcn.004032f8
lea edx, [ebp - 0x24]
mov eax, dword [0x41ac24]
call fcn.0040597c
mov edx, dword [ebp - 0x24]
mov eax, 0x41ac24
call fcn.0040325c
mov eax, dword [0x41ac24]
call fcn.00405a04
test al, al
je 0x40852b
push dword [0x41ac14]
push 0x408774
push 0x408868
mov eax, dword [0x41ac00]
inc ecx
add byte [ebx], al
add eax, 0x41abec
xor edx, edx
push edx
push eax
lea eax, [ebp - 0x28]
call fcn.00404900
push dword [ebp - 0x28]
push 0x40881c
push dword [0x41ac24]
mov eax, 0x41ac14
mov edx, 6
call fcn.0040344c
cmp dword [0x41abec], 0xc8
jbe 0x408300
mov eax, dword [0x41abec]
sub eax, 0xc8
mov dword [0x41abf4], eax
jmp 0x40830a
mov dword [0x41abf4], 1
mov eax, dword [0x41abec]
add eax, 0xc8
mov dword [0x41abfc], eax
mov eax, dword [0x41abfc]
add eax, 0x2f
cmp eax, dword [0x41abe4]
jbe 0x408333
mov eax, dword [0x41abe4]
mov dword [0x41abfc], eax
mov eax, dword [0x41abf4]
cmp eax, dword [0x41abfc]
ja 0x408524
mov eax, dword [0x41abf4]
cmp eax, dword [0x41abec]
jbe 0x40835f
cmp ebx, dword [0x41abf4]
jbe 0x40835f
mov dword [0x41abf4], ebx
mov al, byte [0x41acbd]
cmp al, 0x2f
ja 0x408372
and eax, 0x7f
bt dword [0x408870], eax
jae 0x4083a4
mov eax, dword [edi]
mov edx, dword [0x41abf4]
mov al, byte [eax + edx]
and eax, 0xff
bt dword [0x4190f8], eax
jae 0x408398
inc byte [0x41acbd]
jmp 0x40850d
mov byte [0x41acbd], 0
jmp 0x40850d
mov al, byte [0x41acbd]
cmp al, 0x2f
ja 0x4083b7
and eax, 0x7f
bt dword [0x408878], eax
jae 0x4083de
mov eax, dword [edi]
mov edx, dword [0x41abf4]
cmp byte [eax + edx], 0x20
jne 0x4083d2
inc byte [0x41acbd]
jmp 0x40850d
mov byte [0x41acbd], 0
jmp 0x40850d
cmp byte [0x41acbd], 0x2e
jne 0x40850d
mov eax, 0x41ab68
mov edx, 0x408888
call fcn.0040325c
mov eax, dword [edi]
mov edx, dword [0x41abf4]
mov al, byte [eax + edx]
and eax, 0xff
bt dword [0x4190f8], eax
jae 0x408506
mov eax, dword [edi]
mov edx, dword [0x41abf4]
mov al, byte [eax + edx + 1]
and eax, 0xff
bt dword [0x419118], eax
jae 0x408506
mov eax, dword [edi]
mov edx, dword [0x41abf4]
mov al, byte [eax + edx - 0x2f]
and eax, 0xff
bt dword [0x419118], eax
jae 0x408506
xor eax, eax
mov al, byte [0x41acbd]
mov edx, dword [0x41abf4]
sub edx, eax
mov eax, dword [edi]
lea edx, [eax + edx]
mov eax, 0x41ac28
mov ecx, 0x2f
call fcn.004032f8
lea edx, [ebp - 0x2c]
mov eax, dword [0x41ac28]
call fcn.0040597c
mov edx, dword [ebp - 0x2c]
mov eax, 0x41ac28
call fcn.0040325c
mov eax, dword [0x41ac28]
call fcn.00405a04
test al, al
je 0x408506
mov edx, dword [0x41ac14]
mov eax, dword [0x41ac28]
call fcn.00403624
test eax, eax
jne 0x408506
push dword [0x41ac14]
push 0x408828
push 0x408954
mov eax, dword [0x41ac00]
add eax, dword [0x41abf4]
xor edx, edx
mov dl, byte [0x41acbd]
sub eax, edx
xor edx, edx
push edx
push eax
lea eax, [ebp - 0x30]
call fcn.00404900
push dword [ebp - 0x30]
push 0x40881c
push dword [0x41ac28]
add byte [eax + 0x41ac14], bh
add byte [eax + 0x41ac14], bh
mov edx, 6
call fcn.0040344c
inc dword [0x41ac08]
mov byte [0x41acbd], 0
inc dword [0x41abf4]
mov eax, dword [0x41abf4]
cmp eax, dword [0x41abfc]
jbe 0x408344
mov byte [0x41acbd], 0
inc ebx
dec esi
jne 0x407b6c
mov eax, dword [0x41abe4]
add dword [0x41ac00], eax
push 0
push 0x41abe4
push 0x100000
mov eax, dword [edi]
inc eax
push eax
mov eax, dword [0x41abe0]
push eax
call sub.kernel32.dll_ReadFile
test eax, eax
je 0x40856a
cmp dword [0x41abe4], 0
ja 0x407b1e
cmp dword [0x41ac04], 0
jbe 0x408590
mov eax, dword [ebp - 8]
push dword [eax]
push dword [0x41ac10]
push 0x408774
mov eax, dword [ebp - 8]
mov edx, 3
call fcn.0040344c
cmp dword [0x41ac08], 0
jbe 0x4085b6
mov eax, dword [ebp - 8]
push dword [eax]
push dword [0x41ac14]
push 0x408774
mov eax, dword [ebp - 8]
mov edx, 3
call fcn.0040344c
cmp dword [0x41ac0c], 0
jbe 0x4085dc
mov eax, dword [ebp - 8]
push dword [eax]
push dword [0x41ac18]
push 0x408774
mov eax, dword [ebp - 8]
mov edx, 3
call fcn.0040344c
mov eax, 0x41ab68
mov edx, 0x408964
call fcn.0040325c
mov eax, dword [ebp - 8]
mov eax, dword [eax]
call fcn.0040338c
cmp eax, 0xed800
jle 0x408611
mov eax, dword [ebp - 8]
push eax
mov eax, dword [ebp - 8]
mov eax, dword [eax]
mov ecx, 0xed800
xor edx, edx
call fcn.004035e4
mov eax, dword [0x41abe0]
push eax
call sub.kernel32.dll_CloseHandle
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x408646
lea eax, [ebp - 0x30]
mov edx, 0xa
call fcn.0040322c
lea eax, [ebp - 4]
call fcn.00403208
ret