Function at 0x434d40
Capabilities:
Clear file content

Disassembly:
push ebp
mov ebp, esp
add esp, 0xffffffd0
push ebx
xor ebx, ebx
mov dword [ebp - 0x30], ebx
mov dword [ebp - 0x24], ebx
mov dword [ebp - 0xc], ecx
mov dword [ebp - 8], edx
mov dword [ebp - 4], eax
xor eax, eax
push ebp
push 0x434fdc
push dword fs:[eax]
mov dword fs:[eax], esp
mov ecx, 1
xor edx, edx
mov eax, dword [ebp - 8]
call fcn.00415ba4
cdq
mov dword [ebp - 0x18], eax
mov dword [ebp - 0x14], edx
mov eax, dword [ebp - 0x18]
mov edx, dword [ebp - 0x14]
mov ecx, dword [ebp - 4]
sub eax, dword [ecx + 0x20]
sbb edx, dword [ecx + 0x24]
mov dword [ebp - 0x20], eax
mov dword [ebp - 0x1c], edx
mov byte [ebp - 0x29], 0
cmp dword [ebp - 0x1c], 0
jne 0x434da3
cmp dword [ebp - 0x20], 0
ja 0x434df9
jmp 0x434da5
jg 0x434df9
mov eax, dword [ebp - 0x18]
mov edx, dword [ebp - 0x14]
sub eax, 0x8000
sbb edx, 0
mov ecx, dword [ebp - 4]
mov dword [ecx + 0x20], eax
mov dword [ecx + 0x24], edx
mov eax, dword [ebp - 4]
cmp dword [eax + 0x24], 0
jne 0x434dcd
cmp dword [eax + 0x20], 0
jae 0x434de0
jmp 0x434dcf
jge 0x434de0
mov eax, dword [ebp - 4]
mov dword [eax + 0x20], 0
mov dword [eax + 0x24], 0
mov eax, dword [ebp - 0x18]
mov edx, dword [ebp - 0x14]
mov ecx, dword [ebp - 4]
sub eax, dword [ecx + 0x20]
sbb edx, dword [ecx + 0x24]
mov dword [ebp - 0x20], eax
mov dword [ebp - 0x1c], edx
mov byte [ebp - 0x29], 1
cmp dword [ebp - 0x1c], 0
jne 0x434e0a
cmp dword [ebp - 0x20], 0x8000
jbe 0x434e1a
jmp 0x434e0c
jle 0x434e1a
mov dword [ebp - 0x20], 0x8000
mov dword [ebp - 0x1c], 0
lea eax, [ebp - 0x24]
call fcn.00406c68
cmp dword [ebp - 0x1c], 0
jne 0x434e34
cmp dword [ebp - 0x20], 0
jbe 0x434f2d
jmp 0x434e3a
jle 0x434f2d
mov eax, dword [ebp - 0x20]
mov edx, eax
lea eax, [ebp - 0x24]
xor ecx, ecx
call fcn.004075ac
mov eax, dword [ebp - 4]
push dword [eax + 0x24]
push dword [eax + 0x20]
xor edx, edx
mov eax, dword [ebp - 8]
call fcn.00415bb0
mov eax, dword [ebp - 0x24]
call fcn.004070f4
push eax
lea eax, [ebp - 0x24]
call fcn.004071b8
mov edx, eax
mov eax, dword [ebp - 8]
pop ecx
call fcn.00415b4c
mov eax, dword [ebp - 0x24]
call fcn.004070f4
mov dword [ebp - 0x28], eax
cmp dword [ebp - 0x28], 0
jle 0x434eae
mov eax, dword [ebp - 0x24]
mov edx, dword [ebp - 0x28]
cmp byte [eax + edx - 1], 0xa
jne 0x434ea5
lea eax, [ebp - 0x24]
xor ecx, ecx
mov edx, dword [ebp - 0x28]
call fcn.004075ac
jmp 0x434eae
dec dword [ebp - 0x28]
cmp dword [ebp - 0x28], 0
jg 0x434e89
cmp byte [ebp - 0x29], 0
je 0x434ef1
mov dword [ebp - 0x28], 1
jmp 0x434ee4
mov eax, dword [ebp - 0x24]
mov edx, dword [ebp - 0x28]
cmp byte [eax + edx - 1], 0xa
jne 0x434ee1
lea eax, [ebp - 0x24]
push eax
mov edx, dword [ebp - 0x28]
inc edx
mov ecx, 0x7fffffff
mov eax, dword [ebp - 0x24]
call fcn.00407500
jmp 0x434ef1
inc dword [ebp - 0x28]
mov eax, dword [ebp - 0x24]
call fcn.004070f4
cmp eax, dword [ebp - 0x28]
jge 0x434ebd
cmp dword [ebp - 0xc], 0
je 0x434f2d
lea eax, [ebp - 0x30]
push eax
mov eax, dword [ebp - 0xc]
call fcn.004070f4
mov ecx, eax
mov edx, 1
mov eax, dword [ebp - 0x24]
call fcn.00407500
mov eax, dword [ebp - 0x30]
mov edx, dword [ebp - 0xc]
call fcn.00407468
je 0x434f2d
lea eax, [ebp - 0x24]
mov ecx, dword [ebp - 0x24]
mov edx, dword [ebp - 0xc]
call fcn.0040731c
xor ecx, ecx
xor edx, edx
mov eax, dword [ebp - 8]
call fcn.00415ba4
mov eax, dword [ebp - 0x24]
call fcn.004070f4
test eax, eax
jle 0x434f61
mov eax, dword [ebp - 0x24]
call fcn.004070f4
push eax
lea eax, [ebp - 0x24]
call fcn.004071b8
mov edx, eax
mov eax, dword [ebp - 8]
pop ecx
call fcn.00415b78
mov eax, dword [ebp - 8]
push eax
call sub.KERNEL32.DLL_SetEndOfFile
test eax, eax
je 0x434f8b
mov ecx, 1
xor edx, edx
mov eax, dword [ebp - 8]
call fcn.00415ba4
mov ebx, eax
mov eax, dword [ebp - 0x24]
call fcn.004070f4
cmp ebx, eax
jle 0x434f8f
xor eax, eax
jmp 0x434f91
mov al, 1
mov byte [ebp - 0xd], al
mov eax, dword [ebp - 4]
mov dword [eax + 0x20], 0xffffffff
mov dword [eax + 0x24], 0xffffffff
mov eax, dword [ebp - 8]
call fcn.00415c00
cmp byte [ebp - 0xd], 0
jne 0x434fbe
mov eax, dword [ebp - 4]
mov eax, dword [eax + 0x10]
call fcn.00426f60
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x434fe3
lea eax, [ebp - 0x30]
call fcn.00406c68
lea eax, [ebp - 0x24]
call fcn.00406c68
ret