Function at 0x49c4d0
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
mov edi, dword [ebp + 0xc]
test eax, eax
je 0x49d33f
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.0x49c4fb.1
jmp dword [eax*4 + 0x49d350]
mov ecx, dword [ebx]
push 0
push 1
call fcn.00401550
mov ebx, eax
jmp 0x49c51a
mov ebx, dword [ebx]
jmp 0x49c51a
mov ebx, 0x4d5231
push 4
push str.Read
push ebx
call fcn.004b653e
add esp, 0xc
test eax, eax
jne 0x49c55e
cmp byte [ebx + 4], 0
lea eax, [ebx + 4]
jne 0x49c541
mov esi, 1
jmp 0x49c6a3
push str.Line
push eax
call fcn.004b626e
add esp, 8
neg eax
sbb esi, esi
and esi, 2
add esi, 3
jmp 0x49c6a3
push 5
push str.Write
push ebx
call fcn.004b653e
add esp, 0xc
test eax, eax
jne 0x49c5a1
cmp byte [ebx + 5], 0
lea eax, [ebx + 5]
jne 0x49c585
mov esi, 2
jmp 0x49c6a3
push str.Line
push eax
call fcn.004b626e
add esp, 8
neg eax
sbb esi, esi
neg esi
add esi, 4
jmp 0x49c6a3
push str.RawRead
push ebx
call fcn.004b626e
add esp, 8
test eax, eax
jne 0x49c5bb
lea esi, [eax + 6]
jmp 0x49c6a3
push str.RawWrite
push ebx
call fcn.004b626e
add esp, 8
test eax, eax
jne 0x49c5d5
lea esi, [eax + 6]
jmp 0x49c6a3
push 0x4de678
push ebx
call fcn.004b626e
add esp, 8
test eax, eax
je 0x49c69e
push str.Length
push ebx
call fcn.004b626e
add esp, 8
test eax, eax
jne 0x49c605
lea esi, [eax + 9]
jmp 0x49c6a3
push str.AtEOF
push ebx
call fcn.004b626e
add esp, 8
test eax, eax
jne 0x49c61f
lea esi, [eax + 0xa]
jmp 0x49c6a3
push str.__Handle
push ebx
call fcn.004b626e
add esp, 8
test eax, eax
jne 0x49c636
lea esi, [eax + 0xb]
jmp 0x49c6a3
push str.Encoding
push ebx
call fcn.004b626e
add esp, 8
test eax, eax
jne 0x49c64d
lea esi, [eax + 0xc]
jmp 0x49c6a3
push str.Close
push ebx
call fcn.004b626e
add esp, 8
test eax, eax
jne 0x49c664
lea esi, [eax + 0xd]
jmp 0x49c6a3
push str.Position
push ebx
call fcn.004b626e
add esp, 8
test eax, eax
je 0x49c69e
push str.Seek
push ebx
call fcn.004b626e
add esp, 8
test eax, eax
je 0x49c69e
push str.Tell
push ebx
call fcn.004b626e
add esp, 8
test eax, eax
jne 0x49d33f
mov esi, 8
mov ecx, dword [ebp + 0x14]
test cl, 2
jne 0x49c6c4
cmp esi, 7
jb 0x49cc34
mov eax, dword [ebp + 0x1c]
and ecx, 1
cmp eax, ecx
jne 0x49cc34
jmp 0x49c6c7
mov eax, dword [ebp + 0x1c]
lea ecx, [esi - 1]
mov dword [edi + 8], 1
cmp ecx, 0xc
ja case.0x49c763.69
jmp dword [ecx*4 + 0x49d368]
mov al, byte [ebx]
cmp al, 0x52
je 0x49c6ef
cmp al, 0x72
je 0x49c6ef
xor al, al
jmp 0x49c6f1
mov al, 1
mov byte [esp + 0xf], al
lea esi, [ebx + 4]
movzx eax, al
xor eax, 1
add esi, eax
xor eax, eax
mov dword [esp + 0x10], eax
movzx ebx, byte [esi]
test ebx, 0xffffff80
jne 0x49c723
push 2
push ebx
call fcn.004b8e5e
add esp, 8
test eax, eax
je 0x49c723
and ebx, 0xffffffdf
cmp bl, 0x55
jne 0x49c729
inc esi
movzx eax, byte [esi]
mov dword [esp + 0x14], eax
test eax, 0xffffff80
jne 0x49c74d
push 2
push eax
call fcn.004b8e5e
add esp, 8
test eax, eax
mov eax, dword [esp + 0x14]
je 0x49c74d
and eax, 0xffffffdf
movsx eax, al
add eax, 0xffffffbd
cmp eax, 0x10
ja case.0x49c763.69
movzx eax, byte [eax + 0x49d3b8]
jmp dword [eax*4 + 0x49d39c]
push 0x36
push esi
call fcn.004b87b6
add esp, 8
neg eax
sbb esi, esi
and esi, 4
add esi, 4
xor edx, edx
jmp 0x49c7b7
mov esi, 2
xor edx, edx
jmp 0x49c7b7
mov esi, 1
xor edx, edx
jmp 0x49c7b7
xor edx, edx
jmp 0x49c7b2
mov edx, 1
mov esi, 8
mov dword [esp + 0x10], edx
jmp 0x49c7b7
mov edx, 1
mov dword [esp + 0x10], edx
mov esi, 4
cmp byte [esp + 0xf], 0
je 0x49c8a6
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.0049bde0
test eax, eax
je case.0x49c763.69
cmp dword [esp + 0x10], 0
je 0x49c82f
cmp esi, 4
jne 0x49c810
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 bl, 0x55
je 0x49c88b
sub esi, 1
je 0x49c872
sub esi, 1
je 0x49c859
sub esi, 2
jne 0x49c88b
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.0x49c763.69
mov eax, dword [ebp + 0x18]
mov ecx, dword [eax + 4]
test edx, edx
je 0x49c91d
mov eax, dword [ecx + 8]
dec eax
cmp eax, 5
ja case.0x49c8c3.3
jmp dword [eax*4 + 0x49d3cc]
mov edx, dword [ecx + 4]
mov ecx, dword [ecx]
call fcn.004cdd90
jmp 0x49c906
movsd xmm0, qword [ecx]
jmp 0x49c906
mov ecx, dword [ecx]
push 0
call fcn.004213d0
jmp 0x49c906
mov eax, dword [ecx + 4]
test eax, eax
je case.0x49c8c3.3
mov edx, dword [eax + 4]
mov ecx, dword [eax]
call fcn.004cdd90
jmp 0x49c906
xorps xmm0, xmm0
jmp 0x49c906
mov ecx, dword [ecx]
call fcn.00421050
movsd qword [esp + 0x20], xmm0
cmp esi, 4
jne 0x49c97c
cvtsd2ss xmm0, xmm0
movss dword [esp + 0x20], xmm0
jmp 0x49c97c
cmp esi, 8
jne 0x49c96d
cmp bl, 0x55
jne 0x49c96d
mov eax, dword [ecx + 8]
cmp eax, 1
je 0x49c96d
cmp eax, 2
je 0x49c96d
cmp eax, 5
ja case.0x49c939.1
jmp dword [eax*4 + 0x49d3e4]
mov ecx, dword [ecx]
push 0
push 1
call fcn.00401550
mov ecx, eax
call fcn.004404a0
jmp 0x49c974
mov eax, dword [ecx]
mov ecx, eax
call fcn.004404a0
jmp 0x49c974
mov eax, 0x4d5231
mov ecx, eax
call fcn.004404a0
jmp 0x49c974
xor edx, edx
call fcn.004683f0
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.0049c1c0
test eax, eax
jne 0x49c9a4
mov ecx, dword [0x4e88cc]
test byte [ecx + 0xe0], 1
jne case.0x49c763.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.0x49c763.69
mov ebx, dword [ebp + 8]
test eax, eax
je 0x49c9df
mov eax, dword [ebp + 0x18]
xor edx, edx
mov ecx, dword [eax + 4]
call fcn.004683f0
mov esi, eax
jmp 0x49ca7f
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 + 0x10], edx
jne 0x49ca2f
cmp dword [ebx + 8], 0
je 0x49ca2f
mov eax, dword [ebx]
mov ecx, ebx
mov eax, dword [eax + 0x18]
call eax
mov ecx, dword [esp + 0x10]
mov esi, eax
add esi, dword [ebx + 8]
adc edx, 0
cmp edx, ecx
jl 0x49ca29
jg 0x49ca23
mov eax, dword [esp + 0x14]
cmp esi, eax
jbe 0x49ca33
mov dword [esp + 0x24], edx
jmp 0x49ca39
mov eax, dword [esp + 0x14]
jmp 0x49ca33
mov ecx, dword [esp + 0x10]
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 0x49ca5b
or eax, ecx
mov dword [esp + 0x24], ecx
jmp 0x49ca7a
mov eax, dword [ebx + 0x2c]
test eax, eax
je 0x49ca6a
sub eax, dword [ebx + 0x30]
sub eax, dword [ebx + 8]
jmp 0x49ca6d
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.0x49c763.69
cmp esi, 0xff
ja 0x49ca95
mov eax, dword [edi + 4]
jmp 0x49caaf
lea eax, [esi + 1]
push eax
call fcn.004b6720
add esp, 4
mov dword [edi + 0xc], eax
test eax, eax
je case.0x49c763.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.0049b9c0
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 eax, eax
jne case.0x49c763.69
push 0x10001
call fcn.004b6720
add esp, 4
mov dword [edi + 0xc], eax
test eax, eax
je case.0x49c763.69
mov ecx, dword [ebp + 8]
push 1
mov dword [edi + 4], 0x10000
mov dword [edi], eax
push 0xffff
mov byte [eax + 0x10000], 0
lea ecx, [ecx + 8]
push dword [edi]
call fcn.0049b9c0
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
cmp eax, 1
jg case.0x49c763.69
xor ecx, ecx
xor ebx, ebx
mov dword [esp + 0x14], ecx
test eax, eax
je 0x49cbe9
mov ebx, dword [ebp + 0x18]
mov edx, dword [edi + 4]
mov ecx, dword [ebx + 4]
call fcn.004684b0
mov ebx, dword [ebx + 4]
mov edx, eax
mov dword [esp + 0x18], edx
cmp dword [ebx + 8], 4
jne 0x49cbbe
mov ebx, dword [ebx]
mov cl, byte [ebx + 0x17]
test cl, cl
jne 0x49cb89
mov eax, dword [ebx + 0xc]
mov al, byte [eax + 0x15]
jmp 0x49cb8c
mov al, byte [ebx + 0x15]
test al, 1
jne 0x49cbbe
test cl, cl
jne 0x49cb97
mov ebx, dword [ebx + 0xc]
cmp byte [ebx + 0x17], 1
jne 0x49cbb5
test byte [ebx + 0x15], 8
je 0x49cbae
mov ecx, ebx
call fcn.004013b0
mov edx, dword [esp + 0x18]
add ebx, 0xc
mov ebx, dword [ebx]
jmp 0x49cbcc
mov ebx, 0x4ef2a8
mov ebx, dword [ebx]
jmp 0x49cbcc
mov ebx, edx
lea ecx, [ebx + 1]
mov al, byte [ebx]
inc ebx
test al, al
jne 0x49cbc3
sub ebx, ecx
mov ecx, dword [ebp + 8]
push ebx
add ecx, 8
push edx
mov dword [esp + 0x20], ecx
call fcn.0049bf80
mov ecx, eax
mov eax, dword [esp + 0x18]
mov dword [esp + 0x14], ecx
jmp 0x49cbef
mov eax, dword [ebp + 8]
add eax, 8
cmp esi, 4
jne 0x49cc11
test ecx, ecx
jne 0x49cbfc
test ebx, ebx
jne 0x49cc19
push 1
push 0x4df27c
mov ecx, eax
inc ebx
call fcn.0049bf80
mov ecx, dword [esp + 0x14]
add ecx, eax
test ecx, ecx
jne 0x49cc2b
test ebx, ebx
je 0x49cc2b
mov eax, dword [0x4e88cc]
test byte [eax + 0xe0], 1
jne case.0x49c763.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.0x49c763.69
mov al, byte [ebx + 3]
cmp al, 0x52
je 0x49cc5b
mov byte [esp + 0xf], 0
cmp al, 0x72
jne 0x49cc60
mov byte [esp + 0xf], 1
mov eax, dword [ebp + 0x18]
xor edx, edx
mov ecx, dword [eax + 8]
mov esi, dword [eax + 4]
call fcn.004683f0
cmp dword [esi + 8], 4
mov ebx, eax
jne 0x49cd68
mov ecx, dword [esi]
cmp byte [ecx + 0x17], 0
jne 0x49cc89
mov eax, dword [ecx + 0xc]
jmp 0x49cc8b
mov eax, ecx
cmp byte [eax + 0x17], 2
jne 0x49cc98
mov eax, dword [0x4ed828]
jmp 0x49cc9b
mov eax, dword [eax + 0x10]
cmp ebx, eax
jbe 0x49cce3
cmp byte [esp + 0xf], 0
je 0x49ccb6
push 0
push 0
push ebx
push 0
call fcn.004a2730
test eax, eax
jne 0x49cce3
mov eax, dword [0x4e88cc]
test byte [eax + 0xe0], 1
jne case.0x49c763.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 0x49ccee
mov esi, dword [esi + 0xc]
test byte [esi + 0x15], 8
je 0x49ccfb
mov ecx, esi
call fcn.004013b0
mov al, byte [esi + 0x17]
cmp al, 1
jne 0x49cd13
test byte [esi + 0x15], 4
je 0x49cd0e
push esi
call fcn.0043f490
mov ecx, dword [esi + 8]
jmp 0x49cd73
cmp al, 2
jne 0x49cd61
mov ecx, dword [0x4ed820]
test ecx, ecx
jne 0x49cd73
mov esi, dword [sym.imp.USER32.dll_IsClipboardFormatAvailable]
push 1
call esi
test eax, eax
jne 0x49cd44
push 0xf
call esi
test eax, eax
mov ecx, 0x4d522c
mov edx, 0x4d5231
cmove ecx, edx
jmp 0x49cd73
push 0
mov ecx, 0x4ed814
call fcn.004053d0
cmp eax, 0xffffffff
mov ecx, 0x4d5231
cmovne ecx, dword [0x4ed81c]
jmp 0x49cd73
mov ecx, 0x4ec1bf
jmp 0x49cd73
xor edx, edx
mov ecx, esi
call fcn.004683f0
mov ecx, eax
cmp ecx, 0x10000
jae 0x49cd82
xor ecx, ecx
jmp 0x49cc15
cmp byte [esp + 0xf], 0
mov eax, dword [ebp + 8]
push ebx
push ecx
lea ecx, [eax + 8]
je 0x49cd9d
call fcn.0049bde0
mov ecx, eax
jmp 0x49cc11
call fcn.0049c1c0
mov ecx, eax
jmp 0x49cc11
test eax, eax
jne 0x49ce25
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 0x49cde1
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 0x49ce08
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.0x49c763.69
mov ebx, dword [ebp + 0x18]
xor edx, edx
mov ecx, dword [ebx + 4]
call fcn.004683f0
cmp dword [ebp + 0x1c], 2
mov ecx, eax
mov dword [esp + 0x14], ecx
mov dword [esp + 0x18], edx
jne 0x49ce5b
mov ecx, dword [ebx + 8]
xor edx, edx
call fcn.004683f0
mov dword [esp + 0x10], eax
jmp 0x49ce77
test edx, edx
jg 0x49ce6f
jl 0x49ce65
test ecx, ecx
jae 0x49ce6f
mov dword [esp + 0x10], 2
jmp 0x49ce77
mov dword [esp + 0x10], 0
mov ebx, dword [ebp + 8]
add ebx, 8
mov eax, dword [ebx + 0x2c]
test eax, eax
je 0x49ce9f
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 0x49ceb1
mov ecx, dword [ebx + 8]
test ecx, ecx
je 0x49ceb8
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]
mov eax, dword [ebx]
mov ecx, ebx
push dword [esp + 0x1c]
mov byte [ebx + 0x28], 0
push dword [esp + 0x1c]
mov eax, dword [eax + 0x14]
call eax
test al, al
jne 0x49cf0b
mov eax, dword [0x4e88cc]
test byte [eax + 0xe0], 1
jne case.0x49c763.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 0x49cf93
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 + 0x10], edx
jne 0x49cf78
cmp dword [esi + 0x10], 0
je 0x49cf78
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 + 0x10]
adc edx, 0
cmp edx, ecx
jl 0x49cf7c
jg 0x49cf80
cmp eax, ebx
jbe 0x49cf7c
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 + 0x10]
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.0x49c763.69
mov eax, dword [ebp + 0x18]
xor edx, edx
mov ebx, dword [ebp + 8]
add ebx, 8
mov ecx, dword [eax + 4]
call fcn.004683f0
mov dword [esp + 0x10], eax
mov eax, dword [ebx + 0x2c]
mov dword [esp + 0x14], edx
test eax, eax
je 0x49cfd9
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 0x49cfeb
mov ecx, dword [ebx + 8]
test ecx, ecx
je 0x49cff2
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 ecx, dword [ebx]
push 0
push dword [esp + 0x18]
mov dword [esp + 0x20], eax
mov esi, dword [ecx + 0x14]
mov ecx, ebx
push dword [esp + 0x18]
mov dword [esp + 0x28], edx
call esi
test al, al
je 0x49d083
push dword [ebx + 0x34]
call dword [sym.imp.KERNEL32.dll_SetEndOfFile]
test eax, eax
je 0x49d083
mov eax, dword [ebx]
mov ecx, dword [esp + 0x14]
mov esi, dword [esp + 0x1c]
mov eax, dword [eax + 0x14]
mov dword [esp + 0x20], eax
cmp ecx, esi
jg 0x49d050
mov eax, dword [esp + 0x10]
jl 0x49d058
mov edx, dword [esp + 0x18]
cmp eax, edx
jae 0x49d054
jmp 0x49d058
mov edx, dword [esp + 0x18]
mov eax, edx
mov ecx, esi
push 0
push ecx
push eax
mov ecx, ebx
call dword [esp + 0x2c]
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 0x49cc34
cmp edx, eax
jne 0x49cc34
jmp 0x49d090
mov dword [edi], 0xffffffff
mov dword [edi + 4], 0xffffffff
mov dword [edi], 0x4d5231
mov eax, dword [0x4e88cc]
mov dword [edi + 8], 0
test byte [eax + 0xe0], 1
je 0x49cc34
mov ecx, dword [0x4edbbc]
push 0x4d5231
push str.FileObject
push 0x4d9c00
call fcn.0043e650
mov eax, 1
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 0x18
test eax, eax
jne 0x49cc34
mov esi, dword [ebp + 8]
mov ecx, dword [esi + 0x34]
test ecx, ecx
je 0x49d0f3
mov eax, dword [esi + 0x38]
add eax, dword [esi + 0x10]
cmp ecx, eax
jb 0x49d137
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 0x49cf0b
jg 0x49d118
test ebx, ebx
jb 0x49cf0b
mov eax, dword [esi + 8]
lea ecx, [esi + 8]
mov eax, dword [eax + 0x1c]
call eax
cmp dword [esp + 0x20], edx
jg 0x49cf0b
jl 0x49d137
cmp ebx, eax
jae 0x49cf0b
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 0x49cc34
mov ebx, dword [ebp + 8]
mov eax, dword [ebx + 0x34]
test eax, eax
je 0x49d18a
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 0x49d19e
mov ecx, dword [ebx + 0x10]
test ecx, ecx
je 0x49d1a5
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 0x49cc2d
mov esi, dword [ebp + 8]
test eax, eax
jle 0x49d277
mov ebx, dword [ebp + 0x18]
mov ecx, dword [ebx + 4]
mov edx, dword [ecx + 8]
lea eax, [edx - 1]
cmp eax, 4
ja case.0x49d1cf.3
jmp dword [eax*4 + 0x49d3fc]
mov ecx, dword [ecx]
push 0
call fcn.004211d0
jmp 0x49d207
cmp dword [ecx + 4], 0
je 0x49d1f2
mov eax, ecx
xor edx, edx
call fcn.004683f0
jmp 0x49d249
mov ecx, dword [ecx]
mov edx, 1
push 0
push 1
push 0
call fcn.0049df30
add esp, 0xc
mov edx, eax
mov eax, dword [ebx + 4]
test edx, edx
je 0x49d21d
xor edx, edx
mov ecx, eax
call fcn.004683f0
jmp 0x49d249
mov eax, ecx
mov ecx, dword [eax + 8]
cmp ecx, 5
ja case.0x49d225.1
jmp dword [ecx*4 + 0x49d410]
mov ecx, dword [eax]
push 0
push 1
call fcn.00401550
jmp 0x49d242
mov eax, dword [eax]
jmp 0x49d242
mov eax, 0x4d5231
mov ecx, eax
call fcn.00422210
mov ecx, eax
cmp ecx, 0xffffffff
je 0x49d277
and ecx, 0x7fffffff
cmove ecx, dword [0x4ee030]
cmp dword [esi + 0x18], ecx
je 0x49d277
lea eax, [esi + 0x1c]
mov dword [esi + 0x18], ecx
push eax
push ecx
call dword [sym.imp.KERNEL32.dll_GetCPInfo]
test eax, eax
jne 0x49d277
mov byte [esi + 0x22], al
mov ecx, dword [esi + 0x18]
cmp ecx, 0x4b0
je 0x49d2d4
cmp ecx, 0xfde9
je 0x49d2b8
mov esi, dword [edi + 4]
push 0xa
lea eax, [esi + 2]
mov word [esi], 0x5043
push eax
push ecx
call fcn.004b6198
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 0x49d324
mov esi, dword [ebp + 8]
mov ecx, dword [esi + 0x10]
test ecx, ecx
je 0x49d317
cmp dword [esi + 0x34], eax
jne 0x49d317
mov eax, dword [esi + 8]
push ecx
push dword [esi + 0x38]
lea ecx, [esi + 8]
call dword [eax + 0x10]
mov dword [esi + 0x10], 0
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], 0x4d5231
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