Function at 0x418880
Capabilities:
Read file on windows

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x2ac
mov eax, dword [0x44f00c]
xor eax, ebp
mov dword [ebp - 4], eax
mov eax, dword [ebp + 8]
push ebx
mov ebx, dword [ebp + 0xc]
mov dword [ebp - 0x220], ebx
push esi
push edi
mov edi, ecx
mov dword [ebp - 0x258], edi
cmp eax, 0xffffffff
jl 0x418ff3
mov ecx, dword [edi]
cmp eax, dword [ecx + 4]
jge 0x418ff3
cmp dword [edi + 4], 0xffffffff
je 0x4188cc
call fcn.00418810
mov eax, dword [ebp + 8]
mov dword [edi + 4], 0xffffffff
cmp eax, dword [edi + 0x134]
jne 0x418901
cmp eax, 0xffffffff
je 0x418906
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.004192ef
mov esp, ebp
pop ebp
ret 8
cmp eax, 0xffffffff
jne 0x418980
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.004192ef
mov esp, ebp
pop ebp
ret 8
mov ecx, dword [edi]
cmp dword [ecx + 0x10], eax
jle 0x4189c2
mov esi, ecx
test esi, esi
je 0x4189bf
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
push 0
push 0
push eax
call fcn.004177e0
xor ecx, ecx
add esp, 0x1c
test eax, eax
mov eax, dword [ebp + 8]
sete cl
mov dword [esi + 0x18], ecx
mov ecx, dword [edi]
cmp dword [ecx + 0x10], eax
jge 0x418a1f
mov ebx, dword [ebp + 8]
mov esi, ecx
test esi, esi
je 0x418a14
cmp dword [esi + 0x18], 0
je 0x418a14
mov edx, dword [esi + 0x10]
inc edx
cmp edx, dword [esi + 4]
je 0x418a14
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.004177e0
xor ecx, ecx
add esp, 0x1c
test eax, eax
sete cl
mov dword [esi + 0x18], ecx
mov ecx, dword [edi]
cmp dword [ecx + 0x10], ebx
jl 0x4189c7
mov ebx, dword [ebp - 0x220]
sub esp, 0x10
lea eax, [ebp - 0x110]
lea edx, [ebp - 0x2a8]
push 0x104
push eax
push 0
call fcn.004177e0
mov ecx, dword [edi]
lea eax, [ebp - 0x250]
add esp, 0x1c
lea edx, [ebp - 0x224]
push eax
lea eax, [ebp - 0x24c]
push eax
call fcn.00417ef0
add esp, 8
test eax, eax
je 0x418a78
mov eax, 0x700
pop edi
pop esi
pop ebx
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.004192ef
mov esp, ebp
pop ebp
ret 8
mov eax, dword [edi]
mov ecx, dword [eax]
cmp byte [ecx], 0
je 0x418aa4
cmp byte [ecx + 1], 0
je 0x418b56
mov eax, dword [ecx + 0xc]
add eax, dword [ebp - 0x24c]
push 0
push 0
push eax
push dword [ecx + 4]
call dword [sym.imp.KERNEL32.dll_SetFilePointer]
jmp 0x418aad
mov eax, dword [ebp - 0x24c]
mov dword [ecx + 0x1c], eax
push dword [ebp - 0x250]
call fcn.00419340
mov ecx, dword [edi]
add esp, 4
mov dword [ebp - 0x24c], eax
mov esi, dword [ecx]
cmp byte [esi], 0
je 0x418af3
push 0
lea ecx, [ebp - 0x220]
push ecx
push dword [ebp - 0x250]
push eax
push dword [esi + 4]
call dword [sym.imp.KERNEL32.dll_ReadFile]
test eax, eax
jne 0x418aeb
mov byte [esi + 8], 1
mov eax, dword [ebp - 0x220]
jmp 0x418b40
mov edx, dword [esi + 0x1c]
mov ecx, dword [esi + 0x18]
mov eax, dword [ebp - 0x250]
add eax, edx
mov dword [ebp - 0x21c], ecx
sub dword [ebp - 0x21c], edx
cmp eax, ecx
mov eax, dword [ebp - 0x21c]
cmovbe eax, dword [ebp - 0x250]
push eax
mov dword [ebp - 0x21c], eax
mov eax, dword [esi + 0x14]
add eax, edx
push eax
push dword [ebp - 0x24c]
call fcn.0041c3b0
mov eax, dword [ebp - 0x21c]
add esp, 0xc
add dword [esi + 0x1c], eax
cmp eax, dword [ebp - 0x250]
je 0x418b6e
push dword [ebp - 0x24c]
call fcn.004192fd
add esp, 4
mov eax, 0x800
pop edi
pop esi
pop ebx
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.004192ef
mov esp, ebp
pop ebp
ret 8
mov eax, dword [edi]
mov eax, dword [eax + 0x10]
mov dword [ebx], eax
lea eax, [ebp - 0x110]
push eax
lea eax, [ebp - 0x218]
push 0x104
push eax
call fcn.00421bd2
add esp, 0xc
lea esi, [ebp - 0x218]
mov al, byte [esi]
test al, al
je 0x418bb5
cmp byte [esi + 1], 0x3a
jne 0x418ba7
add esi, 2
jmp 0x418b96
cmp al, 0x5c
jne 0x418bae
inc esi
jmp 0x418b96
cmp al, 0x2f
jne 0x418bb5
inc esi
jmp 0x418b96
push 0x44aeb8
push esi
call fcn.00423ee6
add esp, 8
test eax, eax
je 0x418bcc
lea esi, [eax + 4]
jmp 0x418b96
push str..._
push esi
call fcn.00423ee6
add esp, 8
test eax, eax
je 0x418be3
lea esi, [eax + 4]
jmp 0x418b96
push 0x44aec8
push esi
call fcn.00423ee6
add esp, 8
test eax, eax
je 0x418bfa
lea esi, [eax + 4]
jmp 0x418b96
push str._.._
push esi
call fcn.00423ee6
add esp, 8
test eax, eax
je 0x418c11
lea esi, [eax + 4]
jmp 0x418b96
push esi
lea eax, [ebx + 4]
push 0x104
push eax
call fcn.00421bd2
mov edx, dword [ebp - 0x274]
add esp, 0xc
mov eax, edx
mov byte [ebp - 0x254], 0
shr eax, 0x1e
mov ecx, edx
and eax, 0xffffff01
shr ecx, 0x17
mov dword [ebp - 0x21c], eax
not cl
mov eax, dword [ebp - 0x2a8]
and cl, 1
shr eax, 8
mov byte [ebp - 0x220], 0
mov byte [ebp - 0x224], 1
test eax, eax
je 0x418c74
cmp eax, 7
je 0x418c74
cmp eax, 0xb
je 0x418c74
cmp eax, 0xe
jne 0x418cb0
mov eax, edx
mov cl, dl
shr eax, 1
and cl, 1
and eax, 0xffffff01
mov dword [ebp - 0x254], eax
mov eax, edx
shr eax, 2
and eax, 0xffffff01
mov dword [ebp - 0x220], eax
mov eax, edx
shr eax, 4
and al, 1
shr edx, 5
mov byte [ebp - 0x21c], al
and edx, 0xffffff01
jmp 0x418cb6
mov edx, dword [ebp - 0x224]
xor eax, eax
mov dword [ebx + 0x108], 0
cmp byte [ebp - 0x21c], al
je 0x418cd9
mov dword [ebx + 0x108], 0x10
mov eax, 0x10
test dl, dl
je 0x418ce6
or eax, 0x20
mov dword [ebx + 0x108], eax
cmp byte [ebp - 0x254], 0
je 0x418cf8
or eax, 2
mov dword [ebx + 0x108], eax
test cl, cl
je 0x418d05
or eax, 1
mov dword [ebx + 0x108], eax
cmp byte [ebp - 0x220], 0
je 0x418d17
or eax, 4
mov dword [ebx + 0x108], eax
mov edx, dword [ebp - 0x298]
mov esi, 0x7bc
mov eax, dword [ebp - 0x290]
mov ecx, edx
mov dword [ebx + 0x124], eax
mov eax, dword [ebp - 0x28c]
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 - 0x250], 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 0x418fba
mov byte [ebp - 0x21a], 0
nop word [eax + eax]
movzx eax, byte [esi + ecx]
mov byte [ebp - 0x21c], al
movzx eax, byte [esi + ecx + 1]
mov ecx, 0x44aed8
mov byte [ebp - 0x21b], al
lea eax, [ebp - 0x21c]
mov dl, byte [eax]
cmp dl, byte [ecx]
jne 0x418e70
test dl, dl
je 0x418e6c
mov dl, byte [eax + 1]
cmp dl, byte [ecx + 1]
jne 0x418e70
add eax, 2
add ecx, 2
test dl, dl
jne 0x418e50
xor eax, eax
jmp 0x418e75
sbb eax, eax
or eax, 1
test eax, eax
je 0x418e99
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 - 0x250]
jb 0x418e30
jmp 0x418fba
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 - 0x220], ecx
mov dword [ebp - 0x224], edx
test al, 1
je 0x418f18
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 0x418f65
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 - 0x220], 0
je 0x418fb4
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.004192fd
mov eax, dword [ebp - 0x258]
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.004192ef
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.004192ef
mov esp, ebp
pop ebp
ret 8