Function at 0x47a8a0
Capabilities:
Clear file content

Disassembly:
push ebp
mov ebp, esp
and esp, 0xfffffff8
mov eax, dword [ebp + 0x1c]
sub esp, 0x1c
push ebx
push esi
push edi
test eax, eax
je 0x47ba05
dec eax
mov dword [ebp + 0x1c], eax
mov eax, dword [ebp + 0x18]
mov ebx, dword [eax]
mov eax, dword [ebx + 8]
cmp eax, 5
ja case.0x47a8c8.1
jmp dword [eax*4 + 0x47ba14]
mov ecx, dword [ebx]
push 0
push 1
call fcn.004014c0
mov ebx, eax
jmp 0x47a8e7
mov ebx, dword [ebx]
jmp 0x47a8e7
mov ebx, 0x4b70dc
push 4
push str.Read
push ebx
call fcn.0049b726
add esp, 0xc
test eax, eax
jne 0x47a92e
cmp word [ebx + 8], 0
lea eax, [ebx + 8]
jne 0x47a90f
mov esi, 1
jmp 0x47aa76
push str.Line
push eax
call fcn.00499643
add esp, 8
mov esi, eax
neg esi
sbb esi, esi
and esi, 2
add esi, 3
jmp 0x47aa76
push 5
push str.Write
push ebx
call fcn.0049b726
add esp, 0xc
test eax, eax
jne 0x47a974
cmp word [ebx + 0xa], 0
lea eax, [ebx + 0xa]
jne 0x47a956
mov esi, 2
jmp 0x47aa76
push str.Line
push eax
call fcn.00499643
add esp, 8
mov esi, eax
neg esi
sbb esi, esi
neg esi
add esi, 4
jmp 0x47aa76
push str.RawRead
push ebx
call fcn.00499643
add esp, 8
test eax, eax
jne 0x47a98e
lea esi, [eax + 6]
jmp 0x47aa76
push str.RawWrite
push ebx
call fcn.00499643
add esp, 8
test eax, eax
jne 0x47a9a8
lea esi, [eax + 6]
jmp 0x47aa76
push 0x4d07f4
push ebx
call fcn.00499643
add esp, 8
test eax, eax
je 0x47aa71
push str.Length
push ebx
call fcn.00499643
add esp, 8
test eax, eax
jne 0x47a9d8
lea esi, [eax + 9]
jmp 0x47aa76
push str.AtEOF
push ebx
call fcn.00499643
add esp, 8
test eax, eax
jne 0x47a9f2
lea esi, [eax + 0xa]
jmp 0x47aa76
push str.__Handle
push ebx
call fcn.00499643
add esp, 8
test eax, eax
jne 0x47aa09
lea esi, [eax + 0xb]
jmp 0x47aa76
push str.Encoding
push ebx
call fcn.00499643
add esp, 8
test eax, eax
jne 0x47aa20
lea esi, [eax + 0xc]
jmp 0x47aa76
push str.Close
push ebx
call fcn.00499643
add esp, 8
test eax, eax
jne 0x47aa37
lea esi, [eax + 0xd]
jmp 0x47aa76
push str.Position
push ebx
call fcn.00499643
add esp, 8
test eax, eax
je 0x47aa71
push str.Seek
push ebx
call fcn.00499643
add esp, 8
test eax, eax
je 0x47aa71
push str.Tell
push ebx
call fcn.00499643
add esp, 8
test eax, eax
jne 0x47ba05
mov esi, 8
mov ecx, dword [ebp + 0x14]
test cl, 2
jne 0x47aa97
cmp esi, 7
jb 0x47af95
mov eax, dword [ebp + 0x1c]
and ecx, 1
cmp eax, ecx
jne 0x47af95
jmp 0x47aa9a
mov eax, dword [ebp + 0x1c]
mov edi, dword [ebp + 0xc]
lea ecx, [esi - 1]
mov dword [edi + 8], 1
cmp ecx, 0xc
ja case.0x47ab63.69
jmp dword [ecx*4 + 0x47ba2c]
movzx eax, word [ebx]
cmp eax, 0x52
je 0x47aac8
cmp eax, 0x72
je 0x47aac8
xor al, al
jmp 0x47aaca
mov al, 1
mov byte [esp + 0xf], al
movzx eax, al
xor eax, 1
add eax, 4
lea esi, [ebx + eax*2]
xor ebx, ebx
movzx eax, word [esi]
mov ecx, eax
mov dword [esp + 0x18], ecx
test eax, 0xffffff80
je 0x47aaf0
xor eax, eax
jmp 0x47aaff
push 2
push eax
call fcn.0049bd84
mov ecx, dword [esp + 0x20]
add esp, 8
and ecx, 0xffdf
test eax, eax
movzx edx, cx
mov ecx, dword [esp + 0x18]
movzx ecx, cx
cmove edx, ecx
movzx eax, dx
lea edx, [esi + 2]
cmp eax, 0x55
mov dword [esp + 0x18], eax
cmovne edx, esi
mov dword [esp + 0x14], edx
movzx esi, word [edx]
test esi, 0xffffff80
je 0x47ab37
xor eax, eax
jmp 0x47ab46
push 2
push esi
call fcn.0049bd84
mov edx, dword [esp + 0x1c]
add esp, 8
mov ecx, esi
and ecx, 0xffffffdf
test eax, eax
cmove ecx, esi
add ecx, 0xffffffbd
cmp ecx, 0x10
ja case.0x47ab63.69
movzx eax, byte [ecx + 0x47ba7c]
jmp dword [eax*4 + 0x47ba60]
push 0x36
push edx
call fcn.00496bcf
add esp, 8
mov esi, eax
neg esi
sbb esi, esi
and esi, 4
add esi, 4
jmp 0x47aba5
mov esi, 2
jmp 0x47aba5
mov esi, 1
jmp 0x47aba5
mov esi, 8
lea ebx, [esi - 7]
jmp 0x47aba5
mov ebx, 1
mov esi, 4
cmp byte [esp + 0xf], 0
je 0x47ac94
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.0047a1e0
test eax, eax
je case.0x47ab63.69
test ebx, ebx
je 0x47ac1a
cmp esi, 4
jne 0x47abfb
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 word [esp + 0x18], 0x55
je 0x47ac79
sub esi, 1
je 0x47ac60
sub esi, 1
je 0x47ac47
sub esi, 2
jne 0x47ac79
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 dword [ebp + 0x1c], 1
jne case.0x47ab63.69
mov eax, dword [ebp + 0x18]
mov ecx, dword [eax + 4]
test ebx, ebx
je 0x47ad12
mov eax, dword [ecx + 8]
dec eax
cmp eax, 5
ja case.0x47acb1.3
jmp dword [eax*4 + 0x47ba90]
mov edx, dword [ecx + 4]
mov ecx, dword [ecx]
call fcn.004af310
jmp 0x47acf4
movsd xmm0, qword [ecx]
jmp 0x47acf4
mov ecx, dword [ecx]
push 0
call fcn.004155a0
jmp 0x47acf4
mov eax, dword [ecx + 4]
test eax, eax
je case.0x47acb1.3
mov edx, dword [eax + 4]
mov ecx, dword [eax]
call fcn.004af310
jmp 0x47acf4
xorps xmm0, xmm0
jmp 0x47acf4
mov ecx, dword [ecx]
call fcn.00415260
movsd qword [esp + 0x20], xmm0
cmp esi, 4
jne 0x47adc2
cvtsd2ss xmm0, xmm0
movss dword [esp + 0x20], xmm0
jmp 0x47adc2
cmp esi, 8
jne 0x47ad65
cmp word [esp + 0x18], 0x55
jne 0x47ad65
mov eax, dword [ecx + 8]
cmp eax, 1
je 0x47ad65
cmp eax, 2
je 0x47ad65
cmp eax, 5
ja case.0x47ad31.1
jmp dword [eax*4 + 0x47baa8]
mov ecx, dword [ecx]
push 0
push 1
call fcn.004014c0
mov ecx, eax
call fcn.00431a50
jmp 0x47adba
mov eax, dword [ecx]
mov ecx, eax
call fcn.00431a50
jmp 0x47adba
mov eax, 0x4b70dc
mov ecx, eax
call fcn.00431a50
jmp 0x47adba
mov eax, dword [ecx + 8]
dec eax
cmp eax, 5
ja case.0x47ad6e.3
jmp dword [eax*4 + 0x47bac0]
mov eax, dword [ecx]
mov edx, dword [ecx + 4]
jmp 0x47adba
mov edx, dword [ecx + 4]
test edx, edx
je case.0x47ad6e.3
mov eax, dword [edx]
mov edx, dword [edx + 4]
jmp 0x47adba
movsd xmm0, qword [ecx]
call fcn.004af237
jmp 0x47adba
mov ecx, dword [ecx]
push 0
call fcn.004154e0
jmp 0x47adba
xorps xmm0, xmm0
movlpd qword [esp + 0x18], xmm0
mov edx, dword [esp + 0x1c]
mov eax, dword [esp + 0x18]
jmp 0x47adba
mov ecx, dword [ecx]
call fcn.004151f0
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.0047a580
test eax, eax
jne 0x47adea
mov ecx, dword [0x4d98d8]
test byte [ecx + 0x100], 1
jne case.0x47ab63.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 eax, 1
jg case.0x47ab63.69
mov ebx, dword [ebp + 8]
test eax, eax
je 0x47ae9a
mov eax, dword [ebp + 0x18]
mov ecx, dword [eax + 4]
mov eax, dword [ecx + 8]
dec eax
cmp eax, 5
ja case.0x47ae24.3
jmp dword [eax*4 + 0x47bad8]
mov eax, dword [ecx + 4]
mov esi, dword [ecx]
mov dword [esp + 0x24], eax
jmp 0x47af3a
mov eax, dword [ecx + 4]
test eax, eax
je case.0x47ae24.3
mov esi, dword [eax]
mov eax, dword [eax + 4]
mov dword [esp + 0x24], eax
jmp 0x47af3a
movsd xmm0, qword [ecx]
call fcn.004af237
mov esi, eax
mov dword [esp + 0x24], edx
jmp 0x47af3a
mov ecx, dword [ecx]
push 0
call fcn.004154e0
mov esi, eax
mov dword [esp + 0x24], edx
jmp 0x47af3a
xorps xmm0, xmm0
movlpd qword [esp + 0x20], xmm0
mov esi, dword [esp + 0x20]
jmp 0x47af3a
mov ecx, dword [ecx]
call fcn.004151f0
mov esi, eax
mov dword [esp + 0x24], edx
jmp 0x47af3a
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 + 0x14], eax
mov dword [esp + 0x18], edx
jne 0x47aeea
cmp dword [ebx + 8], 0
je 0x47aeea
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 0x47aee4
jg 0x47aede
mov eax, dword [esp + 0x14]
cmp esi, eax
jbe 0x47aeee
mov dword [esp + 0x24], edx
jmp 0x47aef4
mov eax, dword [esp + 0x14]
jmp 0x47aeee
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 + 0x18], eax
and ecx, edx
mov dword [esp + 0x14], edx
cmp ecx, 0xffffffff
jne 0x47af16
or eax, ecx
mov dword [esp + 0x24], ecx
jmp 0x47af35
mov eax, dword [ebx + 0x2c]
test eax, eax
je 0x47af25
sub eax, dword [ebx + 0x30]
sub eax, dword [ebx + 8]
jmp 0x47af28
mov eax, dword [ebx + 8]
cdq
add eax, dword [esp + 0x18]
adc edx, dword [esp + 0x14]
mov dword [esp + 0x24], edx
mov ebx, dword [ebp + 8]
sub esi, eax
cmp esi, 0xffffffff
je case.0x47ab63.69
cmp esi, 0xff
ja 0x47af50
mov eax, dword [edi + 4]
jmp 0x47af6e
lea eax, [esi*2 + 2]
push eax
call fcn.004997ae
add esp, 4
mov dword [edi + 0xc], eax
test eax, eax
je case.0x47ab63.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.00479e20
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 eax, eax
jne case.0x47ab63.69
push 0x20002
call fcn.004997ae
add esp, 4
mov dword [edi + 0xc], eax
test eax, eax
je case.0x47ab63.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 0x47af7c
cmp eax, 1
jg case.0x47ab63.69
xor ecx, ecx
xor ebx, ebx
mov dword [esp + 0x18], ecx
test eax, eax
je 0x47b09c
mov ebx, dword [ebp + 0x18]
mov edx, dword [edi + 4]
mov ecx, dword [ebx + 4]
call fcn.004546a0
mov ebx, dword [ebx + 4]
mov edx, eax
mov dword [esp + 0x18], edx
cmp dword [ebx + 8], 4
jne 0x47b064
mov ebx, dword [ebx]
mov cl, byte [ebx + 0x17]
test cl, cl
jne 0x47b02b
mov eax, dword [ebx + 0xc]
mov al, byte [eax + 0x15]
jmp 0x47b02e
mov al, byte [ebx + 0x15]
test al, 1
jne 0x47b064
test cl, cl
jne 0x47b039
mov ebx, dword [ebx + 0xc]
cmp byte [ebx + 0x17], 1
jne 0x47b059
test byte [ebx + 0x15], 8
je 0x47b050
mov ecx, ebx
call fcn.00401330
mov edx, dword [esp + 0x18]
add ebx, 0xc
mov ebx, dword [ebx]
shr ebx, 1
jmp 0x47b07f
mov ebx, 0x4df418
mov ebx, dword [ebx]
shr ebx, 1
jmp 0x47b07f
mov ebx, edx
lea ecx, [ebx + 2]
nop dword [eax]
mov ax, word [ebx]
add ebx, 2
test ax, ax
jne 0x47b070
sub ebx, ecx
sar ebx, 1
mov ecx, dword [ebp + 8]
push ebx
add ecx, 8
push edx
mov dword [esp + 0x1c], ecx
call fcn.0047a380
mov ecx, eax
mov eax, dword [esp + 0x14]
mov dword [esp + 0x18], ecx
jmp 0x47b0a2
mov eax, dword [ebp + 8]
add eax, 8
cmp esi, 4
jne 0x47b0c4
test ecx, ecx
jne 0x47b0af
test ebx, ebx
jne 0x47b0cc
push 1
push 0x4d1dc4
mov ecx, eax
inc ebx
call fcn.0047a380
mov ecx, dword [esp + 0x18]
add ecx, eax
test ecx, ecx
jne 0x47b0de
test ebx, ebx
je 0x47b0de
mov eax, dword [0x4d98d8]
test byte [eax + 0x100], 1
jne case.0x47ab63.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 eax, 2
jne case.0x47ab63.69
movzx eax, word [ebx + 6]
cmp eax, 0x52
je 0x47b111
mov byte [esp + 0xf], 0
cmp eax, 0x72
jne 0x47b116
mov byte [esp + 0xf], 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.0x47b128.3
jmp dword [eax*4 + 0x47baf0]
mov eax, dword [ecx + 4]
mov ebx, dword [ecx]
mov dword [esp + 0x24], eax
jmp 0x47b17e
mov eax, dword [ecx + 4]
test eax, eax
je case.0x47b128.3
mov ebx, dword [eax]
mov eax, dword [eax + 4]
mov dword [esp + 0x24], eax
jmp 0x47b17e
movsd xmm0, qword [ecx]
call fcn.004af237
jmp 0x47b178
mov ecx, dword [ecx]
push 0
call fcn.004154e0
jmp 0x47b178
xorps xmm0, xmm0
movlpd qword [esp + 0x20], xmm0
mov ebx, dword [esp + 0x20]
jmp 0x47b17e
mov ecx, dword [ecx]
call fcn.004151f0
mov ebx, eax
mov dword [esp + 0x24], edx
mov eax, dword [esi + 8]
cmp eax, 4
jne 0x47b28b
mov ecx, dword [esi]
cmp byte [ecx + 0x17], 0
jne 0x47b197
mov eax, dword [ecx + 0xc]
jmp 0x47b199
mov eax, ecx
cmp byte [eax + 0x17], 2
jne 0x47b1a6
mov eax, dword [0x4de7f4]
jmp 0x47b1a9
mov eax, dword [eax + 0x10]
cmp ebx, eax
jbe 0x47b1fc
cmp byte [esp + 0xf], 0
je 0x47b1cf
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.0047faa0
test eax, eax
jne 0x47b1fc
mov eax, dword [0x4d98d8]
test byte [eax + 0x100], 1
jne case.0x47ab63.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 0x47b207
mov esi, dword [esi + 0xc]
test byte [esi + 0x15], 8
je 0x47b214
mov ecx, esi
call fcn.00401330
mov al, byte [esi + 0x17]
cmp al, 1
jne 0x47b22f
test byte [esi + 0x15], 4
je 0x47b227
push esi
call fcn.00430a80
mov ecx, dword [esi + 8]
jmp 0x47b2e7
cmp al, 2
jne 0x47b284
mov ecx, dword [0x4de7ec]
test ecx, ecx
jne 0x47b2e7
mov esi, dword [sym.imp.USER32.dll_IsClipboardFormatAvailable]
push 0xd
call esi
test eax, eax
jne 0x47b267
push 0xf
call esi
test eax, eax
mov ecx, 0x4b70d0
mov edx, 0x4b70dc
cmove ecx, edx
jmp 0x47b2e7
push 0
mov ecx, 0x4de7e0
call fcn.004052a0
cmp eax, 0xffffffff
mov ecx, 0x4b70dc
cmovne ecx, dword [0x4de7e8]
jmp 0x47b2e7
mov ecx, 0x4ddc74
jmp 0x47b2e7
dec eax
cmp eax, 5
ja case.0x47b291.3
jmp dword [eax*4 + 0x47bb08]
mov eax, dword [esi + 4]
mov ecx, dword [esi]
mov dword [esp + 0x24], eax
jmp 0x47b2e7
mov eax, dword [esi + 4]
test eax, eax
je case.0x47b291.3
mov ecx, dword [eax]
mov eax, dword [eax + 4]
mov dword [esp + 0x24], eax
jmp 0x47b2e7
movsd xmm0, qword [esi]
call fcn.004af237
jmp 0x47b2e1
mov ecx, dword [esi]
push 0
call fcn.004154e0
jmp 0x47b2e1
xorps xmm0, xmm0
movlpd qword [esp + 0x20], xmm0
mov ecx, dword [esp + 0x20]
jmp 0x47b2e7
mov ecx, dword [esi]
call fcn.004151f0
mov ecx, eax
mov dword [esp + 0x24], edx
cmp ecx, 0x10000
jae 0x47b2f6
xor ecx, ecx
jmp 0x47b0c8
cmp byte [esp + 0xf], 0
mov eax, dword [ebp + 8]
push ebx
push ecx
lea ecx, [eax + 8]
je 0x47b311
call fcn.0047a1e0
mov ecx, eax
jmp 0x47b0c4
call fcn.0047a580
mov ecx, eax
jmp 0x47b0c4
test eax, eax
jne 0x47b399
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 + 0x18], eax
and ecx, eax
cmp ecx, 0xffffffff
jne 0x47b355
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 0x47b37c
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 + 0x18]
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 + 0x18]
mov dword [edi + 4], edx
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 0x18
cmp eax, 2
jg case.0x47ab63.69
mov ecx, dword [ebp + 0x18]
mov edx, dword [ecx + 4]
mov eax, dword [edx + 8]
dec eax
cmp eax, 5
ja case.0x47b3b1.3
jmp dword [eax*4 + 0x47bb20]
mov ebx, dword [edx]
mov edx, dword [edx + 4]
jmp 0x47b402
mov eax, dword [edx + 4]
test eax, eax
je case.0x47b3b1.3
mov ebx, dword [eax]
mov edx, dword [eax + 4]
jmp 0x47b402
movsd xmm0, qword [edx]
call fcn.004af237
jmp 0x47b3fd
mov ecx, dword [edx]
push 0
call fcn.004154e0
jmp 0x47b3fd
xorps xmm0, xmm0
movlpd qword [esp + 0x20], xmm0
mov edx, dword [esp + 0x24]
mov ebx, dword [esp + 0x20]
jmp 0x47b402
mov ecx, dword [edx]
call fcn.004151f0
mov ecx, dword [ebp + 0x18]
mov ebx, eax
cmp dword [ebp + 0x1c], 2
mov dword [esp + 0x14], edx
mov dword [esp + 0x18], ebx
jne 0x47b499
mov edx, dword [ecx + 8]
mov eax, dword [edx + 8]
dec eax
cmp eax, 5
ja case.0x47b420.3
jmp dword [eax*4 + 0x47bb38]
mov ecx, dword [edx]
mov eax, dword [edx + 4]
mov dword [esp + 0x10], ecx
mov dword [esp + 0x24], eax
jmp 0x47b4b5
mov eax, dword [edx + 4]
test eax, eax
je case.0x47b420.3
mov ecx, dword [eax]
mov eax, dword [eax + 4]
mov dword [esp + 0x10], ecx
mov dword [esp + 0x24], eax
jmp 0x47b4b5
movsd xmm0, qword [edx]
call fcn.004af237
mov dword [esp + 0x10], eax
mov dword [esp + 0x24], edx
jmp 0x47b4b5
mov ecx, dword [edx]
push 0
call fcn.004154e0
mov dword [esp + 0x10], eax
mov dword [esp + 0x24], edx
jmp 0x47b4b5
xorps xmm0, xmm0
movlpd qword [esp + 0x20], xmm0
mov eax, dword [esp + 0x20]
mov dword [esp + 0x10], eax
jmp 0x47b4b5
mov ecx, dword [edx]
call fcn.004151f0
mov dword [esp + 0x10], eax
mov dword [esp + 0x24], edx
jmp 0x47b4b5
test edx, edx
jg 0x47b4ad
jl 0x47b4a3
test ebx, ebx
jae 0x47b4ad
mov dword [esp + 0x10], 2
jmp 0x47b4b5
mov dword [esp + 0x10], 0
mov ebx, dword [ebp + 8]
add ebx, 8
mov eax, dword [ebx + 0x2c]
test eax, eax
je 0x47b4dd
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 0x47b4ef
mov ecx, dword [ebx + 8]
test ecx, ecx
je 0x47b4f6
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 + 0x10]
xor eax, eax
mov ecx, ebx
push dword [esp + 0x18]
mov word [ebx + 0x28], ax
mov eax, dword [ebx]
push dword [esp + 0x20]
mov eax, dword [eax + 0x14]
call eax
test al, al
jne 0x47b54b
mov eax, dword [0x4d98d8]
test byte [eax + 0x100], 1
jne case.0x47ab63.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 eax, eax
jne 0x47b5d3
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 0x47b5b8
cmp dword [esi + 0x10], 0
je 0x47b5b8
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 0x47b5bc
jg 0x47b5c0
cmp eax, ebx
jbe 0x47b5bc
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 eax, 1
jne case.0x47ab63.69
mov eax, dword [ebp + 0x18]
mov ecx, dword [eax + 4]
mov eax, dword [ecx + 8]
dec eax
cmp eax, 5
ja case.0x47b5eb.3
jmp dword [eax*4 + 0x47bb50]
mov esi, dword [ecx]
mov edx, dword [ecx + 4]
mov dword [esp + 0x14], esi
jmp 0x47b647
mov edx, dword [ecx + 4]
test edx, edx
je case.0x47b5eb.3
mov ecx, dword [edx]
mov edx, dword [edx + 4]
mov dword [esp + 0x14], ecx
jmp 0x47b647
movsd xmm0, qword [ecx]
call fcn.004af237
jmp 0x47b643
mov ecx, dword [ecx]
push 0
call fcn.004154e0
jmp 0x47b643
xorps xmm0, xmm0
movlpd qword [esp + 0x20], xmm0
mov ecx, dword [esp + 0x20]
mov edx, dword [esp + 0x24]
mov dword [esp + 0x14], ecx
jmp 0x47b647
mov ecx, dword [ecx]
call fcn.004151f0
mov dword [esp + 0x14], eax
mov ebx, dword [ebp + 8]
add ebx, 8
mov dword [esp + 0x10], edx
mov eax, dword [ebx + 0x2c]
test eax, eax
je 0x47b673
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 0x47b685
mov ecx, dword [ebx + 8]
test ecx, ecx
je 0x47b68c
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 esi, dword [ebx]
mov ecx, ebx
push 0
push dword [esp + 0x14]
mov dword [esp + 0x20], eax
push dword [esp + 0x1c]
mov esi, dword [esi + 0x14]
mov dword [esp + 0x2c], edx
call esi
test al, al
je 0x47b704
push dword [ebx + 0x34]
call dword [sym.imp.KERNEL32.dll_SetEndOfFile]
test eax, eax
je 0x47b704
mov edx, dword [esp + 0x20]
cmp dword [esp + 0x10], edx
jg 0x47b6e1
mov ecx, dword [esp + 0x14]
jl 0x47b6eb
mov eax, dword [esp + 0x18]
cmp ecx, eax
jae 0x47b6e5
jmp 0x47b6eb
mov eax, dword [esp + 0x18]
mov ecx, eax
mov dword [esp + 0x10], edx
mov eax, dword [ebx]
push 0
push dword [esp + 0x14]
push ecx
mov ecx, ebx
call dword [eax + 0x14]
mov eax, dword [ebx]
mov ecx, ebx
mov eax, dword [eax + 0x1c]
call eax
jmp 0x47b709
or eax, 0xffffffff
or edx, eax
mov dword [edi], eax
mov dword [edi + 4], edx
cmp eax, 0xffffffff
jne 0x47af95
cmp edx, eax
jne 0x47af95
mov dword [edi], 0x4b70dc
mov eax, dword [0x4d98d8]
mov dword [edi + 8], 0
test byte [eax + 0x100], 1
je 0x47af95
mov ecx, dword [0x4de2d4]
push 0x4b70dc
push str.FileObject
push 0x4ca34c
call fcn.0042fd40
mov eax, 1
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 0x18
test eax, eax
jne 0x47af95
mov esi, dword [ebp + 8]
mov ecx, dword [esi + 0x34]
test ecx, ecx
je 0x47b782
mov eax, dword [esi + 0x38]
add eax, dword [esi + 0x10]
cmp ecx, eax
jb 0x47b7c6
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 0x47b54b
jg 0x47b7a7
test ebx, ebx
jb 0x47b54b
mov eax, dword [esi + 8]
lea ecx, [esi + 8]
mov eax, dword [eax + 0x1c]
call eax
cmp dword [esp + 0x20], edx
jg 0x47b54b
jl 0x47b7c6
cmp ebx, eax
jae 0x47b54b
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 eax, eax
jne 0x47af95
mov ebx, dword [ebp + 8]
mov eax, dword [ebx + 0x34]
test eax, eax
je 0x47b819
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 0x47b82d
mov ecx, dword [ebx + 0x10]
test ecx, ecx
je 0x47b834
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 0x47b0e0
mov esi, dword [ebp + 8]
test eax, eax
jle 0x47b943
mov ebx, dword [ebp + 0x18]
mov ecx, dword [ebx + 4]
mov eax, dword [ecx + 8]
lea edx, [eax - 1]
cmp edx, 4
ja case.0x47b860.3
jmp dword [edx*4 + 0x47bb68]
mov ecx, dword [ecx]
push 0
call fcn.004153f0
jmp case.0x47b860.1
cmp dword [ecx + 4], 0
je 0x47b87f
mov eax, 1
jmp case.0x47b860.1
mov ecx, dword [ecx]
mov edx, 1
push 0
push 1
push 0
call fcn.0047c7e0
add esp, 0xc
jmp case.0x47b860.1
xor eax, eax
mov edx, dword [ebx + 4]
test eax, eax
mov eax, dword [edx + 8]
je 0x47b8ec
dec eax
cmp eax, 5
ja case.0x47b8a8.3
jmp dword [eax*4 + 0x47bb7c]
mov ecx, dword [edx]
jmp 0x47b917
mov eax, dword [edx + 4]
test eax, eax
je case.0x47b8a8.3
mov ecx, dword [eax]
jmp 0x47b917
movsd xmm0, qword [edx]
call fcn.004af237
jmp 0x47b915
mov ecx, dword [edx]
push 0
call fcn.004154e0
jmp 0x47b915
xorps xmm0, xmm0
movlpd qword [esp + 0x20], xmm0
mov ecx, dword [esp + 0x20]
jmp 0x47b917
mov ecx, dword [edx]
call fcn.004151f0
jmp 0x47b915
cmp eax, 5
ja case.0x47b8f1.1
jmp dword [eax*4 + 0x47bb94]
mov ecx, dword [edx]
push 0
push 1
call fcn.004014c0
jmp 0x47b90e
mov eax, dword [edx]
jmp 0x47b90e
mov eax, 0x4b70dc
mov ecx, eax
call fcn.00416370
mov ecx, eax
cmp ecx, 0xffffffff
je 0x47b943
and ecx, 0x7fffffff
cmove ecx, dword [0x4de97c]
cmp dword [esi + 0x18], ecx
je 0x47b943
lea eax, [esi + 0x1c]
mov dword [esi + 0x18], ecx
push eax
push ecx
call dword [sym.imp.KERNEL32.dll_GetCPInfo]
test eax, eax
jne 0x47b943
mov byte [esi + 0x22], al
mov ecx, dword [esi + 0x18]
cmp ecx, 0x4b0
je 0x47b9a1
cmp ecx, 0xfde9
je 0x47b985
mov esi, dword [edi + 4]
push 0xa
lea eax, [esi + 4]
mov dword [esi], 0x500043
push eax
push ecx
call fcn.0049956a
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 eax, eax
jne 0x47af95
mov esi, dword [ebp + 8]
mov ecx, dword [esi + 0x10]
test ecx, ecx
je 0x47b9e8
cmp dword [esi + 0x34], eax
jne 0x47b9e8
mov eax, dword [esi + 8]
push ecx
push dword [esi + 0x38]
lea ecx, [esi + 8]
call dword [eax + 0x10]
mov dword [esi + 0x10], 0
xor eax, eax
lea ecx, [esi + 8]
mov word [esi + 0x30], ax
mov eax, dword [esi + 8]
call dword [eax + 8]
mov eax, 1
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