Function at 0x485a80
Capabilities:
Resolve function by parsing pe exports

Disassembly:
push 0xffffffffffffffff
push 0x4a3420
mov eax, dword fs:[0]
push eax
sub esp, 0x50
mov eax, dword [0x4c40e4]
xor eax, esp
mov dword [esp + 0x4c], eax
push ebx
push ebp
push esi
push edi
mov eax, dword [0x4c40e4]
xor eax, esp
push eax
lea eax, [esp + 0x64]
mov dword fs:[0], eax
mov esi, ecx
cmp byte [esp + 0x80], 0
mov eax, dword [esp + 0x74]
mov dword [esp + 0x14], eax
jne 0x485b10
push 0x17
push str.FilterWithBufferedInput
lea ecx, [esp + 0x28]
mov dword [esp + 0x3c], 0xf
mov dword [esp + 0x38], 0
mov byte [esp + 0x28], 0
call fcn.00414820
lea eax, [esp + 0x20]
mov dword [esp + 0x6c], 0
push eax
lea ecx, [esp + 0x3c]
call fcn.00484380
push 0x4bf054
lea eax, [esp + 0x3c]
push eax
call sub.MSVCR120.dll__CxxThrowException
mov ecx, dword [esp + 0x78]
test ecx, ecx
je 0x485d31
cmp byte [esi + 0x28], 0
mov edx, dword [esi + 0x44]
lea ebp, [edx + ecx]
jne 0x485b8d
mov ecx, dword [esi + 0x1c]
cmp ebp, ecx
jb 0x485b83
sub ecx, edx
push ecx
mov dword [esp + 0x1c], ecx
lea ecx, [esi + 0x2c]
push eax
call fcn.00485a00
mov edi, dword [esi]
lea eax, [esi + 0x1c]
push eax
lea ecx, [esi + 0x2c]
call fcn.00484fc0
push eax
mov ecx, esi
call dword [edi + 0xd8]
mov edi, dword [esi + 0x20]
lea ecx, [esi + 0x2c]
mov eax, dword [esi + 0x24]
xor edx, edx
lea eax, [eax + edi*2]
add eax, 0xfffffffe
div edi
push eax
push edi
call fcn.00485e60
mov eax, dword [esp + 0x14]
add eax, dword [esp + 0x18]
sub ebp, dword [esi + 0x1c]
mov dword [esp + 0x14], eax
mov byte [esi + 0x28], 1
cmp byte [esi + 0x28], 0
je 0x485d20
mov ecx, dword [esi + 0x20]
lea edi, [esi + 0x20]
cmp ecx, 1
jne 0x485c30
cmp ebp, dword [esi + 0x24]
jbe 0x485c04
cmp dword [esi + 0x44], 0
jbe 0x485c04
mov eax, dword [esi + 0x38]
lea edx, [esi + 0x44]
sub eax, dword [esi + 0x48]
lea ecx, [esp + 0x18]
add eax, dword [esi + 0x34]
mov edi, ebp
sub edi, dword [esi + 0x24]
cmp dword [edx], eax
mov ebx, dword [esi + 0x48]
cmovb ecx, edx
mov dword [esp + 0x18], eax
lea eax, [esp + 0x1c]
mov dword [esp + 0x1c], edi
cmp dword [ecx], edi
cmovb eax, ecx
mov edi, dword [eax]
sub dword [edx], edi
lea ecx, [ebx + edi]
mov dword [esi + 0x48], ecx
je 0x485beb
mov eax, dword [esi + 0x38]
add eax, dword [esi + 0x34]
cmp ecx, eax
jne 0x485bf1
mov eax, dword [esi + 0x38]
mov dword [esi + 0x48], eax
mov eax, dword [esi]
mov ecx, esi
push edi
push ebx
call dword [eax + 0xe4]
sub ebp, edi
cmp ebp, dword [esi + 0x24]
ja 0x485ba1
mov eax, dword [esi + 0x24]
mov ebx, dword [esp + 0x14]
cmp ebp, eax
jbe 0x485d24
push dword [esp + 0x84]
mov edi, ebp
mov ecx, esi
sub edi, eax
push edi
push ebx
call fcn.00485730
add ebx, edi
sub ebp, edi
jmp 0x485d24
mov eax, dword [esi + 0x24]
add eax, ecx
cmp ebp, eax
jb 0x485c98
lea esp, [esp]
cmp dword [esi + 0x44], ecx
jb 0x485c98
mov edx, dword [esi + 0x44]
mov edi, dword [esi + 0x3c]
cmp edx, edi
jb 0x485c78
mov ebx, dword [esi + 0x48]
lea ecx, [edi + ebx]
mov dword [esi + 0x48], ecx
mov eax, dword [esi + 0x38]
mov dword [esp + 0x18], eax
mov eax, dword [esi + 0x34]
add eax, dword [esp + 0x18]
cmp ecx, eax
jne 0x485c71
mov eax, dword [esp + 0x18]
mov dword [esi + 0x48], eax
sub edx, edi
mov dword [esi + 0x44], edx
jmp 0x485c7a
xor ebx, ebx
push dword [esi + 0x20]
mov eax, dword [esi]
lea edi, [esi + 0x20]
push ebx
mov ecx, esi
call dword [eax + 0xe4]
mov ecx, dword [edi]
sub ebp, ecx
mov eax, dword [esi + 0x24]
add eax, ecx
cmp ebp, eax
jae 0x485c40
mov eax, dword [esi + 0x24]
mov ecx, dword [edi]
add eax, ecx
cmp ebp, eax
jb 0x485ce4
mov eax, dword [esi + 0x44]
test eax, eax
je 0x485ce4
mov edi, dword [esp + 0x14]
sub ecx, eax
push ecx
mov dword [esp + 0x20], ecx
lea ecx, [esi + 0x2c]
push edi
call fcn.00485a00
add edi, dword [esp + 0x1c]
lea ecx, [esi + 0x2c]
push dword [esi + 0x20]
mov dword [esp + 0x18], edi
mov edi, dword [esi]
call fcn.00484f80
push eax
mov ecx, esi
call dword [edi + 0xe4]
mov ecx, dword [esi + 0x20]
lea edi, [esi + 0x20]
sub ebp, ecx
mov edx, dword [esi + 0x24]
lea eax, [edx + ecx]
cmp ebp, eax
jb 0x485d20
mov eax, ebp
sub eax, edx
mov dword [esp + 0x1c], eax
lea eax, [esp + 0x1c]
push edi
push eax
call fcn.004842b0
mov ebx, dword [esp + 0x1c]
add esp, 8
mov edi, eax
mov ecx, esi
push dword [esp + 0x84]
push edi
push ebx
call fcn.00485730
add ebx, edi
sub ebp, edi
jmp 0x485d24
mov ebx, dword [esp + 0x14]
sub ebp, dword [esi + 0x44]
lea ecx, [esi + 0x2c]
push ebp
push ebx
call fcn.00485a00
cmp dword [esp + 0x7c], 0
je 0x485e07
cmp byte [esi + 0x28], 0
jne 0x485d54
cmp dword [esi + 0x1c], 0
jne 0x485d54
mov eax, dword [esi]
mov ecx, esi
push 0
call dword [eax + 0xd8]
mov ebx, dword [esi + 0x44]
mov dword [esp + 0x24], 0xffffffff
mov dword [esp + 0x28], ebx
test ebx, ebx
jne 0x485d6b
xor ebp, ebp
jmp 0x485d76
push ebx
call fcn.004878a0
add esp, 4
mov ebp, eax
mov dword [esp + 0x2c], ebp
push ebp
lea ecx, [esi + 0x2c]
mov dword [esp + 0x70], 3
call fcn.00484ee0
mov eax, dword [esi]
mov ecx, esi
push ebx
push ebp
call dword [eax + 0xe8]
push dword [esi + 0x1c]
lea ecx, [esi + 0x2c]
mov byte [esi + 0x28], 0
push 1
call fcn.00485e60
mov eax, dword [esi]
mov ecx, esi
mov edi, dword [esp + 0x7c]
dec edi
call dword [eax + 0xa8]
push dword [esp + 0x80]
mov ecx, eax
push edi
mov edx, dword [eax]
push 0
push 0
push 0x4c4020
call dword [edx + 0x8c]
xor ecx, ecx
mov dword [esp + 0x6c], 0xffffffff
test eax, eax
setne cl
mov dword [esi + 0x18], ecx
test ebp, ebp
je 0x485e07
lea eax, [esp + 0x28]
cmp ebx, 0xffffffff
lea ecx, [esp + 0x24]
mov edi, ebp
cmovbe ecx, eax
xor al, al
push ebp
mov ecx, dword [ecx]
rep stosb byte es:[edi], al
call sub.MSVCR120.dll_free
add esp, 4
xor eax, eax
mov ecx, dword [esp + 0x64]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebp
pop ebx
mov ecx, dword [esp + 0x4c]
xor ecx, esp
call fcn.00499716
add esp, 0x5c
ret 0x14