Function at 0x4aa1d0
Capabilities:
Clear file content

Disassembly:
push ebp
mov ebp, esp
and esp, 0xfffffff8
sub esp, 0x1c
push ebx
mov ebx, dword [ebp + 0x1c]
push esi
push edi
mov edi, dword [ebp + 0xc]
test ebx, ebx
je 0x4ab002
mov eax, dword [ebp + 0x18]
dec ebx
mov dword [ebp + 0x1c], ebx
mov esi, dword [eax]
mov eax, dword [esi + 8]
cmp eax, 5
ja case.0x4aa1fb.1
jmp dword [eax*4 + 0x4ab010]
mov ecx, dword [esi]
push 0
push 1
call fcn.00401640
mov esi, eax
mov dword [esp + 0x14], eax
jmp 0x4aa222
mov esi, dword [esi]
jmp 0x4aa21e
mov esi, 0x4c3c29
mov dword [esp + 0x14], esi
push 4
push str.Read
push esi
call dword [sym.imp.api_ms_win_crt_multibyte_l1_1_0.dll__mbsnbicmp]
add esp, 0xc
test eax, eax
jne 0x4aa264
add esi, 4
cmp byte [esi], al
jne 0x4aa246
lea esi, [eax + 1]
jmp 0x4aa3b2
push str.Line
push esi
call dword [sym.imp.api_ms_win_crt_multibyte_l1_1_0.dll__mbsicmp]
add esp, 8
neg eax
sbb esi, esi
and esi, 2
add esi, 3
jmp 0x4aa3b2
push 5
push str.Write
push esi
call dword [sym.imp.api_ms_win_crt_multibyte_l1_1_0.dll__mbsnbicmp]
add esp, 0xc
test eax, eax
jne 0x4aa2a5
add esi, 5
cmp byte [esi], al
jne 0x4aa288
lea esi, [eax + 2]
jmp 0x4aa3b2
push str.Line
push esi
call dword [sym.imp.api_ms_win_crt_multibyte_l1_1_0.dll__mbsicmp]
add esp, 8
neg eax
sbb esi, esi
neg esi
add esi, 4
jmp 0x4aa3b2
push str.RawRead
push esi
call dword [sym.imp.api_ms_win_crt_multibyte_l1_1_0.dll__mbsicmp]
add esp, 8
test eax, eax
jne 0x4aa2c0
lea esi, [eax + 6]
jmp 0x4aa3b2
push str.RawWrite
push esi
call dword [sym.imp.api_ms_win_crt_multibyte_l1_1_0.dll__mbsicmp]
add esp, 8
test eax, eax
jne 0x4aa2db
lea esi, [eax + 6]
jmp 0x4aa3b2
push 0x4ca218
push esi
call dword [sym.imp.api_ms_win_crt_multibyte_l1_1_0.dll__mbsicmp]
add esp, 8
test eax, eax
je 0x4aa3ad
push str.Length
push esi
call dword [sym.imp.api_ms_win_crt_multibyte_l1_1_0.dll__mbsicmp]
add esp, 8
test eax, eax
jne 0x4aa30d
lea esi, [eax + 9]
jmp 0x4aa3b2
push str.AtEOF
push esi
call dword [sym.imp.api_ms_win_crt_multibyte_l1_1_0.dll__mbsicmp]
add esp, 8
test eax, eax
jne 0x4aa328
lea esi, [eax + 0xa]
jmp 0x4aa3b2
push str.__Handle
push esi
call dword [sym.imp.api_ms_win_crt_multibyte_l1_1_0.dll__mbsicmp]
add esp, 8
test eax, eax
jne 0x4aa340
lea esi, [eax + 0xb]
jmp 0x4aa3b2
push str.Encoding
push esi
call dword [sym.imp.api_ms_win_crt_multibyte_l1_1_0.dll__mbsicmp]
add esp, 8
test eax, eax
jne 0x4aa358
lea esi, [eax + 0xc]
jmp 0x4aa3b2
push str.Close
push esi
call dword [sym.imp.api_ms_win_crt_multibyte_l1_1_0.dll__mbsicmp]
add esp, 8
test eax, eax
jne 0x4aa370
lea esi, [eax + 0xd]
jmp 0x4aa3b2
push str.Position
push esi
call dword [sym.imp.api_ms_win_crt_multibyte_l1_1_0.dll__mbsicmp]
add esp, 8
test eax, eax
je 0x4aa3ad
push str.Seek
push esi
call dword [sym.imp.api_ms_win_crt_multibyte_l1_1_0.dll__mbsicmp]
add esp, 8
test eax, eax
je 0x4aa3ad
push str.Tell
push esi
call dword [sym.imp.api_ms_win_crt_multibyte_l1_1_0.dll__mbsicmp]
add esp, 8
test eax, eax
jne 0x4ab002
mov esi, 8
mov eax, dword [ebp + 0x14]
test al, 2
jne 0x4aa3cd
cmp esi, 7
jb 0x4aa949
and eax, 1
cmp ebx, eax
jne 0x4aa949
lea eax, [esi - 1]
mov dword [edi + 8], 1
cmp eax, 0xc
ja case.0x4aa479.69
jmp dword [eax*4 + 0x4ab028]
mov ecx, dword [esp + 0x14]
mov al, byte [ecx]
cmp al, 0x52
je 0x4aa3f9
cmp al, 0x72
je 0x4aa3f9
xor al, al
jmp 0x4aa3fb
mov al, 1
mov byte [esp + 0x13], al
lea esi, [ecx + 4]
movzx eax, al
xor eax, 1
add esi, eax
xor eax, eax
mov dword [esp + 0x18], eax
movzx eax, byte [esi]
mov dword [esp + 0x14], eax
test eax, 0xffffff80
jne 0x4aa435
push 2
push eax
call dword [sym.imp.api_ms_win_crt_string_l1_1_0.dll__isctype]
add esp, 8
test eax, eax
mov eax, dword [esp + 0x14]
je 0x4aa435
and eax, 0xffffffdf
mov dword [esp + 0x14], eax
cmp al, 0x55
jne 0x4aa43e
inc esi
movzx eax, byte [esi]
mov dword [esp + 0x1c], eax
test eax, 0xffffff80
jne 0x4aa463
push 2
push eax
call dword [sym.imp.api_ms_win_crt_string_l1_1_0.dll__isctype]
add esp, 8
test eax, eax
mov eax, dword [esp + 0x1c]
je 0x4aa463
and eax, 0xffffffdf
movsx eax, al
add eax, 0xffffffbd
cmp eax, 0x10
ja case.0x4aa479.69
movzx eax, byte [eax + 0x4ab078]
jmp dword [eax*4 + 0x4ab05c]
push 0x36
push esi
call dword [sym.imp.api_ms_win_crt_multibyte_l1_1_0.dll__mbschr]
add esp, 8
neg eax
sbb esi, esi
and esi, 4
add esi, 4
xor edx, edx
jmp 0x4aa4ce
mov esi, 2
xor edx, edx
jmp 0x4aa4ce
mov esi, 1
xor edx, edx
jmp 0x4aa4ce
xor edx, edx
jmp 0x4aa4c9
mov edx, 1
mov esi, 8
mov dword [esp + 0x18], edx
jmp 0x4aa4ce
mov edx, 1
mov dword [esp + 0x18], edx
mov esi, 4
cmp byte [esp + 0x13], 0
je 0x4aa5bf
mov ecx, dword [ebp + 8]
lea eax, [esp + 0x20]
push esi
xorps xmm0, xmm0
push eax
lea ecx, [ecx + 8]
movlpd qword [esp + 0x28], xmm0
call fcn.004a9ad0
test eax, eax
je case.0x4aa479.69
cmp dword [esp + 0x18], 0
je 0x4aa546
cmp esi, 4
jne 0x4aa527
movss xmm0, dword [esp + 0x20]
lea eax, [esi - 3]
cvtps2pd xmm0, xmm0
mov dword [edi + 8], 2
movsd qword [edi], xmm0
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 0x18
movsd xmm0, qword [esp + 0x20]
mov eax, 1
movsd qword [edi], xmm0
mov dword [edi + 8], 2
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 0x18
cmp byte [esp + 0x14], 0x55
je 0x4aa5a4
sub esi, 1
je 0x4aa58b
sub esi, 1
je 0x4aa572
sub esi, 2
jne 0x4aa5a4
mov eax, dword [esp + 0x20]
cdq
mov dword [edi], eax
lea eax, [esi + 1]
mov dword [edi + 4], edx
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 0x18
movsx eax, word [esp + 0x20]
cdq
mov dword [edi], eax
mov eax, 1
mov dword [edi + 4], edx
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 0x18
movsx eax, byte [esp + 0x20]
cdq
mov dword [edi], eax
mov eax, 1
mov dword [edi + 4], edx
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 0x18
mov eax, dword [esp + 0x20]
mov edx, dword [esp + 0x24]
mov dword [edi], eax
mov eax, 1
mov dword [edi + 4], edx
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 0x18
cmp ebx, 1
jne case.0x4aa479.69
mov eax, dword [ebp + 0x18]
mov ecx, dword [eax + 4]
test edx, edx
je 0x4aa635
mov eax, dword [ecx + 8]
dec eax
cmp eax, 5
ja case.0x4aa5db.3
jmp dword [eax*4 + 0x4ab08c]
mov edx, dword [ecx + 4]
mov ecx, dword [ecx]
call fcn.004c2040
jmp 0x4aa61e
movsd xmm0, qword [ecx]
jmp 0x4aa61e
mov ecx, dword [ecx]
push 0
call fcn.004290d0
jmp 0x4aa61e
mov eax, dword [ecx + 4]
test eax, eax
je case.0x4aa5db.3
mov edx, dword [eax + 4]
mov ecx, dword [eax]
call fcn.004c2040
jmp 0x4aa61e
xorps xmm0, xmm0
jmp 0x4aa61e
mov ecx, dword [ecx]
call fcn.00428e40
movsd qword [esp + 0x20], xmm0
cmp esi, 4
jne 0x4aa696
cvtsd2ss xmm0, xmm0
movss dword [esp + 0x20], xmm0
jmp 0x4aa696
cmp esi, 8
jne 0x4aa687
cmp byte [esp + 0x14], 0x55
jne 0x4aa687
mov eax, dword [ecx + 8]
cmp eax, 1
je 0x4aa687
cmp eax, 2
je 0x4aa687
cmp eax, 5
ja case.0x4aa653.1
jmp dword [eax*4 + 0x4ab0a4]
mov ecx, dword [ecx]
push 0
push 1
call fcn.00401640
mov ecx, eax
call fcn.0044f230
jmp 0x4aa68e
mov eax, dword [ecx]
mov ecx, eax
call fcn.0044f230
jmp 0x4aa68e
mov eax, 0x4c3c29
mov ecx, eax
call fcn.0044f230
jmp 0x4aa68e
xor edx, edx
call fcn.00476ef0
mov dword [esp + 0x24], edx
mov dword [esp + 0x20], eax
mov ecx, dword [ebp + 8]
lea eax, [esp + 0x20]
push esi
push eax
lea ecx, [ecx + 8]
call fcn.004a9ec0
test eax, eax
jne 0x4aa6be
mov ecx, dword [0x4d70f4]
test byte [ecx + 0xe0], 1
jne case.0x4aa479.69
mov dword [edi], eax
mov eax, 1
mov dword [edi + 4], 0
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 0x18
cmp ebx, 1
jg case.0x4aa479.69
test ebx, ebx
mov ebx, dword [ebp + 8]
je 0x4aa6f9
mov eax, dword [ebp + 0x18]
xor edx, edx
mov ecx, dword [eax + 4]
call fcn.00476ef0
mov esi, eax
jmp 0x4aa799
mov eax, dword [ebx + 8]
add ebx, 8
mov ecx, ebx
mov eax, dword [eax + 0x1c]
call eax
cmp dword [ebx + 0x2c], 0
mov dword [esp + 0x1c], eax
mov dword [esp + 0x18], edx
jne 0x4aa749
cmp dword [ebx + 8], 0
je 0x4aa749
mov eax, dword [ebx]
mov ecx, ebx
mov eax, dword [eax + 0x18]
call eax
mov ecx, dword [esp + 0x18]
mov esi, eax
add esi, dword [ebx + 8]
adc edx, 0
cmp edx, ecx
jl 0x4aa743
jg 0x4aa73d
mov eax, dword [esp + 0x1c]
cmp esi, eax
jbe 0x4aa74d
mov dword [esp + 0x24], edx
jmp 0x4aa753
mov eax, dword [esp + 0x1c]
jmp 0x4aa74d
mov ecx, dword [esp + 0x18]
mov esi, eax
mov dword [esp + 0x24], ecx
mov eax, dword [ebx]
mov ecx, ebx
mov eax, dword [eax + 0x18]
call eax
mov ecx, eax
mov dword [esp + 0x1c], eax
and ecx, edx
mov dword [esp + 0x18], edx
cmp ecx, 0xffffffff
jne 0x4aa775
or eax, ecx
mov dword [esp + 0x24], ecx
jmp 0x4aa794
mov eax, dword [ebx + 0x2c]
test eax, eax
je 0x4aa784
sub eax, dword [ebx + 0x30]
sub eax, dword [ebx + 8]
jmp 0x4aa787
mov eax, dword [ebx + 8]
cdq
add eax, dword [esp + 0x1c]
adc edx, dword [esp + 0x18]
mov dword [esp + 0x24], edx
mov ebx, dword [ebp + 8]
sub esi, eax
cmp esi, 0xffffffff
je case.0x4aa479.69
cmp esi, 0xff
ja 0x4aa7af
mov eax, dword [edi + 4]
jmp 0x4aa7ca
lea eax, [esi + 1]
push eax
call dword [sym.imp.api_ms_win_crt_heap_l1_1_0.dll_malloc]
add esp, 4
mov dword [edi + 0xc], eax
test eax, eax
je case.0x4aa479.69
mov dword [edi + 4], esi
push 0
mov dword [edi], eax
lea ecx, [ebx + 8]
push esi
mov byte [eax + esi], 0
push dword [edi]
call fcn.004a96a0
mov ecx, dword [edi]
mov dword [edi + 8], 0
mov byte [eax + ecx], 0
mov dword [edi + 4], eax
mov eax, 1
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 0x18
test ebx, ebx
jne case.0x4aa479.69
push 0x10001
call dword [sym.imp.api_ms_win_crt_heap_l1_1_0.dll_malloc]
add esp, 4
mov dword [edi + 0xc], eax
test eax, eax
je case.0x4aa479.69
mov ecx, dword [ebp + 8]
push 1
mov dword [edi + 4], 0x10000
mov dword [edi], eax
push 0xffff
mov byte [eax + 0x10000], bl
lea ecx, [ecx + 8]
push dword [edi]
call fcn.004a96a0
mov ecx, dword [edi]
mov dword [edi + 8], ebx
mov byte [eax + ecx], bl
mov dword [edi + 4], eax
lea eax, [ebx + 1]
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 0x18
cmp ebx, 1
jg case.0x4aa479.69
xor ecx, ecx
xor ebx, ebx
mov dword [esp + 0x1c], ecx
cmp dword [ebp + 0x1c], ecx
je 0x4aa8fe
mov ebx, dword [ebp + 0x18]
mov edx, dword [edi + 4]
mov ecx, dword [ebx + 4]
call fcn.00476fb0
mov ebx, dword [ebx + 4]
mov edx, eax
mov dword [esp + 0x1c], edx
cmp dword [ebx + 8], 4
jne 0x4aa8d3
mov ebx, dword [ebx]
mov cl, byte [ebx + 0x17]
test cl, cl
jne 0x4aa89e
mov eax, dword [ebx + 0xc]
mov al, byte [eax + 0x15]
jmp 0x4aa8a1
mov al, byte [ebx + 0x15]
test al, 1
jne 0x4aa8d3
test cl, cl
jne 0x4aa8ac
mov ebx, dword [ebx + 0xc]
cmp byte [ebx + 0x17], 1
jne 0x4aa8ca
test byte [ebx + 0x15], 8
je 0x4aa8c3
mov ecx, ebx
call fcn.004014a0
mov edx, dword [esp + 0x1c]
add ebx, 0xc
mov ebx, dword [ebx]
jmp 0x4aa8e1
mov ebx, 0x4dd524
mov ebx, dword [ebx]
jmp 0x4aa8e1
mov ebx, edx
lea ecx, [ebx + 1]
mov al, byte [ebx]
inc ebx
test al, al
jne 0x4aa8d8
sub ebx, ecx
mov ecx, dword [ebp + 8]
push ebx
add ecx, 8
push edx
mov dword [esp + 0x20], ecx
call fcn.004a9c70
mov ecx, eax
mov eax, dword [esp + 0x18]
mov dword [esp + 0x1c], ecx
jmp 0x4aa904
mov eax, dword [ebp + 8]
add eax, 8
cmp esi, 4
jne 0x4aa926
test ecx, ecx
jne 0x4aa911
test ebx, ebx
jne 0x4aa92e
push 1
push 0x4ce2f8
mov ecx, eax
inc ebx
call fcn.004a9c70
mov ecx, dword [esp + 0x1c]
add ecx, eax
test ecx, ecx
jne 0x4aa940
test ebx, ebx
je 0x4aa940
mov eax, dword [0x4d70f4]
test byte [eax + 0xe0], 1
jne case.0x4aa479.69
mov dword [edi], ecx
mov dword [edi + 4], 0
mov eax, 1
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 0x18
cmp ebx, 2
jne case.0x4aa479.69
mov ecx, dword [esp + 0x14]
mov al, byte [ecx + 3]
cmp al, 0x52
je 0x4aa974
mov byte [esp + 0x13], 0
cmp al, 0x72
jne 0x4aa979
mov byte [esp + 0x13], 1
mov eax, dword [ebp + 0x18]
xor edx, edx
mov ecx, dword [eax + 8]
mov esi, dword [eax + 4]
call fcn.00476ef0
cmp dword [esi + 8], 4
mov ebx, eax
jne 0x4aaa7c
mov ecx, dword [esi]
cmp byte [ecx + 0x17], 0
jne 0x4aa9a2
mov eax, dword [ecx + 0xc]
jmp 0x4aa9a4
mov eax, ecx
cmp byte [eax + 0x17], 2
jne 0x4aa9b1
mov eax, dword [0x4dba90]
jmp 0x4aa9b4
mov eax, dword [eax + 0x10]
cmp ebx, eax
jbe 0x4aa9fc
cmp byte [esp + 0x13], 0
je 0x4aa9cf
push 0
push 0
push ebx
push 0
call fcn.004b04f0
test eax, eax
jne 0x4aa9fc
mov eax, dword [0x4d70f4]
test byte [eax + 0xe0], 1
jne case.0x4aa479.69
mov dword [edi], 0
mov eax, 1
mov dword [edi + 4], 0
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 0x18
mov esi, dword [esi]
cmp byte [esi + 0x17], 0
jne 0x4aaa07
mov esi, dword [esi + 0xc]
test byte [esi + 0x15], 8
je 0x4aaa14
mov ecx, esi
call fcn.004014a0
mov al, byte [esi + 0x17]
cmp al, 1
jne 0x4aaa2c
test byte [esi + 0x15], 4
je 0x4aaa27
push esi
call fcn.0044e150
mov ecx, dword [esi + 8]
jmp 0x4aaa87
cmp al, 2
jne 0x4aaa75
mov ecx, dword [0x4dba88]
test ecx, ecx
jne 0x4aaa87
mov esi, dword [sym.imp.USER32.dll_IsClipboardFormatAvailable]
push 1
call esi
test eax, eax
jne 0x4aaa5d
push 0xf
call esi
test eax, eax
mov ecx, 0x4c3c24
mov edx, 0x4c3c29
cmove ecx, edx
jmp 0x4aaa87
push 0
call fcn.00405ef0
cmp eax, 0xffffffff
mov ecx, 0x4c3c29
cmovne ecx, dword [0x4dba84]
jmp 0x4aaa87
mov ecx, 0x4da402
jmp 0x4aaa87
xor edx, edx
mov ecx, esi
call fcn.00476ef0
mov ecx, eax
cmp ecx, 0x10000
jae 0x4aaa96
xor ecx, ecx
jmp 0x4aa92a
cmp byte [esp + 0x13], 0
mov eax, dword [ebp + 8]
push ebx
push ecx
lea ecx, [eax + 8]
je 0x4aaab1
call fcn.004a9ad0
mov ecx, eax
jmp 0x4aa926
call fcn.004a9ec0
mov ecx, eax
jmp 0x4aa926
test ebx, ebx
jne 0x4aab39
mov esi, dword [ebp + 8]
mov eax, dword [esi + 8]
lea ecx, [esi + 8]
mov eax, dword [eax + 0x18]
call eax
mov ebx, eax
mov eax, edx
mov ecx, ebx
mov dword [esp + 0x1c], eax
and ecx, eax
cmp ecx, 0xffffffff
jne 0x4aaaf5
or eax, ecx
or edx, ecx
mov dword [edi], eax
lea eax, [ecx + 2]
mov dword [edi + 4], edx
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 0x18
mov eax, dword [esi + 0x34]
test eax, eax
je 0x4aab1c
sub eax, dword [esi + 0x38]
sub eax, dword [esi + 0x10]
cdq
add eax, ebx
mov dword [edi], eax
mov eax, 1
adc edx, dword [esp + 0x1c]
mov dword [edi + 4], edx
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 0x18
mov eax, dword [esi + 0x10]
cdq
add eax, ebx
mov dword [edi], eax
mov eax, 1
adc edx, dword [esp + 0x1c]
mov dword [edi + 4], edx
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 0x18
cmp ebx, 2
jg case.0x4aa479.69
mov esi, dword [ebp + 0x18]
xor edx, edx
mov ecx, dword [esi + 4]
call fcn.00476ef0
mov dword [esp + 0x14], eax
mov ecx, edx
mov dword [esp + 0x1c], ecx
cmp ebx, 2
jne 0x4aab6e
mov ecx, dword [esi + 8]
xor edx, edx
call fcn.00476ef0
mov dword [esp + 0x18], eax
jmp 0x4aab8a
test ecx, ecx
jg 0x4aab82
jl 0x4aab78
test eax, eax
jae 0x4aab82
mov dword [esp + 0x18], 2
jmp 0x4aab8a
mov dword [esp + 0x18], 0
mov ebx, dword [ebp + 8]
add ebx, 8
mov eax, dword [ebx + 0x2c]
test eax, eax
je 0x4aabb2
sub eax, dword [ebx + 0x30]
mov ecx, ebx
sub eax, dword [ebx + 8]
mov esi, dword [ebx]
push 1
cdq
push edx
push eax
call dword [esi + 0x14]
mov dword [ebx + 0x2c], 0
jmp 0x4aabc4
mov ecx, dword [ebx + 8]
test ecx, ecx
je 0x4aabcb
mov eax, dword [ebx]
push ecx
push dword [ebx + 0x30]
mov ecx, ebx
call dword [eax + 0x10]
mov dword [ebx + 8], 0
push dword [esp + 0x18]
mov eax, dword [ebx]
mov ecx, ebx
push dword [esp + 0x20]
mov byte [ebx + 0x28], 0
push dword [esp + 0x1c]
mov eax, dword [eax + 0x14]
call eax
test al, al
jne 0x4aac1e
mov eax, dword [0x4d70f4]
test byte [eax + 0xe0], 1
jne case.0x4aa479.69
xorps xmm0, xmm0
movlpd qword [esp + 0x20], xmm0
mov eax, dword [esp + 0x24]
mov ecx, dword [esp + 0x20]
mov dword [edi], ecx
mov dword [edi + 4], eax
mov eax, 1
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 0x18
mov ecx, 1
xor eax, eax
mov dword [edi], ecx
mov dword [edi + 4], eax
mov eax, ecx
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 0x18
test ebx, ebx
jne 0x4aaca6
mov esi, dword [ebp + 8]
mov eax, dword [esi + 8]
lea ecx, [esi + 8]
mov eax, dword [eax + 0x1c]
call eax
cmp dword [esi + 0x34], 0
mov ebx, eax
mov dword [esp + 0x18], edx
jne 0x4aac8b
cmp dword [esi + 0x10], 0
je 0x4aac8b
mov eax, dword [esi + 8]
lea ecx, [esi + 8]
mov eax, dword [eax + 0x18]
call eax
add eax, dword [esi + 0x10]
mov ecx, dword [esp + 0x18]
adc edx, 0
cmp edx, ecx
jl 0x4aac8f
jg 0x4aac93
cmp eax, ebx
jbe 0x4aac8f
mov dword [edi], eax
mov eax, 1
mov dword [edi + 4], edx
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 0x18
mov ecx, dword [esp + 0x18]
mov eax, ebx
mov edx, ecx
mov dword [edi], eax
mov eax, 1
mov dword [edi + 4], edx
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 0x18
cmp ebx, 1
jne case.0x4aa479.69
mov eax, dword [ebp + 0x18]
xor edx, edx
mov ecx, dword [eax + 4]
call fcn.00476ef0
mov ebx, dword [ebp + 8]
add ebx, 8
mov dword [esp + 0x18], eax
mov dword [esp + 0x14], edx
mov eax, dword [ebx + 0x2c]
test eax, eax
je 0x4aacec
sub eax, dword [ebx + 0x30]
mov ecx, ebx
sub eax, dword [ebx + 8]
mov esi, dword [ebx]
push 1
cdq
push edx
push eax
call dword [esi + 0x14]
mov dword [ebx + 0x2c], 0
jmp 0x4aacfe
mov ecx, dword [ebx + 8]
test ecx, ecx
je 0x4aad05
mov eax, dword [ebx]
push ecx
push dword [ebx + 0x30]
mov ecx, ebx
call dword [eax + 0x10]
mov dword [ebx + 8], 0
mov eax, dword [ebx]
mov ecx, ebx
mov byte [ebx + 0x28], 0
mov eax, dword [eax + 0x18]
call eax
mov esi, dword [ebx]
mov ecx, ebx
push 0
push dword [esp + 0x18]
mov dword [esp + 0x24], eax
push dword [esp + 0x20]
mov esi, dword [esi + 0x14]
mov dword [esp + 0x2c], edx
call esi
test al, al
je 0x4aad91
push dword [ebx + 0x34]
call dword [sym.imp.KERNEL32.dll_SetEndOfFile]
test eax, eax
je 0x4aad91
mov edx, dword [esp + 0x20]
cmp dword [esp + 0x14], edx
jg 0x4aad58
mov ecx, dword [esp + 0x18]
jl 0x4aad62
mov eax, dword [esp + 0x1c]
cmp ecx, eax
jae 0x4aad5c
jmp 0x4aad62
mov eax, dword [esp + 0x1c]
mov ecx, eax
mov dword [esp + 0x14], edx
mov eax, dword [ebx]
push 0
push dword [esp + 0x18]
push ecx
mov ecx, ebx
call dword [eax + 0x14]
mov eax, dword [ebx]
mov ecx, ebx
mov eax, dword [eax + 0x1c]
call eax
mov dword [edi], eax
mov dword [edi + 4], edx
cmp eax, 0xffffffff
jne 0x4aa949
cmp edx, eax
jne 0x4aa949
jmp 0x4aad9e
mov dword [edi], 0xffffffff
mov dword [edi + 4], 0xffffffff
mov dword [edi], 0x4c3c29
mov eax, dword [0x4d70f4]
mov dword [edi + 8], 0
test byte [eax + 0xe0], 1
je 0x4aa949
mov ecx, dword [0x4dbe24]
push 0x4c3c29
push str.FileObject
push 0x4c40b0
call fcn.0044d1f0
mov eax, 1
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 0x18
test ebx, ebx
jne 0x4aa949
mov esi, dword [ebp + 8]
mov ecx, dword [esi + 0x34]
test ecx, ecx
je 0x4aae01
mov eax, dword [esi + 0x38]
add eax, dword [esi + 0x10]
cmp ecx, eax
jb 0x4aae45
mov eax, dword [esi + 8]
lea ecx, [esi + 8]
mov eax, dword [eax + 0x18]
call eax
mov ebx, eax
mov eax, edx
mov dword [esp + 0x20], eax
test eax, eax
jl 0x4aac1e
jg 0x4aae26
test ebx, ebx
jb 0x4aac1e
mov eax, dword [esi + 8]
lea ecx, [esi + 8]
mov eax, dword [eax + 0x1c]
call eax
cmp dword [esp + 0x20], edx
jg 0x4aac1e
jl 0x4aae45
cmp ebx, eax
jae 0x4aac1e
xorps xmm0, xmm0
movlpd qword [esp + 0x20], xmm0
mov eax, dword [esp + 0x24]
mov ecx, dword [esp + 0x20]
mov dword [edi], ecx
mov dword [edi + 4], eax
mov eax, 1
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 0x18
test ebx, ebx
jne 0x4aa949
mov ebx, dword [ebp + 8]
mov eax, dword [ebx + 0x34]
test eax, eax
je 0x4aae98
sub eax, dword [ebx + 0x38]
lea ecx, [ebx + 8]
sub eax, dword [ebx + 0x10]
mov esi, dword [ebx + 8]
push 1
cdq
push edx
push eax
call dword [esi + 0x14]
mov dword [ebx + 0x34], 0
jmp 0x4aaeac
mov ecx, dword [ebx + 0x10]
test ecx, ecx
je 0x4aaeb3
mov eax, dword [ebx + 8]
push ecx
push dword [ebx + 0x38]
lea ecx, [ebx + 8]
call dword [eax + 0x10]
mov dword [ebx + 0x10], 0
mov eax, dword [ebx + 0x3c]
mov byte [ebx + 0x30], 0
mov dword [edi], eax
jmp 0x4aa942
mov esi, dword [ebp + 8]
test ebx, ebx
jle 0x4aaf3d
mov ebx, dword [ebp + 0x18]
mov ecx, dword [ebx + 4]
call fcn.00476dc0
mov ecx, dword [ebx + 4]
test eax, eax
je 0x4aaee3
xor edx, edx
call fcn.00476ef0
jmp 0x4aaf0f
mov eax, dword [ecx + 8]
cmp eax, 5
ja case.0x4aaeeb.1
jmp dword [eax*4 + 0x4ab0bc]
mov ecx, dword [ecx]
push 0
push 1
call fcn.00401640
jmp 0x4aaf08
mov eax, dword [ecx]
jmp 0x4aaf08
mov eax, 0x4c3c29
mov ecx, eax
call fcn.0042b8b0
mov ecx, eax
cmp ecx, 0xffffffff
je 0x4aaf3d
and ecx, 0x7fffffff
cmove ecx, dword [0x4dc2a0]
cmp dword [esi + 0x18], ecx
je 0x4aaf3d
lea eax, [esi + 0x1c]
mov dword [esi + 0x18], ecx
push eax
push ecx
call dword [sym.imp.KERNEL32.dll_GetCPInfo]
test eax, eax
jne 0x4aaf3d
mov byte [esi + 0x22], al
mov ecx, dword [esi + 0x18]
cmp ecx, 0x4b0
je 0x4aaf9b
cmp ecx, 0xfde9
je 0x4aaf7f
mov esi, dword [edi + 4]
push 0xa
lea eax, [esi + 2]
mov word [esi], 0x5043
push eax
push ecx
call dword [sym.imp.api_ms_win_crt_convert_l1_1_0.dll__itoa]
add esp, 0xc
mov dword [edi + 8], 0
mov dword [edi], esi
mov eax, 1
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 0x18
mov esi, str.UTF_8
mov dword [edi + 8], 0
mov dword [edi], esi
mov eax, 1
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 0x18
mov esi, str.UTF_16
mov dword [edi + 8], 0
mov dword [edi], esi
mov eax, 1
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 0x18
test ebx, ebx
jne 0x4aafe7
mov esi, dword [ebp + 8]
mov ecx, dword [esi + 0x10]
test ecx, ecx
je 0x4aafda
cmp dword [esi + 0x34], ebx
jne 0x4aafda
mov eax, dword [esi + 8]
push ecx
push dword [esi + 0x38]
lea ecx, [esi + 8]
call dword [eax + 0x10]
mov dword [esi + 0x10], ebx
mov eax, dword [esi + 8]
lea ecx, [esi + 8]
mov byte [esi + 0x30], 0
call dword [eax + 8]
mov dword [edi + 8], 0
mov eax, 1
mov dword [edi], 0x4c3c29
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 0x18
pop edi
pop esi
mov eax, 4
pop ebx
mov esp, ebp
pop ebp
ret 0x18