Function at 0x408b20
Capabilities:
Read file on windows

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x2b4
mov eax, dword [0x463040]
xor eax, ebp
mov dword [ebp - 4], eax
push ebx
mov ebx, dword [ebp + 0xc]
push esi
push edi
mov edi, ecx
mov ecx, dword [ebp + 8]
mov dword [ebp - 0x25c], edi
cmp ecx, 0xffffffff
jl 0x4092e3
mov eax, dword [edi]
mov dword [ebp - 0x21c], eax
cmp ecx, dword [eax + 4]
jge 0x4092e3
cmp dword [edi + 4], 0xffffffff
je 0x408bb2
test eax, eax
je 0x408bb2
mov esi, dword [eax + 0x7c]
test esi, esi
je 0x408bb2
mov eax, dword [esi]
test eax, eax
je 0x408b7e
push eax
call fcn.0043abee
add esp, 4
cmp dword [esi + 0x40], 0
mov dword [esi], 0
je 0x408b92
lea ecx, [esi + 4]
call fcn.00406c00
push esi
mov dword [esi + 0x40], 0
call fcn.0043abee
mov eax, dword [ebp - 0x21c]
add esp, 4
mov ecx, dword [ebp + 8]
mov dword [eax + 0x7c], 0
mov dword [edi + 4], 0xffffffff
cmp ecx, dword [edi + 0x134]
jne 0x408be7
cmp ecx, 0xffffffff
je 0x408bec
lea esi, [edi + 8]
mov ecx, 0x4b
mov edi, ebx
xor eax, eax
rep movsd dword es:[edi], dword [esi]
pop edi
pop esi
pop ebx
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.0043435c
mov esp, ebp
pop ebp
ret 8
cmp ecx, 0xffffffff
jne 0x408c66
mov eax, dword [edi]
mov eax, dword [eax + 4]
mov dword [ebx], eax
xor eax, eax
mov byte [ebx + 4], 0
mov dword [ebx + 0x108], 0
mov dword [ebx + 0x10c], 0
mov dword [ebx + 0x110], 0
mov dword [ebx + 0x114], 0
mov dword [ebx + 0x118], 0
mov dword [ebx + 0x11c], 0
mov dword [ebx + 0x120], 0
mov dword [ebx + 0x124], 0
mov dword [ebx + 0x128], 0
pop edi
pop esi
pop ebx
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.0043435c
mov esp, ebp
pop ebp
ret 8
mov esi, dword [edi]
cmp ecx, dword [esi + 0x10]
jge 0x408ca3
test esi, esi
je 0x408ca3
mov eax, dword [esi + 0x24]
lea edx, [esi + 0x28]
sub esp, 0x10
mov dword [esi + 0x14], eax
lea eax, [esi + 0x78]
mov dword [esi + 0x10], 0
mov ecx, esi
push 0
push 0
push eax
call fcn.004078a0
xor ecx, ecx
add esp, 0x1c
test eax, eax
sete cl
mov dword [esi + 0x18], ecx
mov ecx, dword [ebp + 8]
mov esi, dword [edi]
cmp dword [esi + 0x10], ecx
jge 0x408d03
nop word [eax + eax]
test esi, esi
je 0x408cfc
cmp dword [esi + 0x18], 0
je 0x408cfc
mov edx, dword [esi + 0x10]
inc edx
cmp edx, dword [esi + 4]
je 0x408cfc
mov ecx, dword [esi + 0x50]
sub esp, 0x10
mov eax, dword [esi + 0x48]
add ecx, 0x2e
add ecx, dword [esi + 0x4c]
add eax, ecx
mov dword [esi + 0x10], edx
add dword [esi + 0x14], eax
lea edx, [esi + 0x28]
push 0
lea eax, [esi + 0x78]
mov ecx, esi
push 0
push eax
call fcn.004078a0
xor ecx, ecx
add esp, 0x1c
test eax, eax
sete cl
mov dword [esi + 0x18], ecx
mov ecx, dword [ebp + 8]
mov esi, dword [edi]
cmp dword [esi + 0x10], ecx
jl 0x408cb0
sub esp, 0x10
lea eax, [ebp - 0x110]
lea edx, [ebp - 0x2b0]
mov ecx, esi
push 0x104
push eax
push 0
call fcn.004078a0
mov ecx, dword [edi]
lea eax, [ebp - 0x254]
add esp, 0x1c
lea edx, [ebp - 0x224]
push eax
lea eax, [ebp - 0x250]
push eax
call fcn.004081e0
add esp, 8
test eax, eax
je 0x408d5e
mov eax, 0x700
pop edi
pop esi
pop ebx
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.0043435c
mov esp, ebp
pop ebp
ret 8
mov eax, dword [edi]
mov ecx, dword [eax]
cmp byte [ecx], 0
je 0x408d8a
cmp byte [ecx + 1], 0
je 0x408e3c
mov eax, dword [ecx + 0xc]
add eax, dword [ebp - 0x250]
push 0
push 0
push eax
push dword [ecx + 4]
call dword [sym.imp.KERNEL32.dll_SetFilePointer]
jmp 0x408d93
mov eax, dword [ebp - 0x250]
mov dword [ecx + 0x1c], eax
push dword [ebp - 0x254]
call fcn.004345cd
mov ecx, dword [edi]
add esp, 4
mov dword [ebp - 0x24c], eax
mov esi, dword [ecx]
cmp byte [esi], 0
je 0x408dd9
push 0
lea ecx, [ebp - 0x21c]
push ecx
push dword [ebp - 0x254]
push eax
push dword [esi + 4]
call dword [sym.imp.KERNEL32.dll_ReadFile]
test eax, eax
jne 0x408dd1
mov byte [esi + 8], 1
mov eax, dword [ebp - 0x21c]
jmp 0x408e26
mov edx, dword [esi + 0x1c]
mov ecx, dword [esi + 0x18]
mov eax, dword [ebp - 0x254]
add eax, edx
mov dword [ebp - 0x250], ecx
sub dword [ebp - 0x250], edx
cmp eax, ecx
mov eax, dword [ebp - 0x250]
cmovbe eax, dword [ebp - 0x254]
push eax
mov dword [ebp - 0x250], eax
mov eax, dword [esi + 0x14]
add eax, edx
push eax
push dword [ebp - 0x24c]
call fcn.004376f0
mov eax, dword [ebp - 0x250]
add esp, 0xc
add dword [esi + 0x1c], eax
cmp eax, dword [ebp - 0x254]
je 0x408e54
push dword [ebp - 0x24c]
call fcn.0043436a
add esp, 4
mov eax, 0x800
pop edi
pop esi
pop ebx
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.0043435c
mov esp, ebp
pop ebp
ret 8
mov eax, dword [edi]
xor ecx, ecx
mov eax, dword [eax + 0x10]
mov dword [ebx], eax
nop dword [eax]
mov al, byte [ebp + ecx - 0x110]
lea ecx, [ecx + 1]
mov byte [ebp + ecx - 0x219], al
test al, al
jne 0x408e60
lea esi, [ebp - 0x218]
nop dword [eax + eax]
mov cl, byte [esi]
test cl, cl
je 0x408e91
cmp byte [esi + 1], 0x3a
jne 0x408e91
add esi, 2
jmp 0x408e80
cmp cl, 0x5c
jne 0x408e99
inc esi
jmp 0x408e80
cmp cl, 0x2f
jne 0x408ea1
inc esi
jmp 0x408e80
push 0x45a0b0
push esi
call fcn.0043b16b
add esp, 8
test eax, eax
je 0x408eb8
lea esi, [eax + 4]
jmp 0x408e80
push str..._
push esi
call fcn.0043b16b
add esp, 8
test eax, eax
je 0x408ecf
lea esi, [eax + 4]
jmp 0x408e80
push 0x45a0c0
push esi
call fcn.0043b16b
add esp, 8
test eax, eax
je 0x408ee6
lea esi, [eax + 4]
jmp 0x408e80
push str._.._
push esi
call fcn.0043b16b
add esp, 8
test eax, eax
je 0x408efd
lea esi, [eax + 4]
jmp 0x408e80
push esi
lea eax, [ebx + 4]
push 0x104
push eax
call fcn.0043b02c
mov edx, dword [ebp - 0x27c]
add esp, 0xc
mov eax, edx
mov byte [ebp - 0x258], 0
shr eax, 0x1e
mov ecx, edx
and eax, 0xffffff01
shr ecx, 0x17
mov dword [ebp - 0x250], eax
not cl
mov eax, dword [ebp - 0x2b0]
and cl, 1
shr eax, 8
mov byte [ebp - 0x21c], 0
mov byte [ebp - 0x224], 1
test eax, eax
je 0x408f60
cmp eax, 7
je 0x408f60
cmp eax, 0xb
je 0x408f60
cmp eax, 0xe
jne 0x408f9c
mov eax, edx
mov cl, dl
shr eax, 1
and cl, 1
and eax, 0xffffff01
mov dword [ebp - 0x258], eax
mov eax, edx
shr eax, 2
and eax, 0xffffff01
mov dword [ebp - 0x21c], eax
mov eax, edx
shr eax, 4
and al, 1
shr edx, 5
mov byte [ebp - 0x250], al
and edx, 0xffffff01
jmp 0x408fa2
mov edx, dword [ebp - 0x224]
xor eax, eax
mov dword [ebx + 0x108], 0
cmp byte [ebp - 0x250], al
je 0x408fc5
mov dword [ebx + 0x108], 0x10
mov eax, 0x10
test dl, dl
je 0x408fd2
or eax, 0x20
mov dword [ebx + 0x108], eax
cmp byte [ebp - 0x258], 0
je 0x408fe4
or eax, 2
mov dword [ebx + 0x108], eax
test cl, cl
je 0x408ff1
or eax, 1
mov dword [ebx + 0x108], eax
cmp byte [ebp - 0x21c], 0
je 0x409003
or eax, 4
mov dword [ebx + 0x108], eax
mov edx, dword [ebp - 0x2a0]
mov esi, 0x7bc
mov eax, dword [ebp - 0x298]
mov ecx, edx
mov dword [ebx + 0x124], eax
mov eax, dword [ebp - 0x294]
mov dword [ebx + 0x128], eax
shr ecx, 0x10
mov ax, cx
shr ax, 9
add ax, si
mov word [ebp - 0x238], ax
mov eax, ecx
shr eax, 5
and ecx, 0x1f
and eax, 0xf
mov word [ebp - 0x232], cx
mov word [ebp - 0x236], ax
mov ax, dx
shr ax, 0xb
mov word [ebp - 0x230], ax
mov eax, edx
shr eax, 5
and edx, 0x1f
and eax, 0x3f
add edx, edx
mov word [ebp - 0x22e], ax
xor eax, eax
mov word [ebp - 0x22a], ax
lea eax, [ebp - 0x228]
push eax
lea eax, [ebp - 0x238]
mov word [ebp - 0x22c], dx
push eax
call dword [sym.imp.KERNEL32.dll_SystemTimeToFileTime]
mov eax, dword [ebp - 0x228]
mov ecx, dword [ebp - 0x224]
mov dword [ebp - 0x240], eax
lea eax, [ebp - 0x248]
push eax
lea eax, [ebp - 0x240]
mov dword [ebp - 0x23c], ecx
push eax
call dword [sym.imp.KERNEL32.dll_LocalFileTimeToFileTime]
mov ecx, dword [ebp - 0x248]
xor esi, esi
cmp dword [ebp - 0x254], 4
mov eax, dword [ebp - 0x244]
mov dword [ebx + 0x10c], ecx
mov dword [ebx + 0x114], ecx
mov dword [ebx + 0x11c], ecx
mov ecx, dword [ebp - 0x24c]
mov dword [ebx + 0x110], eax
mov dword [ebx + 0x118], eax
mov dword [ebx + 0x120], eax
jbe 0x4092aa
mov byte [ebp - 0x21e], 0
nop dword [eax]
nop word [eax + eax]
movzx eax, byte [esi + ecx]
mov byte [ebp - 0x220], al
movzx eax, byte [esi + ecx + 1]
lea ecx, [ebp - 0x220]
mov byte [ebp - 0x21f], al
mov eax, 0x45a0d0
mov dl, byte [ecx]
cmp dl, byte [eax]
jne 0x409160
test dl, dl
je 0x40915c
mov dl, byte [ecx + 1]
cmp dl, byte [eax + 1]
jne 0x409160
add ecx, 2
add eax, 2
test dl, dl
jne 0x409140
xor eax, eax
jmp 0x409165
sbb eax, eax
or eax, 1
test eax, eax
je 0x409189
mov ecx, dword [ebp - 0x24c]
movzx eax, byte [esi + ecx + 2]
add eax, 4
add esi, eax
lea eax, [esi + 4]
cmp eax, dword [ebp - 0x254]
jb 0x409120
jmp 0x4092aa
mov eax, dword [ebp - 0x24c]
mov al, byte [esi + eax + 4]
add esi, 5
movzx ecx, al
mov edx, ecx
shr ecx, 2
shr edx, 1
and cl, 1
and edx, 0xffffff01
mov dword [ebp - 0x21c], ecx
mov dword [ebp - 0x224], edx
test al, 1
je 0x409208
mov edx, dword [ebp - 0x24c]
movzx eax, byte [esi + edx + 3]
movzx ecx, byte [esi + edx + 2]
shl eax, 8
or eax, ecx
movzx ecx, byte [esi + edx + 1]
shl eax, 8
or eax, ecx
movzx ecx, byte [esi + edx]
shl eax, 8
add esi, 4
or eax, ecx
mov ecx, 0x989680
imul ecx
add eax, 0xd53e8000
mov dword [ebx + 0x11c], eax
adc edx, 0x19db1de
mov dword [ebx + 0x120], edx
mov edx, dword [ebp - 0x224]
test dl, dl
je 0x409255
mov edx, dword [ebp - 0x24c]
movzx eax, byte [esi + edx + 3]
movzx ecx, byte [esi + edx + 2]
shl eax, 8
or eax, ecx
movzx ecx, byte [esi + edx + 1]
shl eax, 8
or eax, ecx
movzx ecx, byte [esi + edx]
shl eax, 8
add esi, 4
or eax, ecx
mov ecx, 0x989680
imul ecx
add eax, 0xd53e8000
mov dword [ebx + 0x10c], eax
adc edx, 0x19db1de
mov dword [ebx + 0x110], edx
cmp byte [ebp - 0x21c], 0
je 0x4092a4
mov edx, dword [ebp - 0x24c]
movzx eax, byte [esi + edx + 3]
movzx ecx, byte [esi + edx + 2]
shl eax, 8
or eax, ecx
movzx ecx, byte [esi + edx + 1]
shl eax, 8
or eax, ecx
movzx ecx, byte [esi + edx]
shl eax, 8
or eax, ecx
mov ecx, 0x989680
imul ecx
add eax, 0xd53e8000
mov dword [ebx + 0x114], eax
adc edx, 0x19db1de
mov dword [ebx + 0x118], edx
mov ecx, dword [ebp - 0x24c]
push ecx
call fcn.0043436a
mov eax, dword [ebp - 0x25c]
add edi, 8
mov ecx, 0x4b
mov esi, ebx
rep movsd dword es:[edi], dword [esi]
mov ecx, dword [ebp + 8]
add esp, 4
mov dword [eax + 0x134], ecx
xor eax, eax
pop edi
pop esi
pop ebx
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.0043435c
mov esp, ebp
pop ebp
ret 8
mov ecx, dword [ebp - 4]
mov eax, 0x10000
pop edi
pop esi
xor ecx, ebp
pop ebx
call fcn.0043435c
mov esp, ebp
pop ebp
ret 8