Function at 0x4ae460
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 0x4af5d2
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.0x4ae48b.1
jmp dword [eax*4 + 0x4af5e0]
mov ecx, dword [esi]
push 0
push 1
call fcn.00401690
mov esi, eax
mov dword [esp + 0x14], eax
jmp 0x4ae4b2
mov esi, dword [esi]
jmp 0x4ae4ae
mov esi, 0x4cec30
mov dword [esp + 0x14], esi
push 4
push str.Read
push esi
call dword [sym.imp.api_ms_win_crt_string_l1_1_0.dll__wcsnicmp]
add esp, 0xc
test eax, eax
jne 0x4ae4f5
add esi, 8
cmp word [esi], ax
jne 0x4ae4d7
lea esi, [eax + 1]
jmp 0x4ae644
push str.Line
push esi
call dword [sym.imp.api_ms_win_crt_string_l1_1_0.dll__wcsicmp]
add esp, 8
neg eax
sbb esi, esi
and esi, 2
add esi, 3
jmp 0x4ae644
push 5
push str.Write
push esi
call dword [sym.imp.api_ms_win_crt_string_l1_1_0.dll__wcsnicmp]
add esp, 0xc
test eax, eax
jne 0x4ae537
add esi, 0xa
cmp word [esi], ax
jne 0x4ae51a
lea esi, [eax + 2]
jmp 0x4ae644
push str.Line
push esi
call dword [sym.imp.api_ms_win_crt_string_l1_1_0.dll__wcsicmp]
add esp, 8
neg eax
sbb esi, esi
neg esi
add esi, 4
jmp 0x4ae644
push str.RawRead
push esi
call dword [sym.imp.api_ms_win_crt_string_l1_1_0.dll__wcsicmp]
add esp, 8
test eax, eax
jne 0x4ae552
lea esi, [eax + 6]
jmp 0x4ae644
push str.RawWrite
push esi
call dword [sym.imp.api_ms_win_crt_string_l1_1_0.dll__wcsicmp]
add esp, 8
test eax, eax
jne 0x4ae56d
lea esi, [eax + 6]
jmp 0x4ae644
push 0x4e66e8
push esi
call dword [sym.imp.api_ms_win_crt_string_l1_1_0.dll__wcsicmp]
add esp, 8
test eax, eax
je 0x4ae63f
push str.Length
push esi
call dword [sym.imp.api_ms_win_crt_string_l1_1_0.dll__wcsicmp]
add esp, 8
test eax, eax
jne 0x4ae59f
lea esi, [eax + 9]
jmp 0x4ae644
push str.AtEOF
push esi
call dword [sym.imp.api_ms_win_crt_string_l1_1_0.dll__wcsicmp]
add esp, 8
test eax, eax
jne 0x4ae5ba
lea esi, [eax + 0xa]
jmp 0x4ae644
push str.__Handle
push esi
call dword [sym.imp.api_ms_win_crt_string_l1_1_0.dll__wcsicmp]
add esp, 8
test eax, eax
jne 0x4ae5d2
lea esi, [eax + 0xb]
jmp 0x4ae644
push str.Encoding
push esi
call dword [sym.imp.api_ms_win_crt_string_l1_1_0.dll__wcsicmp]
add esp, 8
test eax, eax
jne 0x4ae5ea
lea esi, [eax + 0xc]
jmp 0x4ae644
push str.Close
push esi
call dword [sym.imp.api_ms_win_crt_string_l1_1_0.dll__wcsicmp]
add esp, 8
test eax, eax
jne 0x4ae602
lea esi, [eax + 0xd]
jmp 0x4ae644
push str.Position
push esi
call dword [sym.imp.api_ms_win_crt_string_l1_1_0.dll__wcsicmp]
add esp, 8
test eax, eax
je 0x4ae63f
push str.Seek
push esi
call dword [sym.imp.api_ms_win_crt_string_l1_1_0.dll__wcsicmp]
add esp, 8
test eax, eax
je 0x4ae63f
push str.Tell
push esi
call dword [sym.imp.api_ms_win_crt_string_l1_1_0.dll__wcsicmp]
add esp, 8
test eax, eax
jne 0x4af5d2
mov esi, 8
mov eax, dword [ebp + 0x14]
test al, 2
jne 0x4ae65f
cmp esi, 7
jb 0x4aeb5a
and eax, 1
cmp ebx, eax
jne 0x4aeb5a
lea ecx, [edi + 8]
lea eax, [esi - 1]
mov dword [ecx], 1
mov dword [esp + 0x10], ecx
cmp eax, 0xc
ja case.0x4ae716.69
jmp dword [eax*4 + 0x4af5f8]
mov ecx, dword [esp + 0x14]
movzx eax, word [ecx]
cmp eax, 0x52
je 0x4ae694
cmp eax, 0x72
je 0x4ae694
xor al, al
jmp 0x4ae696
mov al, 1
mov byte [esp + 0xf], al
movzx eax, al
xor eax, 1
lea ecx, [ecx + eax*2]
xor eax, eax
add ecx, 8
mov dword [esp + 0x10], eax
mov dword [esp + 0x14], ecx
movzx esi, word [ecx]
test esi, 0xffffff80
jne 0x4ae6ce
push 2
push esi
call dword [sym.imp.api_ms_win_crt_string_l1_1_0.dll__isctype]
add esp, 8
test eax, eax
je 0x4ae6ce
and esi, 0xffffffdf
movzx eax, si
mov dword [esp + 0x18], eax
cmp eax, 0x55
mov eax, dword [esp + 0x14]
jne 0x4ae6e5
add eax, 2
mov dword [esp + 0x14], eax
movzx esi, word [eax]
test esi, 0xffffff80
jne 0x4ae703
push 2
push esi
call dword [sym.imp.api_ms_win_crt_string_l1_1_0.dll__isctype]
add esp, 8
test eax, eax
je 0x4ae703
and esi, 0xffffffdf
add esi, 0xffffffbd
cmp esi, 0x10
ja case.0x4ae716.69
movzx eax, byte [esi + 0x4af648]
jmp dword [eax*4 + 0x4af62c]
push 0x36
push dword [esp + 0x18]
call dword [sym.imp.VCRUNTIME140.dll_wcschr]
add esp, 8
neg eax
sbb esi, esi
and esi, 4
add esi, 4
xor edx, edx
jmp 0x4ae766
mov esi, 2
xor edx, edx
jmp 0x4ae76a
mov esi, 1
xor edx, edx
jmp 0x4ae76a
mov esi, 4
xor edx, edx
jmp 0x4ae76a
mov esi, 8
jmp 0x4ae761
mov esi, 4
mov edx, 1
mov dword [esp + 0x10], edx
cmp byte [esp + 0xf], 0
je 0x4ae85c
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.004addc0
test eax, eax
je case.0x4ae716.69
cmp dword [esp + 0x10], 0
je 0x4ae7e2
cmp esi, 4
jne 0x4ae7c3
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 0x4ae841
sub esi, 1
je 0x4ae828
sub esi, 1
je 0x4ae80f
sub esi, 2
jne 0x4ae841
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.0x4ae716.69
mov eax, dword [ebp + 0x18]
mov ecx, dword [eax + 4]
test edx, edx
je 0x4ae8d9
mov eax, dword [ecx + 8]
dec eax
cmp eax, 5
ja case.0x4ae878.3
jmp dword [eax*4 + 0x4af65c]
mov edx, dword [ecx + 4]
mov ecx, dword [ecx]
call fcn.004cca10
jmp 0x4ae8bb
movsd xmm0, qword [ecx]
jmp 0x4ae8bb
mov ecx, dword [ecx]
push 0
call fcn.0042aa40
jmp 0x4ae8bb
mov eax, dword [ecx + 4]
test eax, eax
je case.0x4ae878.3
mov edx, dword [eax + 4]
mov ecx, dword [eax]
call fcn.004cca10
jmp 0x4ae8bb
xorps xmm0, xmm0
jmp 0x4ae8bb
mov ecx, dword [ecx]
call fcn.0042a740
movsd qword [esp + 0x20], xmm0
cmp esi, 4
jne 0x4ae989
cvtsd2ss xmm0, xmm0
movss dword [esp + 0x20], xmm0
jmp 0x4ae989
cmp esi, 8
jne 0x4ae92c
cmp word [esp + 0x18], 0x55
jne 0x4ae92c
mov eax, dword [ecx + 8]
cmp eax, 1
je 0x4ae92c
cmp eax, 2
je 0x4ae92c
cmp eax, 5
ja case.0x4ae8f8.1
jmp dword [eax*4 + 0x4af674]
mov ecx, dword [ecx]
push 0
push 1
call fcn.00401690
mov ecx, eax
call fcn.0044f7c0
jmp 0x4ae981
mov eax, dword [ecx]
mov ecx, eax
call fcn.0044f7c0
jmp 0x4ae981
mov eax, 0x4cec30
mov ecx, eax
call fcn.0044f7c0
jmp 0x4ae981
mov eax, dword [ecx + 8]
dec eax
cmp eax, 5
ja case.0x4ae935.3
jmp dword [eax*4 + 0x4af68c]
mov eax, dword [ecx]
mov edx, dword [ecx + 4]
jmp 0x4ae981
mov edx, dword [ecx + 4]
test edx, edx
je case.0x4ae935.3
mov eax, dword [edx]
mov edx, dword [edx + 4]
jmp 0x4ae981
movsd xmm0, qword [ecx]
call fcn.004cc910
jmp 0x4ae981
mov ecx, dword [ecx]
push 0
call fcn.0042a980
jmp 0x4ae981
xorps xmm0, xmm0
movlpd qword [esp + 0x18], xmm0
mov edx, dword [esp + 0x1c]
mov eax, dword [esp + 0x18]
jmp 0x4ae981
mov ecx, dword [ecx]
call fcn.004051f0
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.004ae160
test eax, eax
jne 0x4ae9b1
mov ecx, dword [0x4f8174]
test byte [ecx + 0x100], 1
jne case.0x4ae716.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.0x4ae716.69
test ebx, ebx
je 0x4aea5e
mov eax, dword [ebp + 0x18]
mov ecx, dword [eax + 4]
mov eax, dword [ecx + 8]
dec eax
cmp eax, 5
ja case.0x4ae9e8.3
jmp dword [eax*4 + 0x4af6a4]
mov eax, dword [ecx + 4]
mov esi, dword [ecx]
mov dword [esp + 0x24], eax
jmp 0x4aeafd
mov eax, dword [ecx + 4]
test eax, eax
je case.0x4ae9e8.3
mov esi, dword [eax]
mov eax, dword [eax + 4]
mov dword [esp + 0x24], eax
jmp 0x4aeafd
movsd xmm0, qword [ecx]
call fcn.004cc910
mov esi, eax
mov dword [esp + 0x24], edx
jmp 0x4aeafd
mov ecx, dword [ecx]
push 0
call fcn.0042a980
mov esi, eax
mov dword [esp + 0x24], edx
jmp 0x4aeafd
xorps xmm0, xmm0
movlpd qword [esp + 0x20], xmm0
mov esi, dword [esp + 0x20]
jmp 0x4aeafd
mov ecx, dword [ecx]
call fcn.004051f0
mov esi, eax
mov dword [esp + 0x24], edx
jmp 0x4aeafd
mov ebx, dword [ebp + 8]
add ebx, 8
mov ecx, ebx
mov eax, dword [ebx]
mov eax, dword [eax + 0x1c]
call eax
cmp dword [ebx + 0x2c], 0
mov dword [esp + 0x18], eax
mov dword [esp + 0x14], edx
jne 0x4aeab0
cmp dword [ebx + 8], 0
je 0x4aeab0
mov eax, dword [ebx]
mov ecx, ebx
mov eax, dword [eax + 0x18]
call eax
mov ecx, dword [esp + 0x14]
mov esi, eax
add esi, dword [ebx + 8]
adc edx, 0
cmp edx, ecx
jl 0x4aeaaa
jg 0x4aeaa4
mov eax, dword [esp + 0x18]
cmp esi, eax
jbe 0x4aeab4
mov dword [esp + 0x24], edx
jmp 0x4aeaba
mov eax, dword [esp + 0x18]
jmp 0x4aeab4
mov ecx, dword [esp + 0x14]
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 + 0x20], eax
and ecx, edx
mov dword [esp + 0x18], edx
cmp ecx, 0xffffffff
jne 0x4aeadc
or eax, ecx
mov dword [esp + 0x24], ecx
jmp 0x4aeafb
mov eax, dword [ebx + 0x2c]
test eax, eax
je 0x4aeaeb
sub eax, dword [ebx + 0x30]
sub eax, dword [ebx + 8]
jmp 0x4aeaee
mov eax, dword [ebx + 8]
cdq
add eax, dword [esp + 0x20]
adc edx, dword [esp + 0x18]
mov dword [esp + 0x24], edx
sub esi, eax
cmp esi, 0xffffffff
je case.0x4ae716.69
lea ebx, [esi + esi]
cmp esi, 0xff
ja 0x4aeb16
mov eax, dword [edi + 4]
jmp 0x4aeb31
lea eax, [ebx + 2]
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.0x4ae716.69
mov dword [edi + 4], esi
xor ecx, ecx
mov dword [edi], eax
push ecx
mov word [ebx + eax], cx
push esi
mov ecx, dword [ebp + 8]
push dword [edi]
lea ecx, [ecx + 8]
call fcn.004ada50
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.0x4ae716.69
push 0x20002
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.0x4ae716.69
mov dword [edi + 4], 0x10000
xor ecx, ecx
push 1
mov dword [edi], eax
mov word [eax + 0x20000], cx
push 0xffff
jmp 0x4aeb3b
cmp ebx, 1
jg case.0x4ae716.69
xor ecx, ecx
xor ebx, ebx
mov dword [esp + 0x18], ecx
cmp dword [ebp + 0x1c], ecx
je 0x4aec5c
mov ebx, dword [ebp + 0x18]
mov edx, dword [edi + 4]
mov ecx, dword [ebx + 4]
call fcn.00479b50
mov ebx, dword [ebx + 4]
mov edx, eax
mov dword [esp + 0x20], edx
cmp dword [ebx + 8], 4
jne 0x4aec25
mov ebx, dword [ebx]
mov cl, byte [ebx + 0x17]
test cl, cl
jne 0x4aebec
mov eax, dword [ebx + 0xc]
mov al, byte [eax + 0x15]
jmp 0x4aebef
mov al, byte [ebx + 0x15]
test al, 1
jne 0x4aec25
test cl, cl
jne 0x4aebfa
mov ebx, dword [ebx + 0xc]
cmp byte [ebx + 0x17], 1
jne 0x4aec1a
test byte [ebx + 0x15], 8
je 0x4aec11
mov ecx, ebx
call fcn.004014f0
mov edx, dword [esp + 0x20]
add ebx, 0xc
mov ebx, dword [ebx]
shr ebx, 1
jmp 0x4aec3f
mov ebx, 0x4feb88
mov ebx, dword [ebx]
shr ebx, 1
jmp 0x4aec3f
mov ebx, edx
lea ecx, [ebx + 2]
nop word [eax + eax]
mov ax, word [ebx]
add ebx, 2
test ax, ax
jne 0x4aec30
sub ebx, ecx
sar ebx, 1
mov ecx, dword [ebp + 8]
push ebx
add ecx, 8
push edx
mov dword [esp + 0x28], ecx
call fcn.004adf70
mov ecx, eax
mov eax, dword [esp + 0x20]
mov dword [esp + 0x18], ecx
jmp 0x4aec62
mov eax, dword [ebp + 8]
add eax, 8
cmp esi, 4
jne 0x4aec84
test ecx, ecx
jne 0x4aec6f
test ebx, ebx
jne 0x4aec8c
push 1
push 0x4edefc
mov ecx, eax
inc ebx
call fcn.004adf70
mov ecx, dword [esp + 0x18]
add ecx, eax
test ecx, ecx
jne 0x4aec9e
test ebx, ebx
je 0x4aec9e
mov eax, dword [0x4f8174]
test byte [eax + 0x100], 1
jne case.0x4ae716.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.0x4ae716.69
mov ecx, dword [esp + 0x14]
movzx eax, word [ecx + 6]
cmp eax, 0x52
je 0x4aecd5
mov byte [esp + 0xf], 0
cmp eax, 0x72
jne 0x4aecda
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.0x4aecec.3
jmp dword [eax*4 + 0x4af6bc]
mov eax, dword [ecx + 4]
mov ebx, dword [ecx]
mov dword [esp + 0x24], eax
jmp 0x4aed42
mov eax, dword [ecx + 4]
test eax, eax
je case.0x4aecec.3
mov ebx, dword [eax]
mov eax, dword [eax + 4]
mov dword [esp + 0x24], eax
jmp 0x4aed42
movsd xmm0, qword [ecx]
call fcn.004cc910
jmp 0x4aed3c
mov ecx, dword [ecx]
push 0
call fcn.0042a980
jmp 0x4aed3c
xorps xmm0, xmm0
movlpd qword [esp + 0x20], xmm0
mov ebx, dword [esp + 0x20]
jmp 0x4aed42
mov ecx, dword [ecx]
call fcn.004051f0
mov ebx, eax
mov dword [esp + 0x24], edx
mov eax, dword [esi + 8]
cmp eax, 4
jne 0x4aee47
mov ecx, dword [esi]
cmp byte [ecx + 0x17], 0
jne 0x4aed5b
mov eax, dword [ecx + 0xc]
jmp 0x4aed5d
mov eax, ecx
cmp byte [eax + 0x17], 2
jne 0x4aed6a
mov eax, dword [0x4fd784]
jmp 0x4aed6d
mov eax, dword [eax + 0x10]
cmp ebx, eax
jbe 0x4aedc0
cmp byte [esp + 0xf], 0
je 0x4aed93
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.004b4bf0
test eax, eax
jne 0x4aedc0
mov eax, dword [0x4f8174]
test byte [eax + 0x100], 1
jne case.0x4ae716.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 0x4aedcb
mov esi, dword [esi + 0xc]
test byte [esi + 0x15], 8
je 0x4aedd8
mov ecx, esi
call fcn.004014f0
mov al, byte [esi + 0x17]
cmp al, 1
jne 0x4aedf3
test byte [esi + 0x15], 4
je 0x4aedeb
push esi
call fcn.0044e610
mov ecx, dword [esi + 8]
jmp 0x4aeea3
cmp al, 2
jne 0x4aee40
mov ecx, dword [0x4fd77c]
test ecx, ecx
jne 0x4aeea3
mov esi, dword [sym.imp.USER32.dll_IsClipboardFormatAvailable]
push 0xd
call esi
test eax, eax
jne 0x4aee28
push 0xf
call esi
test eax, eax
mov ecx, 0x4cec24
mov edx, 0x4cec30
cmove ecx, edx
jmp 0x4aeea3
push 0
call fcn.00406590
cmp eax, 0xffffffff
mov ecx, 0x4cec30
cmovne ecx, dword [0x4fd778]
jmp 0x4aeea3
mov ecx, 0x4fb624
jmp 0x4aeea3
dec eax
cmp eax, 5
ja case.0x4aee4d.3
jmp dword [eax*4 + 0x4af6d4]
mov eax, dword [esi + 4]
mov ecx, dword [esi]
mov dword [esp + 0x24], eax
jmp 0x4aeea3
mov eax, dword [esi + 4]
test eax, eax
je case.0x4aee4d.3
mov ecx, dword [eax]
mov eax, dword [eax + 4]
mov dword [esp + 0x24], eax
jmp 0x4aeea3
movsd xmm0, qword [esi]
call fcn.004cc910
jmp 0x4aee9d
mov ecx, dword [esi]
push 0
call fcn.0042a980
jmp 0x4aee9d
xorps xmm0, xmm0
movlpd qword [esp + 0x20], xmm0
mov ecx, dword [esp + 0x20]
jmp 0x4aeea3
mov ecx, dword [esi]
call fcn.004051f0
mov ecx, eax
mov dword [esp + 0x24], edx
cmp ecx, 0x10000
jae 0x4aeeb2
xor ecx, ecx
jmp 0x4aec88
cmp byte [esp + 0xf], 0
mov eax, dword [ebp + 8]
push ebx
push ecx
lea ecx, [eax + 8]
je 0x4aeecd
call fcn.004addc0
mov ecx, eax
jmp 0x4aec84
call fcn.004ae160
mov ecx, eax
jmp 0x4aec84
test ebx, ebx
jne 0x4aef55
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 + 0x20], eax
and ecx, eax
cmp ecx, 0xffffffff
jne 0x4aef11
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 0x4aef38
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 + 0x20]
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 + 0x20]
mov dword [edi + 4], edx
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 0x18
cmp ebx, 2
jg case.0x4ae716.69
mov ecx, dword [ebp + 0x18]
mov edx, dword [ecx + 4]
mov eax, dword [edx + 8]
dec eax
cmp eax, 5
ja case.0x4aef6d.3
jmp dword [eax*4 + 0x4af6ec]
mov eax, dword [edx]
mov edx, dword [edx + 4]
jmp 0x4aefbc
mov esi, dword [edx + 4]
test esi, esi
je case.0x4aef6d.3
mov eax, dword [esi]
mov edx, dword [esi + 4]
jmp 0x4aefbc
movsd xmm0, qword [edx]
call fcn.004cc910
jmp 0x4aefb9
mov ecx, dword [edx]
push 0
call fcn.0042a980
jmp 0x4aefb9
xorps xmm0, xmm0
movlpd qword [esp + 0x20], xmm0
mov edx, dword [esp + 0x24]
mov eax, dword [esp + 0x20]
jmp 0x4aefbc
mov ecx, dword [edx]
call fcn.004051f0
mov ecx, dword [ebp + 0x18]
mov dword [esp + 0x14], edx
mov dword [esp + 0x10], eax
cmp ebx, 2
jne 0x4af039
mov ecx, dword [ecx + 8]
mov eax, dword [ecx + 8]
dec eax
cmp eax, 5
ja case.0x4aefd5.3
jmp dword [eax*4 + 0x4af704]
mov eax, dword [ecx + 4]
mov ebx, dword [ecx]
mov dword [esp + 0x24], eax
jmp 0x4af04c
mov eax, dword [ecx + 4]
test eax, eax
je case.0x4aefd5.3
mov ebx, dword [eax]
mov eax, dword [eax + 4]
mov dword [esp + 0x24], eax
jmp 0x4af04c
movsd xmm0, qword [ecx]
call fcn.004cc910
mov ebx, eax
mov dword [esp + 0x24], edx
jmp 0x4af04c
mov ecx, dword [ecx]
push 0
call fcn.0042a980
mov ebx, eax
mov dword [esp + 0x24], edx
jmp 0x4af04c
xorps xmm0, xmm0
movlpd qword [esp + 0x20], xmm0
mov ebx, dword [esp + 0x20]
jmp 0x4af04c
mov ecx, dword [ecx]
call fcn.004051f0
mov ebx, eax
mov dword [esp + 0x24], edx
jmp 0x4af04c
test edx, edx
jg 0x4af04a
jl 0x4af043
test eax, eax
jae 0x4af04a
mov ebx, 2
jmp 0x4af04c
xor ebx, ebx
mov esi, dword [ebp + 8]
add esi, 8
mov dword [esp + 0x18], esi
mov edx, dword [esi + 0x2c]
lea eax, [esi + 8]
mov dword [esp + 0x20], eax
lea ecx, [esi + 0x30]
test edx, edx
je 0x4af094
sub edx, dword [eax]
sub edx, dword [ecx]
mov esi, dword [esi]
mov eax, edx
mov ecx, dword [esp + 0x18]
push 1
cdq
push edx
push eax
call dword [esi + 0x14]
mov esi, dword [esp + 0x18]
lea eax, [esi + 8]
mov dword [eax], 0
mov dword [esi + 0x2c], 0
lea ecx, [esi + 0x30]
jmp 0x4af098
mov dword [esp + 0x20], eax
mov edx, dword [eax]
test edx, edx
je 0x4af0b2
mov eax, dword [esi]
push edx
push dword [ecx]
mov ecx, esi
call dword [eax + 0x10]
mov eax, dword [esp + 0x20]
mov dword [eax], 0
xor eax, eax
mov ecx, esi
mov word [esi + 0x28], ax
mov eax, dword [esi]
push ebx
push dword [esp + 0x18]
push dword [esp + 0x18]
mov eax, dword [eax + 0x14]
call eax
test al, al
jne 0x4af104
mov eax, dword [0x4f8174]
test byte [eax + 0x100], 1
jne case.0x4ae716.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 0x4af18c
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 + 0x14], edx
jne 0x4af171
cmp dword [esi + 0x10], 0
je 0x4af171
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 + 0x14]
adc edx, 0
cmp edx, ecx
jl 0x4af175
jg 0x4af179
cmp eax, ebx
jbe 0x4af175
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 + 0x14]
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.0x4ae716.69
mov eax, dword [ebp + 0x18]
mov ecx, dword [eax + 4]
mov eax, dword [ecx + 8]
dec eax
cmp eax, 5
ja case.0x4af1a4.3
jmp dword [eax*4 + 0x4af71c]
mov esi, dword [ecx]
mov edx, dword [ecx + 4]
mov dword [esp + 0x14], esi
jmp 0x4af200
mov edx, dword [ecx + 4]
test edx, edx
je case.0x4af1a4.3
mov ecx, dword [edx]
mov edx, dword [edx + 4]
mov dword [esp + 0x14], ecx
jmp 0x4af200
movsd xmm0, qword [ecx]
call fcn.004cc910
jmp 0x4af1fc
mov ecx, dword [ecx]
push 0
call fcn.0042a980
jmp 0x4af1fc
xorps xmm0, xmm0
movlpd qword [esp + 0x20], xmm0
mov ecx, dword [esp + 0x20]
mov edx, dword [esp + 0x24]
mov dword [esp + 0x14], ecx
jmp 0x4af200
mov ecx, dword [ecx]
call fcn.004051f0
mov dword [esp + 0x14], eax
mov ebx, dword [ebp + 8]
add ebx, 8
mov dword [esp + 0x10], edx
mov edx, dword [ebx + 0x2c]
lea eax, [ebx + 8]
mov dword [esp + 0x20], eax
lea ecx, [ebx + 0x30]
test edx, edx
je 0x4af242
sub edx, dword [ecx]
mov ecx, ebx
sub edx, dword [eax]
mov esi, dword [ebx]
mov eax, edx
push 1
cdq
push edx
push eax
call dword [esi + 0x14]
lea eax, [ebx + 8]
mov dword [ebx + 0x2c], 0
mov dword [eax], 0
lea ecx, [ebx + 0x30]
jmp 0x4af246
mov dword [esp + 0x20], eax
mov edx, dword [eax]
test edx, edx
je 0x4af260
mov eax, dword [ebx]
push edx
push dword [ecx]
mov ecx, ebx
call dword [eax + 0x10]
mov eax, dword [esp + 0x20]
mov dword [eax], 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 + 0x28], eax
push dword [esp + 0x1c]
mov esi, dword [esi + 0x14]
mov dword [esp + 0x24], edx
call esi
test al, al
je 0x4af2ee
push dword [ebx + 0x34]
call dword [sym.imp.KERNEL32.dll_SetEndOfFile]
test eax, eax
je 0x4af2ee
mov edx, dword [esp + 0x18]
cmp dword [esp + 0x10], edx
jg 0x4af2b5
mov ecx, dword [esp + 0x14]
jl 0x4af2bf
mov eax, dword [esp + 0x20]
cmp ecx, eax
jae 0x4af2b9
jmp 0x4af2bf
mov eax, dword [esp + 0x20]
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
mov dword [edi], eax
mov dword [edi + 4], edx
cmp eax, 0xffffffff
jne 0x4aeb5a
cmp edx, eax
jne 0x4aeb5a
jmp 0x4af2fb
mov dword [edi], 0xffffffff
mov dword [edi + 4], 0xffffffff
mov dword [edi], 0x4cec30
mov eax, dword [0x4f8174]
mov dword [edi + 8], 0
test byte [eax + 0x100], 1
je 0x4aeb5a
mov ecx, dword [0x4fd25c]
push 0x4cec30
push str.FileObject
push 0x4e513c
call fcn.0044d640
mov eax, 1
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 0x18
test ebx, ebx
jne 0x4aeb5a
mov esi, dword [ebp + 8]
mov ecx, dword [esi + 0x34]
test ecx, ecx
je 0x4af35e
mov eax, dword [esi + 0x38]
add eax, dword [esi + 0x10]
cmp ecx, eax
jb 0x4af3a2
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 0x4af104
jg 0x4af383
test ebx, ebx
jb 0x4af104
mov eax, dword [esi + 8]
lea ecx, [esi + 8]
mov eax, dword [eax + 0x1c]
call eax
cmp dword [esp + 0x20], edx
jg 0x4af104
jl 0x4af3a2
cmp ebx, eax
jae 0x4af104
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 0x4aeb5a
mov ebx, dword [ebp + 8]
mov edx, dword [ebx + 0x34]
lea eax, [ebx + 0x10]
mov dword [esp + 0x20], eax
lea ecx, [ebx + 0x38]
test edx, edx
je 0x4af40b
sub edx, dword [ecx]
lea ecx, [ebx + 8]
sub edx, dword [eax]
mov esi, dword [ebx + 8]
mov eax, edx
push 1
cdq
push edx
push eax
call dword [esi + 0x14]
lea eax, [ebx + 0x10]
mov dword [ebx + 0x34], 0
mov dword [eax], 0
lea ecx, [ebx + 0x38]
jmp 0x4af40f
mov dword [esp + 0x20], eax
mov edx, dword [eax]
test edx, edx
je 0x4af42b
mov eax, dword [ebx + 8]
push edx
push dword [ecx]
lea ecx, [ebx + 8]
call dword [eax + 0x10]
mov eax, dword [esp + 0x20]
mov dword [eax], 0
xor eax, eax
mov word [ebx + 0x30], ax
mov eax, dword [ebx + 0x3c]
mov dword [edi], eax
jmp 0x4aeca0
mov esi, dword [ebp + 8]
test ebx, ebx
jle 0x4af4fc
mov ebx, dword [ebp + 0x18]
mov ecx, dword [ebx + 4]
call fcn.00479a20
mov edx, dword [ebx + 4]
test eax, eax
mov eax, dword [edx + 8]
je 0x4af4a5
dec eax
cmp eax, 5
ja case.0x4af461.3
jmp dword [eax*4 + 0x4af734]
mov ecx, dword [edx]
jmp 0x4af4d0
mov eax, dword [edx + 4]
test eax, eax
je case.0x4af461.3
mov ecx, dword [eax]
jmp 0x4af4d0
movsd xmm0, qword [edx]
call fcn.004cc910
jmp 0x4af4ce
mov ecx, dword [edx]
push 0
call fcn.0042a980
jmp 0x4af4ce
xorps xmm0, xmm0
movlpd qword [esp + 0x20], xmm0
mov ecx, dword [esp + 0x20]
jmp 0x4af4d0
mov ecx, dword [edx]
call fcn.004051f0
jmp 0x4af4ce
cmp eax, 5
ja case.0x4af4aa.1
jmp dword [eax*4 + 0x4af74c]
mov ecx, dword [edx]
push 0
push 1
call fcn.00401690
jmp 0x4af4c7
mov eax, dword [edx]
jmp 0x4af4c7
mov eax, 0x4cec30
mov ecx, eax
call fcn.0042cf40
mov ecx, eax
cmp ecx, 0xffffffff
je 0x4af4fc
and ecx, 0x7fffffff
cmove ecx, dword [0x4fd920]
cmp dword [esi + 0x18], ecx
je 0x4af4fc
lea eax, [esi + 0x1c]
mov dword [esi + 0x18], ecx
push eax
push ecx
call dword [sym.imp.KERNEL32.dll_GetCPInfo]
test eax, eax
jne 0x4af4fc
mov byte [esi + 0x22], al
mov ecx, dword [esi + 0x18]
cmp ecx, 0x4b0
je 0x4af55b
cmp ecx, 0xfde9
je 0x4af53f
mov esi, dword [edi + 4]
push 0xa
lea eax, [esi + 4]
mov dword [esi], 0x500043
push eax
push ecx
call dword [sym.imp.api_ms_win_crt_convert_l1_1_0.dll__itow]
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 0x4af5b8
mov esi, dword [ebp + 8]
mov edx, dword [esi + 0x10]
test edx, edx
je 0x4af5a5
mov dword [esp + 0x10], ecx
cmp dword [esi + 0x34], ebx
jne 0x4af5a5
mov eax, dword [esi + 8]
lea ecx, [esi + 8]
push edx
push dword [esi + 0x38]
call dword [eax + 0x10]
lea ecx, [edi + 8]
mov dword [esi + 0x10], ebx
mov dword [esp + 0x10], ecx
xor eax, eax
lea ecx, [esi + 8]
mov word [esi + 0x30], ax
mov eax, dword [esi + 8]
call dword [eax + 8]
mov ecx, dword [esp + 0x10]
mov dword [ecx], 0
mov eax, 1
mov dword [edi], 0x4cec30
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