Function at 0x414358
Capabilities:
Clear file content

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x28
push ebx
mov ebx, dword [ecx + 8]
push esi
xor esi, esi
push edi
mov dword [ebp - 8], edx
mov dword [ebp - 0x20], ecx
test ebx, ebx
je 0x414391
mov eax, dword [ecx]
mov edi, dword [eax + 8]
add edi, dword [eax]
mov edx, dword [eax + 0xc]
adc edx, dword [eax + 4]
cmp dword [ebp + 0xc], edx
jb 0x4143c4
ja 0x414389
cmp dword [ebp + 8], edi
jb 0x4143c4
inc esi
add eax, 0x24
cmp esi, ebx
jne 0x414372
xor esi, esi
mov eax, dword [esi]
xor ebx, ebx
sub dword [ebp + 8], eax
mov eax, dword [esi + 4]
mov dword [ebp - 0x14], ebx
sbb dword [ebp + 0xc], eax
mov edi, dword [esi + 8]
sub edi, dword [ebp + 8]
mov eax, dword [esi + 0xc]
sbb eax, dword [ebp + 0xc]
xor edx, edx
cmp edx, eax
ja 0x4143cb
jb 0x4143bc
cmp dword [ebp + 0x10], edi
jae 0x4143cb
mov edi, dword [ebp + 0x10]
mov dword [ebp - 0x18], edx
jmp 0x4143ce
imul esi, esi, 0x24
add esi, dword [ecx]
jmp 0x414393
mov dword [ebp - 0x18], eax
test edi, edi
jne 0x4143e2
cmp byte [ebp + 0x14], 1
je 0x4143e2
cmp byte [ebp + 0x14], 8
jne 0x41470f
test byte [esi + 0x1d], 4
je 0x4144a8
mov eax, dword [esi]
add dword [ebp + 8], eax
mov eax, dword [esi + 4]
adc dword [ebp + 0xc], eax
add ecx, 0x28
cmp byte [ebp + 0x14], 0
mov dword [ebp - 0x10], ecx
jne 0x41443b
push dword [ebp + 0x1c]
mov eax, dword [ebp - 8]
push dword [ebp + 0xc]
add ebx, eax
push dword [ebp + 8]
push edi
push ebx
call fcn.004135b1
mov dword [ebp - 4], eax
test eax, eax
jne 0x414762
cmp dword [ebp + 0x18], eax
je 0x4146fd
mov ecx, dword [ebp + 0x18]
mov eax, dword [ecx]
push edi
push ebx
call dword [eax + 4]
jmp 0x4146fd
cmp byte [ebp + 0x14], 1
jne 0x414483
cmp dword [ebp + 0x18], 0
je 0x414456
mov edx, dword [ebp - 8]
mov ecx, dword [ebp + 0x18]
mov eax, dword [ecx]
push edi
add edx, ebx
push edx
call dword [eax + 8]
push dword [ebp + 0xc]
mov eax, dword [ebp - 8]
push dword [ebp + 8]
mov ecx, dword [ebp - 0x10]
add ebx, eax
push edi
push ebx
call fcn.00413477
cmp dword [ebp + 0x18], 0
mov dword [ebp - 4], eax
je 0x41447e
mov ecx, dword [ebp + 0x18]
mov eax, dword [ecx]
push edi
push ebx
call dword [eax + 4]
mov eax, dword [ebp - 4]
jmp 0x41449b
push dword [ebp + 0x18]
push dword [ebp + 0xc]
push dword [ebp + 8]
push edi
push dword [ebp - 8]
push dword [ebp - 0x10]
call fcn.004142db
mov dword [ebp - 4], eax
test eax, eax
jne 0x414806
jmp 0x4146fd
xor eax, eax
cmp byte [ebp + 0x14], 8
push eax
push eax
push eax
lea eax, [ebp - 4]
push eax
push ecx
mov eax, esi
je 0x414796
push dword [ebp + 0x14]
call fcn.00412bfc
mov dword [ebp - 0x18], eax
cmp eax, 0xffffffff
je 0x414791
test byte [esi + 0x1d], 1
je 0x4144e0
mov ecx, dword [esi + 0x10]
mov dword [ebp - 0x10], ecx
jmp 0x4144e7
mov dword [ebp - 0x10], 1
cmp byte [ebp + 0x14], 0
jne 0x41455c
push dword [ebp - 0x10]
mov ecx, dword [ebp - 8]
push dword [ebp + 0xc]
add ebx, ecx
push dword [ebp + 8]
mov edx, ebx
push edi
mov ecx, eax
call fcn.00413ebe
mov dword [ebp - 4], eax
test eax, eax
je 0x414533
movzx eax, byte [esi + 0x1d]
and eax, 1
push eax
push edi
push dword [ebp + 0xc]
push dword [ebp + 8]
push dword [esi + 0x10]
push 0x28a
push dword [ebp - 4]
push str.IO_Error:_d_line:_d_align:_d_pos:_Ld_count:_d_actual:_d
call fcn.0045c3cd
add esp, 0x20
mov ecx, dword [ebp + 0x18]
test ecx, ecx
je 0x414541
mov eax, dword [ecx]
push edi
push ebx
call dword [eax + 4]
cmp dword [ebp - 4], 0
jne 0x4147a9
add dword [0x4825d0], edi
inc dword [0x4825d4]
jmp 0x4146fd
cmp byte [ebp + 0x14], 1
jne 0x4146ce
cmp dword [ebp + 0x18], 0
je 0x41457b
mov edx, dword [ebp - 8]
mov ecx, dword [ebp + 0x18]
mov eax, dword [ecx]
push edi
add ebx, edx
push ebx
call dword [eax + 8]
xor ecx, ecx
mov eax, edi
add eax, dword [ebp + 8]
adc ecx, dword [ebp + 0xc]
mov dword [ebp - 0x28], eax
mov dword [ebp - 0x24], ecx
cmp eax, dword [esi + 8]
jne 0x41465a
cmp ecx, dword [esi + 0xc]
jne 0x41465a
push 0
push dword [ebp - 0x10]
push ecx
push eax
call fcn.00401510
or eax, edx
je 0x41465a
mov ecx, dword [ebp - 0x20]
push esi
call fcn.004169fe
push dword [ebp - 0x10]
mov ecx, dword [ebp - 8]
push dword [ebp + 0xc]
mov dword [ebp - 0xc], eax
mov eax, dword [ebp - 0x14]
push dword [ebp + 8]
lea ebx, [eax + ecx]
mov ecx, dword [ebp - 0x18]
push edi
mov edx, ebx
call fcn.00413fdc
mov dword [ebp - 4], eax
test eax, eax
jne 0x41471f
mov ecx, esi
call fcn.00416977
mov ecx, dword [ebp - 0xc]
push 6
pop edx
call fcn.004355cc
mov dword [esi + 0x20], eax
cmp eax, 0xffffffff
je 0x4147b2
push dword [ebp - 0x24]
mov ecx, eax
push dword [ebp - 0x28]
call fcn.004356c8
mov dword [ebp - 4], eax
test eax, eax
jne 0x41474e
push dword [esi + 0x20]
call dword [sym.imp.KERNEL32.DLL_SetEndOfFile]
test eax, eax
je 0x4147b2
mov ecx, esi
call fcn.00416977
mov ecx, dword [ebp - 0xc]
xor edx, edx
inc edx
call fcn.004355cc
mov dword [esi + 0x20], eax
cmp eax, 0xffffffff
je 0x4147b2
cmp dword [ebp - 0xc], 0
je 0x4146a5
mov ecx, dword [ebp - 0xc]
call fcn.0043492c
jmp 0x4146a5
push dword [ebp - 0x10]
mov eax, dword [ebp - 0x14]
push dword [ebp + 0xc]
mov ecx, dword [ebp - 8]
push dword [ebp + 8]
lea ebx, [eax + ecx]
mov ecx, dword [ebp - 0x18]
push edi
mov edx, ebx
call fcn.00413fdc
mov dword [ebp - 4], eax
test eax, eax
je 0x4146a5
movzx eax, byte [esi + 0x1d]
and eax, 1
push eax
push edi
push dword [ebp + 0xc]
push dword [ebp + 8]
push dword [esi + 0x10]
push 0x2ad
push dword [ebp - 4]
push str.IO_Error:_d_line:_d_align:_d_pos:_Ld_count:_d_actual:_d
call fcn.0045c3cd
add esp, 0x20
cmp dword [ebp + 0x18], 0
je 0x4146b5
mov ecx, dword [ebp + 0x18]
mov eax, dword [ecx]
push edi
push ebx
call dword [eax + 4]
mov eax, dword [ebp - 4]
test eax, eax
jne 0x414806
add dword [0x4825ec], edi
inc dword [0x4825f0]
jmp 0x4146fd
push dword [ebp + 0x18]
push dword [ebp - 0x10]
push dword [ebp + 0xc]
push dword [ebp + 8]
push edi
push dword [ebp - 8]
push eax
call fcn.004141a9
mov ebx, eax
mov dword [ebp - 4], ebx
test ebx, ebx
jne 0x4147ca
add dword [0x482640], edi
inc dword [0x482644]
sub dword [ebp + 0x10], edi
je 0x414804
add dword [ebp - 0x14], edi
mov ebx, dword [ebp - 0x14]
mov ecx, dword [ebp - 0x20]
and dword [ebp + 8], 0
and dword [ebp + 0xc], 0
add esi, 0x24
jmp 0x4143a3
push 0xffffffffffffff9d
push edi
push dword [ebp + 0xc]
push dword [ebp + 8]
push dword [ebp - 0x10]
push 0x2a0
push dword [ebp - 4]
push str.IO_Error:_d_line:_d_align:_d_pos:_Ld_count:_d_actual:_d
call fcn.0045c3cd
mov ecx, dword [ebp - 0xc]
add esp, 0x20
test ecx, ecx
je 0x414791
call fcn.0043492c
jmp 0x414791
push 0xffffffffffffff9d
push 0xffffffffffffff9d
push dword [ebp - 0x24]
push dword [ebp - 0x28]
push dword [ebp - 0x10]
push 0x2a5
jmp 0x414730
cmp eax, 0x490
jne 0x414791
movzx eax, byte [esi + 0x1d]
shr eax, 2
and eax, 1
shl eax, 4
push eax
push dword [ebp + 0x10]
push edi
push dword [ebp + 0xc]
push dword [ebp + 8]
push dword [esi + 0x14]
push str.ReadFile_error:__s:_Ld:_d:_d:_d
call fcn.0045c3cd
add esp, 0x1c
mov eax, dword [ebp - 4]
jmp 0x414806
push 1
call fcn.00412bfc
inc eax
neg eax
sbb eax, eax
not eax
and eax, dword [ebp - 4]
jmp 0x414806
cmp dword [ebp - 4], 0x490
jmp 0x414767
call dword [sym.imp.KERNEL32.DLL_GetLastError]
mov ecx, dword [ebp - 0xc]
mov esi, eax
test ecx, ecx
je 0x4147c6
call fcn.0043492c
mov eax, esi
jmp 0x414806
cmp ebx, 0x490
jne 0x414800
movzx eax, byte [esi + 0x1d]
movzx ecx, byte [ebp + 0x14]
shr eax, 2
and eax, 1
shl eax, 4
add eax, ecx
push eax
push dword [ebp + 0x10]
push edi
push dword [ebp + 0xc]
push dword [ebp + 8]
push dword [esi + 0x14]
push str.ReadFile_error:__s:_Ld:_d:_d:_d
call fcn.0045c3cd
add esp, 0x1c
mov eax, ebx
jmp 0x414806
xor eax, eax
pop edi
pop esi
pop ebx
leave
ret 0x18