Function at 0x4ad650
Capabilities:
Clear file content

Disassembly:
push ebp
mov ebp, esp
and esp, 0xfffffff8
sub esp, 0x24
push ebx
mov ebx, dword [ebp + 0x1c]
push esi
push edi
mov edi, dword [ebp + 0xc]
test ebx, ebx
je 0x4ae772
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.0x4ad67b.1
jmp dword [eax*4 + 0x4ae780]
mov ecx, dword [esi]
push 0
push 1
call fcn.00401630
mov esi, eax
mov dword [esp + 0x1c], eax
jmp 0x4ad6a2
mov esi, dword [esi]
jmp 0x4ad69e
mov esi, 0x4f03e8
mov dword [esp + 0x1c], esi
push 4
push str.Read
push esi
call fcn.004cff45
add esp, 0xc
test eax, eax
jne 0x4ad6e3
add esi, 8
cmp word [esi], ax
jne 0x4ad6c6
lea esi, [eax + 1]
jmp 0x4ad825
push str.Line
push esi
call fcn.004ce516
add esp, 8
neg eax
sbb esi, esi
and esi, 2
add esi, 3
jmp 0x4ad825
push 5
push str.Write
push esi
call fcn.004cff45
add esp, 0xc
test eax, eax
jne 0x4ad723
add esi, 0xa
cmp word [esi], ax
jne 0x4ad707
lea esi, [eax + 2]
jmp 0x4ad825
push str.Line
push esi
call fcn.004ce516
add esp, 8
neg eax
sbb esi, esi
neg esi
add esi, 4
jmp 0x4ad825
push str.RawRead
push esi
call fcn.004ce516
add esp, 8
test eax, eax
jne 0x4ad73d
lea esi, [eax + 6]
jmp 0x4ad825
push str.RawWrite
push esi
call fcn.004ce516
add esp, 8
test eax, eax
jne 0x4ad757
lea esi, [eax + 6]
jmp 0x4ad825
push 0x5090e0
push esi
call fcn.004ce516
add esp, 8
test eax, eax
je 0x4ad820
push str.Length
push esi
call fcn.004ce516
add esp, 8
test eax, eax
jne 0x4ad787
lea esi, [eax + 9]
jmp 0x4ad825
push str.AtEOF
push esi
call fcn.004ce516
add esp, 8
test eax, eax
jne 0x4ad7a1
lea esi, [eax + 0xa]
jmp 0x4ad825
push str.__Handle
push esi
call fcn.004ce516
add esp, 8
test eax, eax
jne 0x4ad7b8
lea esi, [eax + 0xb]
jmp 0x4ad825
push str.Encoding
push esi
call fcn.004ce516
add esp, 8
test eax, eax
jne 0x4ad7cf
lea esi, [eax + 0xc]
jmp 0x4ad825
push str.Close
push esi
call fcn.004ce516
add esp, 8
test eax, eax
jne 0x4ad7e6
lea esi, [eax + 0xd]
jmp 0x4ad825
push str.Position
push esi
call fcn.004ce516
add esp, 8
test eax, eax
je 0x4ad820
push str.Seek
push esi
call fcn.004ce516
add esp, 8
test eax, eax
je 0x4ad820
push str.Tell
push esi
call fcn.004ce516
add esp, 8
test eax, eax
jne 0x4ae772
mov esi, 8
mov eax, dword [ebp + 0x14]
test al, 2
jne 0x4ad840
cmp esi, 7
jb 0x4add39
and eax, 1
cmp ebx, eax
jne 0x4add39
lea eax, [esi - 1]
mov dword [edi + 8], 1
cmp eax, 0xc
ja case.0x4ad8f0.69
jmp dword [eax*4 + 0x4ae798]
mov ecx, dword [esp + 0x1c]
movzx eax, word [ecx]
cmp eax, 0x52
je 0x4ad86f
cmp eax, 0x72
je 0x4ad86f
xor al, al
jmp 0x4ad871
mov al, 1
mov byte [esp + 0x13], al
add ecx, 8
movzx eax, al
xor eax, 1
movzx esi, word [ecx + eax*2]
lea eax, [ecx + eax*2]
xor ecx, ecx
mov dword [esp + 0x1c], eax
mov dword [esp + 0x18], ecx
test esi, 0xffffff80
jne 0x4ad8a9
push 2
push esi
call fcn.004d4154
add esp, 8
test eax, eax
je 0x4ad8a9
and esi, 0xffffffdf
movzx eax, si
mov dword [esp + 0x14], eax
cmp eax, 0x55
mov eax, dword [esp + 0x1c]
jne 0x4ad8c0
add eax, 2
mov dword [esp + 0x1c], eax
movzx esi, word [eax]
test esi, 0xffffff80
jne 0x4ad8dd
push 2
push esi
call fcn.004d4154
add esp, 8
test eax, eax
je 0x4ad8dd
and esi, 0xffffffdf
add esi, 0xffffffbd
cmp esi, 0x10
ja case.0x4ad8f0.69
movzx eax, byte [esi + 0x4ae7e8]
jmp dword [eax*4 + 0x4ae7cc]
push 0x36
push dword [esp + 0x20]
call fcn.004cbd94
add esp, 8
neg eax
sbb esi, esi
and esi, 4
add esi, 4
xor edx, edx
jmp 0x4ad947
mov esi, 2
xor edx, edx
jmp 0x4ad947
mov esi, 1
xor edx, edx
jmp 0x4ad947
xor edx, edx
jmp 0x4ad942
mov edx, 1
mov esi, 8
mov dword [esp + 0x18], edx
jmp 0x4ad947
mov edx, 1
mov dword [esp + 0x18], edx
mov esi, 4
cmp byte [esp + 0x13], 0
je 0x4ada39
mov ecx, dword [ebp + 8]
lea eax, [esp + 0x28]
push esi
xorps xmm0, xmm0
push eax
lea ecx, [ecx + 8]
movlpd qword [esp + 0x30], xmm0
call fcn.004acfa0
test eax, eax
je case.0x4ad8f0.69
cmp dword [esp + 0x18], 0
je 0x4ad9bf
cmp esi, 4
jne 0x4ad9a0
movss xmm0, dword [esp + 0x28]
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 + 0x28]
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 word [esp + 0x14], 0x55
je 0x4ada1e
sub esi, 1
je 0x4ada05
sub esi, 1
je 0x4ad9ec
sub esi, 2
jne 0x4ada1e
mov eax, dword [esp + 0x28]
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 + 0x28]
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 + 0x28]
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 + 0x28]
mov edx, dword [esp + 0x2c]
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.0x4ad8f0.69
mov eax, dword [ebp + 0x18]
mov ecx, dword [eax + 4]
test edx, edx
je 0x4adab6
mov eax, dword [ecx + 8]
dec eax
cmp eax, 5
ja case.0x4ada55.3
jmp dword [eax*4 + 0x4ae7fc]
mov edx, dword [ecx + 4]
mov ecx, dword [ecx]
call fcn.004e8ec0
jmp 0x4ada98
movsd xmm0, qword [ecx]
jmp 0x4ada98
mov ecx, dword [ecx]
push 0
call fcn.00429b70
jmp 0x4ada98
mov eax, dword [ecx + 4]
test eax, eax
je case.0x4ada55.3
mov edx, dword [eax + 4]
mov ecx, dword [eax]
call fcn.004e8ec0
jmp 0x4ada98
xorps xmm0, xmm0
jmp 0x4ada98
mov ecx, dword [ecx]
call fcn.00429920
movsd qword [esp + 0x28], xmm0
cmp esi, 4
jne 0x4adb66
cvtsd2ss xmm0, xmm0
movss dword [esp + 0x28], xmm0
jmp 0x4adb66
cmp esi, 8
jne 0x4adb09
cmp word [esp + 0x14], 0x55
jne 0x4adb09
mov eax, dword [ecx + 8]
cmp eax, 1
je 0x4adb09
cmp eax, 2
je 0x4adb09
cmp eax, 5
ja case.0x4adad5.1
jmp dword [eax*4 + 0x4ae814]
mov ecx, dword [ecx]
push 0
push 1
call fcn.00401630
mov ecx, eax
call fcn.0044f690
jmp 0x4adb5e
mov eax, dword [ecx]
mov ecx, eax
call fcn.0044f690
jmp 0x4adb5e
mov eax, 0x4f03e8
mov ecx, eax
call fcn.0044f690
jmp 0x4adb5e
mov eax, dword [ecx + 8]
dec eax
cmp eax, 5
ja case.0x4adb12.3
jmp dword [eax*4 + 0x4ae82c]
mov eax, dword [ecx]
mov edx, dword [ecx + 4]
jmp 0x4adb5e
mov edx, dword [ecx + 4]
test edx, edx
je case.0x4adb12.3
mov eax, dword [edx]
mov edx, dword [edx + 4]
jmp 0x4adb5e
movsd xmm0, qword [ecx]
call fcn.004e8db0
jmp 0x4adb5e
mov ecx, dword [ecx]
push 0
call fcn.00429ab0
jmp 0x4adb5e
xorps xmm0, xmm0
movlpd qword [esp + 0x20], xmm0
mov edx, dword [esp + 0x24]
mov eax, dword [esp + 0x20]
jmp 0x4adb5e
mov ecx, dword [ecx]
call fcn.00405350
mov dword [esp + 0x2c], edx
mov dword [esp + 0x28], eax
mov ecx, dword [ebp + 8]
lea eax, [esp + 0x28]
push esi
push eax
lea ecx, [ecx + 8]
call fcn.004ad340
test eax, eax
jne 0x4adb8e
mov ecx, dword [0x51b98c]
test byte [ecx + 0x100], 1
jne case.0x4ad8f0.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.0x4ad8f0.69
test ebx, ebx
mov ebx, dword [ebp + 8]
je 0x4adc3e
mov eax, dword [ebp + 0x18]
mov ecx, dword [eax + 4]
mov eax, dword [ecx + 8]
dec eax
cmp eax, 5
ja case.0x4adbc8.3
jmp dword [eax*4 + 0x4ae844]
mov eax, dword [ecx + 4]
mov esi, dword [ecx]
mov dword [esp + 0x2c], eax
jmp 0x4adcde
mov eax, dword [ecx + 4]
test eax, eax
je case.0x4adbc8.3
mov esi, dword [eax]
mov eax, dword [eax + 4]
mov dword [esp + 0x2c], eax
jmp 0x4adcde
movsd xmm0, qword [ecx]
call fcn.004e8db0
mov esi, eax
mov dword [esp + 0x2c], edx
jmp 0x4adcde
mov ecx, dword [ecx]
push 0
call fcn.00429ab0
mov esi, eax
mov dword [esp + 0x2c], edx
jmp 0x4adcde
xorps xmm0, xmm0
movlpd qword [esp + 0x28], xmm0
mov esi, dword [esp + 0x28]
jmp 0x4adcde
mov ecx, dword [ecx]
call fcn.00405350
mov esi, eax
mov dword [esp + 0x2c], edx
jmp 0x4adcde
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 + 0x18], eax
mov dword [esp + 0x1c], edx
jne 0x4adc8e
cmp dword [ebx + 8], 0
je 0x4adc8e
mov eax, dword [ebx]
mov ecx, ebx
mov eax, dword [eax + 0x18]
call eax
mov ecx, dword [esp + 0x1c]
mov esi, eax
add esi, dword [ebx + 8]
adc edx, 0
cmp edx, ecx
jl 0x4adc88
jg 0x4adc82
mov eax, dword [esp + 0x18]
cmp esi, eax
jbe 0x4adc92
mov dword [esp + 0x2c], edx
jmp 0x4adc98
mov eax, dword [esp + 0x18]
jmp 0x4adc92
mov ecx, dword [esp + 0x1c]
mov esi, eax
mov dword [esp + 0x2c], 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 0x4adcba
or eax, ecx
mov dword [esp + 0x2c], ecx
jmp 0x4adcd9
mov eax, dword [ebx + 0x2c]
test eax, eax
je 0x4adcc9
sub eax, dword [ebx + 0x30]
sub eax, dword [ebx + 8]
jmp 0x4adccc
mov eax, dword [ebx + 8]
cdq
add eax, dword [esp + 0x1c]
adc edx, dword [esp + 0x18]
mov dword [esp + 0x2c], edx
mov ebx, dword [ebp + 8]
sub esi, eax
cmp esi, 0xffffffff
je case.0x4ad8f0.69
cmp esi, 0xff
ja 0x4adcf4
mov eax, dword [edi + 4]
jmp 0x4add12
lea eax, [esi*2 + 2]
push eax
call fcn.004cfec5
add esp, 4
mov dword [edi + 0xc], eax
test eax, eax
je case.0x4ad8f0.69
mov dword [edi + 4], esi
xor ecx, ecx
mov dword [edi], eax
push 0
mov word [eax + esi*2], cx
lea ecx, [ebx + 8]
push esi
push dword [edi]
call fcn.004acbe0
mov ecx, dword [edi]
xor edx, edx
mov dword [edi + 8], 0
mov word [ecx + eax*2], dx
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.0x4ad8f0.69
push 0x20002
call fcn.004cfec5
add esp, 4
mov dword [edi + 0xc], eax
test eax, eax
je case.0x4ad8f0.69
xor ecx, ecx
mov dword [edi + 4], 0x10000
mov dword [edi], eax
mov word [eax + 0x20000], cx
mov ecx, dword [ebp + 8]
push 1
push 0xffff
lea ecx, [ecx + 8]
jmp 0x4add20
cmp ebx, 1
jg case.0x4ad8f0.69
xor ecx, ecx
xor ebx, ebx
mov dword [esp + 0x1c], ecx
cmp dword [ebp + 0x1c], ecx
je 0x4ade3c
mov ebx, dword [ebp + 0x18]
mov edx, dword [edi + 4]
mov ecx, dword [ebx + 4]
call fcn.0047a530
mov ebx, dword [ebx + 4]
mov edx, eax
mov dword [esp + 0x1c], edx
cmp dword [ebx + 8], 4
jne 0x4ade09
mov ebx, dword [ebx]
mov cl, byte [ebx + 0x17]
test cl, cl
jne 0x4addd0
mov eax, dword [ebx + 0xc]
mov al, byte [eax + 0x15]
jmp 0x4addd3
mov al, byte [ebx + 0x15]
test al, 1
jne 0x4ade09
test cl, cl
jne 0x4addde
mov ebx, dword [ebx + 0xc]
cmp byte [ebx + 0x17], 1
jne 0x4addfe
test byte [ebx + 0x15], 8
je 0x4addf5
mov ecx, ebx
call fcn.00401490
mov edx, dword [esp + 0x1c]
add ebx, 0xc
mov ebx, dword [ebx]
shr ebx, 1
jmp 0x4ade1f
mov ebx, 0x522be8
mov ebx, dword [ebx]
shr ebx, 1
jmp 0x4ade1f
mov ebx, edx
lea ecx, [ebx + 2]
nop
mov ax, word [ebx]
add ebx, 2
test ax, ax
jne 0x4ade10
sub ebx, ecx
sar ebx, 1
mov ecx, dword [ebp + 8]
push ebx
add ecx, 8
push edx
mov dword [esp + 0x20], ecx
call fcn.004ad150
mov ecx, eax
mov eax, dword [esp + 0x18]
mov dword [esp + 0x1c], ecx
jmp 0x4ade42
mov eax, dword [ebp + 8]
add eax, 8
cmp esi, 4
jne 0x4ade64
test ecx, ecx
jne 0x4ade4f
test ebx, ebx
jne 0x4ade6c
push 1
push 0x510974
mov ecx, eax
inc ebx
call fcn.004ad150
mov ecx, dword [esp + 0x1c]
add ecx, eax
test ecx, ecx
jne 0x4ade7e
test ebx, ebx
je 0x4ade7e
mov eax, dword [0x51b98c]
test byte [eax + 0x100], 1
jne case.0x4ad8f0.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.0x4ad8f0.69
mov ecx, dword [esp + 0x1c]
movzx eax, word [ecx + 6]
cmp eax, 0x52
je 0x4adeb5
mov byte [esp + 0x13], 0
cmp eax, 0x72
jne 0x4adeba
mov byte [esp + 0x13], 1
mov eax, dword [ebp + 0x18]
mov ecx, dword [eax + 8]
mov esi, dword [eax + 4]
mov eax, dword [ecx + 8]
dec eax
cmp eax, 5
ja case.0x4adecc.3
jmp dword [eax*4 + 0x4ae85c]
mov eax, dword [ecx + 4]
mov ebx, dword [ecx]
mov dword [esp + 0x2c], eax
jmp 0x4adf22
mov eax, dword [ecx + 4]
test eax, eax
je case.0x4adecc.3
mov ebx, dword [eax]
mov eax, dword [eax + 4]
mov dword [esp + 0x2c], eax
jmp 0x4adf22
movsd xmm0, qword [ecx]
call fcn.004e8db0
jmp 0x4adf1c
mov ecx, dword [ecx]
push 0
call fcn.00429ab0
jmp 0x4adf1c
xorps xmm0, xmm0
movlpd qword [esp + 0x28], xmm0
mov ebx, dword [esp + 0x28]
jmp 0x4adf22
mov ecx, dword [ecx]
call fcn.00405350
mov ebx, eax
mov dword [esp + 0x2c], edx
mov eax, dword [esi + 8]
cmp eax, 4
jne 0x4ae027
mov ecx, dword [esi]
cmp byte [ecx + 0x17], 0
jne 0x4adf3b
mov eax, dword [ecx + 0xc]
jmp 0x4adf3d
mov eax, ecx
cmp byte [eax + 0x17], 2
jne 0x4adf4a
mov eax, dword [0x5217dc]
jmp 0x4adf4d
mov eax, dword [eax + 0x10]
cmp ebx, eax
jbe 0x4adfa0
cmp byte [esp + 0x13], 0
je 0x4adf73
push 0
mov edx, ebx
mov eax, ebx
shr edx, 1
and eax, 1
push 0
add edx, eax
push edx
push 0
call fcn.004b3e10
test eax, eax
jne 0x4adfa0
mov eax, dword [0x51b98c]
test byte [eax + 0x100], 1
jne case.0x4ad8f0.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 0x4adfab
mov esi, dword [esi + 0xc]
test byte [esi + 0x15], 8
je 0x4adfb8
mov ecx, esi
call fcn.00401490
mov al, byte [esi + 0x17]
cmp al, 1
jne 0x4adfd3
test byte [esi + 0x15], 4
je 0x4adfcb
push esi
call fcn.0044e530
mov ecx, dword [esi + 8]
jmp 0x4ae083
cmp al, 2
jne 0x4ae020
mov ecx, dword [0x5217d4]
test ecx, ecx
jne 0x4ae083
mov esi, dword [sym.imp.USER32.dll_IsClipboardFormatAvailable]
push 0xd
call esi
test eax, eax
jne 0x4ae008
push 0xf
call esi
test eax, eax
mov ecx, 0x4f03dc
mov edx, 0x4f03e8
cmove ecx, edx
jmp 0x4ae083
push 0
call fcn.004066a0
cmp eax, 0xffffffff
mov ecx, 0x4f03e8
cmovne ecx, dword [0x5217d0]
jmp 0x4ae083
mov ecx, 0x5203c8
jmp 0x4ae083
dec eax
cmp eax, 5
ja case.0x4ae02d.3
jmp dword [eax*4 + 0x4ae874]
mov eax, dword [esi + 4]
mov ecx, dword [esi]
mov dword [esp + 0x2c], eax
jmp 0x4ae083
mov eax, dword [esi + 4]
test eax, eax
je case.0x4ae02d.3
mov ecx, dword [eax]
mov eax, dword [eax + 4]
mov dword [esp + 0x2c], eax
jmp 0x4ae083
movsd xmm0, qword [esi]
call fcn.004e8db0
jmp 0x4ae07d
mov ecx, dword [esi]
push 0
call fcn.00429ab0
jmp 0x4ae07d
xorps xmm0, xmm0
movlpd qword [esp + 0x28], xmm0
mov ecx, dword [esp + 0x28]
jmp 0x4ae083
mov ecx, dword [esi]
call fcn.00405350
mov ecx, eax
mov dword [esp + 0x2c], edx
cmp ecx, 0x10000
jae 0x4ae092
xor ecx, ecx
jmp 0x4ade68
cmp byte [esp + 0x13], 0
mov eax, dword [ebp + 8]
push ebx
push ecx
lea ecx, [eax + 8]
je 0x4ae0ad
call fcn.004acfa0
mov ecx, eax
jmp 0x4ade64
call fcn.004ad340
mov ecx, eax
jmp 0x4ade64
test ebx, ebx
jne 0x4ae135
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 0x4ae0f1
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 0x4ae118
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.0x4ad8f0.69
mov ecx, dword [ebp + 0x18]
mov edx, dword [ecx + 4]
mov eax, dword [edx + 8]
dec eax
cmp eax, 5
ja case.0x4ae14d.3
jmp dword [eax*4 + 0x4ae88c]
mov eax, dword [edx]
mov edx, dword [edx + 4]
jmp 0x4ae19c
mov esi, dword [edx + 4]
test esi, esi
je case.0x4ae14d.3
mov eax, dword [esi]
mov edx, dword [esi + 4]
jmp 0x4ae19c
movsd xmm0, qword [edx]
call fcn.004e8db0
jmp 0x4ae199
mov ecx, dword [edx]
push 0
call fcn.00429ab0
jmp 0x4ae199
xorps xmm0, xmm0
movlpd qword [esp + 0x28], xmm0
mov edx, dword [esp + 0x2c]
mov eax, dword [esp + 0x28]
jmp 0x4ae19c
mov ecx, dword [edx]
call fcn.00405350
mov ecx, dword [ebp + 0x18]
mov dword [esp + 0x18], edx
mov dword [esp + 0x1c], eax
cmp ebx, 2
jne 0x4ae232
mov edx, dword [ecx + 8]
mov eax, dword [edx + 8]
dec eax
cmp eax, 5
ja case.0x4ae1b9.3
jmp dword [eax*4 + 0x4ae8a4]
mov ecx, dword [edx]
mov eax, dword [edx + 4]
mov dword [esp + 0x14], ecx
mov dword [esp + 0x2c], eax
jmp 0x4ae24e
mov eax, dword [edx + 4]
test eax, eax
je case.0x4ae1b9.3
mov ecx, dword [eax]
mov eax, dword [eax + 4]
mov dword [esp + 0x14], ecx
mov dword [esp + 0x2c], eax
jmp 0x4ae24e
movsd xmm0, qword [edx]
call fcn.004e8db0
mov dword [esp + 0x14], eax
mov dword [esp + 0x2c], edx
jmp 0x4ae24e
mov ecx, dword [edx]
push 0
call fcn.00429ab0
mov dword [esp + 0x14], eax
mov dword [esp + 0x2c], edx
jmp 0x4ae24e
xorps xmm0, xmm0
movlpd qword [esp + 0x28], xmm0
mov eax, dword [esp + 0x28]
mov dword [esp + 0x14], eax
jmp 0x4ae24e
mov ecx, dword [edx]
call fcn.00405350
mov dword [esp + 0x14], eax
mov dword [esp + 0x2c], edx
jmp 0x4ae24e
test edx, edx
jg 0x4ae246
jl 0x4ae23c
test eax, eax
jae 0x4ae246
mov dword [esp + 0x14], 2
jmp 0x4ae24e
mov dword [esp + 0x14], 0
mov ebx, dword [ebp + 8]
add ebx, 8
mov eax, dword [ebx + 0x2c]
test eax, eax
je 0x4ae276
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 0x4ae288
mov ecx, dword [ebx + 8]
test ecx, ecx
je 0x4ae28f
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 + 0x14]
xor eax, eax
mov ecx, ebx
push dword [esp + 0x1c]
mov word [ebx + 0x28], ax
mov eax, dword [ebx]
push dword [esp + 0x24]
mov eax, dword [eax + 0x14]
call eax
test al, al
jne 0x4ae2e4
mov eax, dword [0x51b98c]
test byte [eax + 0x100], 1
jne case.0x4ad8f0.69
xorps xmm0, xmm0
movlpd qword [esp + 0x28], xmm0
mov eax, dword [esp + 0x2c]
mov ecx, dword [esp + 0x28]
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 0x4ae36c
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 + 0x1c], edx
jne 0x4ae351
cmp dword [esi + 0x10], 0
je 0x4ae351
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 + 0x1c]
adc edx, 0
cmp edx, ecx
jl 0x4ae355
jg 0x4ae359
cmp eax, ebx
jbe 0x4ae355
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 + 0x1c]
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.0x4ad8f0.69
mov eax, dword [ebp + 0x18]
mov ebx, dword [ebp + 8]
add ebx, 8
mov ecx, dword [eax + 4]
mov eax, dword [ecx + 8]
dec eax
cmp eax, 5
ja case.0x4ae38a.3
jmp dword [eax*4 + 0x4ae8bc]
mov eax, dword [ecx]
mov ecx, dword [ecx + 4]
mov dword [esp + 0x18], ecx
jmp 0x4ae3e6
mov edx, dword [ecx + 4]
test edx, edx
je case.0x4ae38a.3
mov ecx, dword [edx + 4]
mov eax, dword [edx]
mov dword [esp + 0x18], ecx
jmp 0x4ae3e6
movsd xmm0, qword [ecx]
call fcn.004e8db0
jmp 0x4ae3e2
mov ecx, dword [ecx]
push 0
call fcn.00429ab0
jmp 0x4ae3e2
xorps xmm0, xmm0
movlpd qword [esp + 0x28], xmm0
mov ecx, dword [esp + 0x2c]
mov eax, dword [esp + 0x28]
mov dword [esp + 0x18], ecx
jmp 0x4ae3e6
mov ecx, dword [ecx]
call fcn.00405350
mov dword [esp + 0x18], edx
mov dword [esp + 0x14], eax
mov eax, dword [ebx + 0x2c]
test eax, eax
je 0x4ae40c
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 0x4ae41e
mov ecx, dword [ebx + 8]
test ecx, ecx
je 0x4ae425
mov eax, dword [ebx]
push ecx
push dword [ebx + 0x30]
mov ecx, ebx
call dword [eax + 0x10]
mov dword [ebx + 8], 0
xor eax, eax
mov ecx, ebx
mov word [ebx + 0x28], ax
mov eax, dword [ebx]
mov eax, dword [eax + 0x18]
call eax
mov ecx, dword [ebx]
push 0
push dword [esp + 0x1c]
mov dword [esp + 0x24], eax
mov esi, dword [ecx + 0x14]
mov ecx, ebx
push dword [esp + 0x1c]
mov dword [esp + 0x2c], edx
call esi
test al, al
je 0x4ae4b8
push dword [ebx + 0x34]
call dword [sym.imp.KERNEL32.dll_SetEndOfFile]
test eax, eax
je 0x4ae4b8
mov eax, dword [ebx]
mov ecx, dword [esp + 0x18]
mov esi, dword [esp + 0x20]
mov eax, dword [eax + 0x14]
mov dword [esp + 0x28], eax
cmp ecx, esi
jg 0x4ae485
mov eax, dword [esp + 0x14]
jl 0x4ae48d
mov edx, dword [esp + 0x1c]
cmp eax, edx
jae 0x4ae489
jmp 0x4ae48d
mov edx, dword [esp + 0x1c]
mov eax, edx
mov ecx, esi
push 0
push ecx
push eax
mov ecx, ebx
call dword [esp + 0x34]
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 0x4add39
cmp edx, eax
jne 0x4add39
jmp 0x4ae4c5
mov dword [edi], 0xffffffff
mov dword [edi + 4], 0xffffffff
mov dword [edi], 0x4f03e8
mov eax, dword [0x51b98c]
mov dword [edi + 8], 0
test byte [eax + 0x100], 1
je 0x4add39
mov ecx, dword [0x5212b4]
push 0x4f03e8
push str.FileObject
push 0x5068e4
call fcn.0044d520
mov eax, 1
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 0x18
test ebx, ebx
jne 0x4add39
mov esi, dword [ebp + 8]
mov ecx, dword [esi + 0x34]
test ecx, ecx
je 0x4ae528
mov eax, dword [esi + 0x38]
add eax, dword [esi + 0x10]
cmp ecx, eax
jb 0x4ae56c
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 + 0x28], eax
test eax, eax
jl 0x4ae2e4
jg 0x4ae54d
test ebx, ebx
jb 0x4ae2e4
mov eax, dword [esi + 8]
lea ecx, [esi + 8]
mov eax, dword [eax + 0x1c]
call eax
cmp dword [esp + 0x28], edx
jg 0x4ae2e4
jl 0x4ae56c
cmp ebx, eax
jae 0x4ae2e4
xorps xmm0, xmm0
movlpd qword [esp + 0x28], xmm0
mov eax, dword [esp + 0x2c]
mov ecx, dword [esp + 0x28]
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 0x4add39
mov ebx, dword [ebp + 8]
mov eax, dword [ebx + 0x34]
test eax, eax
je 0x4ae5bf
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 0x4ae5d3
mov ecx, dword [ebx + 0x10]
test ecx, ecx
je 0x4ae5da
mov eax, dword [ebx + 8]
push ecx
push dword [ebx + 0x38]
lea ecx, [ebx + 8]
call dword [eax + 0x10]
mov dword [ebx + 0x10], 0
xor eax, eax
mov word [ebx + 0x30], ax
mov eax, dword [ebx + 0x3c]
mov dword [edi], eax
jmp 0x4ade80
mov esi, dword [ebp + 8]
test ebx, ebx
jle 0x4ae6ab
mov ebx, dword [ebp + 0x18]
mov ecx, dword [ebx + 4]
call fcn.0047a400
mov edx, dword [ebx + 4]
test eax, eax
mov eax, dword [edx + 8]
je 0x4ae654
dec eax
cmp eax, 5
ja case.0x4ae610.3
jmp dword [eax*4 + 0x4ae8d4]
mov ecx, dword [edx]
jmp 0x4ae67f
mov eax, dword [edx + 4]
test eax, eax
je case.0x4ae610.3
mov ecx, dword [eax]
jmp 0x4ae67f
movsd xmm0, qword [edx]
call fcn.004e8db0
jmp 0x4ae67d
mov ecx, dword [edx]
push 0
call fcn.00429ab0
jmp 0x4ae67d
xorps xmm0, xmm0
movlpd qword [esp + 0x28], xmm0
mov ecx, dword [esp + 0x28]
jmp 0x4ae67f
mov ecx, dword [edx]
call fcn.00405350
jmp 0x4ae67d
cmp eax, 5
ja case.0x4ae659.1
jmp dword [eax*4 + 0x4ae8ec]
mov ecx, dword [edx]
push 0
push 1
call fcn.00401630
jmp 0x4ae676
mov eax, dword [edx]
jmp 0x4ae676
mov eax, 0x4f03e8
mov ecx, eax
call fcn.0042c220
mov ecx, eax
cmp ecx, 0xffffffff
je 0x4ae6ab
and ecx, 0x7fffffff
cmove ecx, dword [0x521974]
cmp dword [esi + 0x18], ecx
je 0x4ae6ab
lea eax, [esi + 0x1c]
mov dword [esi + 0x18], ecx
push eax
push ecx
call dword [sym.imp.KERNEL32.dll_GetCPInfo]
test eax, eax
jne 0x4ae6ab
mov byte [esi + 0x22], al
mov ecx, dword [esi + 0x18]
cmp ecx, 0x4b0
je 0x4ae709
cmp ecx, 0xfde9
je 0x4ae6ed
mov esi, dword [edi + 4]
push 0xa
lea eax, [esi + 4]
mov dword [esi], 0x500043
push eax
push ecx
call fcn.004ce3a5
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 0x4ae757
mov esi, dword [ebp + 8]
mov ecx, dword [esi + 0x10]
test ecx, ecx
je 0x4ae748
cmp dword [esi + 0x34], ebx
jne 0x4ae748
mov eax, dword [esi + 8]
push ecx
push dword [esi + 0x38]
lea ecx, [esi + 8]
call dword [eax + 0x10]
mov dword [esi + 0x10], ebx
xor eax, eax
lea ecx, [esi + 8]
mov word [esi + 0x30], ax
mov eax, dword [esi + 8]
call dword [eax + 8]
mov dword [edi + 8], 0
mov eax, 1
mov dword [edi], 0x4f03e8
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