Function at 0x4af300
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 0x4b0464
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.0x4af32b.1
jmp dword [eax*4 + 0x4b0474]
mov ecx, dword [esi]
push 0
push 1
call fcn.004016b0
mov esi, eax
mov dword [esp + 0x14], eax
jmp 0x4af352
mov esi, dword [esi]
jmp 0x4af34e
mov esi, 0x4cfc40
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 0x4af395
add esi, 8
cmp word [esi], ax
jne 0x4af377
lea esi, [eax + 1]
jmp 0x4af4e4
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 0x4af4e4
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 0x4af3d7
add esi, 0xa
cmp word [esi], ax
jne 0x4af3ba
lea esi, [eax + 2]
jmp 0x4af4e4
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 0x4af4e4
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 0x4af3f2
lea esi, [eax + 6]
jmp 0x4af4e4
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 0x4af40d
lea esi, [eax + 6]
jmp 0x4af4e4
push 0x4e76e8
push esi
call dword [sym.imp.api_ms_win_crt_string_l1_1_0.dll__wcsicmp]
add esp, 8
test eax, eax
je 0x4af4df
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 0x4af43f
lea esi, [eax + 9]
jmp 0x4af4e4
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 0x4af45a
lea esi, [eax + 0xa]
jmp 0x4af4e4
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 0x4af472
lea esi, [eax + 0xb]
jmp 0x4af4e4
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 0x4af48a
lea esi, [eax + 0xc]
jmp 0x4af4e4
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 0x4af4a2
lea esi, [eax + 0xd]
jmp 0x4af4e4
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 0x4af4df
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 0x4af4df
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 0x4b0464
mov esi, 8
mov eax, dword [ebp + 0x14]
test al, 2
jne 0x4af4ff
cmp esi, 7
jb 0x4af9fa
and eax, 1
cmp ebx, eax
jne 0x4af9fa
lea eax, [esi - 1]
mov dword [edi + 8], 1
cmp eax, 0xc
ja case.0x4af5b1.69
jmp dword [eax*4 + 0x4b048c]
mov ecx, dword [esp + 0x14]
movzx eax, word [ecx]
cmp eax, 0x52
je 0x4af52e
cmp eax, 0x72
je 0x4af52e
xor al, al
jmp 0x4af530
mov al, 1
mov byte [esp + 0xf], 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 + 0x14], eax
mov dword [esp + 0x10], ecx
test esi, 0xffffff80
jne 0x4af569
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 0x4af569
and esi, 0xffffffdf
movzx eax, si
mov dword [esp + 0x18], eax
cmp eax, 0x55
mov eax, dword [esp + 0x14]
jne 0x4af580
add eax, 2
mov dword [esp + 0x14], eax
movzx esi, word [eax]
test esi, 0xffffff80
jne 0x4af59e
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 0x4af59e
and esi, 0xffffffdf
add esi, 0xffffffbd
cmp esi, 0x10
ja case.0x4af5b1.69
movzx eax, byte [esi + 0x4b04dc]
jmp dword [eax*4 + 0x4b04c0]
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 0x4af609
mov esi, 2
xor edx, edx
jmp 0x4af609
mov esi, 1
xor edx, edx
jmp 0x4af609
xor edx, edx
jmp 0x4af604
mov edx, 1
mov esi, 8
mov dword [esp + 0x10], edx
jmp 0x4af609
mov edx, 1
mov dword [esp + 0x10], edx
mov esi, 4
cmp byte [esp + 0xf], 0
je 0x4af6fb
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.004aec70
test eax, eax
je case.0x4af5b1.69
cmp dword [esp + 0x10], 0
je 0x4af681
cmp esi, 4
jne 0x4af662
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 0x4af6e0
sub esi, 1
je 0x4af6c7
sub esi, 1
je 0x4af6ae
sub esi, 2
jne 0x4af6e0
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.0x4af5b1.69
mov eax, dword [ebp + 0x18]
mov ecx, dword [eax + 4]
test edx, edx
je 0x4af778
mov eax, dword [ecx + 8]
dec eax
cmp eax, 5
ja case.0x4af717.3
jmp dword [eax*4 + 0x4b04f0]
mov edx, dword [ecx + 4]
mov ecx, dword [ecx]
call fcn.004cde40
jmp 0x4af75a
movsd xmm0, qword [ecx]
jmp 0x4af75a
mov ecx, dword [ecx]
push 0
call fcn.0042b080
jmp 0x4af75a
mov eax, dword [ecx + 4]
test eax, eax
je case.0x4af717.3
mov edx, dword [eax + 4]
mov ecx, dword [eax]
call fcn.004cde40
jmp 0x4af75a
xorps xmm0, xmm0
jmp 0x4af75a
mov ecx, dword [ecx]
call fcn.0042ad80
movsd qword [esp + 0x20], xmm0
cmp esi, 4
jne 0x4af828
cvtsd2ss xmm0, xmm0
movss dword [esp + 0x20], xmm0
jmp 0x4af828
cmp esi, 8
jne 0x4af7cb
cmp word [esp + 0x18], 0x55
jne 0x4af7cb
mov eax, dword [ecx + 8]
cmp eax, 1
je 0x4af7cb
cmp eax, 2
je 0x4af7cb
cmp eax, 5
ja case.0x4af797.1
jmp dword [eax*4 + 0x4b0508]
mov ecx, dword [ecx]
push 0
push 1
call fcn.004016b0
mov ecx, eax
call fcn.004505c0
jmp 0x4af820
mov eax, dword [ecx]
mov ecx, eax
call fcn.004505c0
jmp 0x4af820
mov eax, 0x4cfc40
mov ecx, eax
call fcn.004505c0
jmp 0x4af820
mov eax, dword [ecx + 8]
dec eax
cmp eax, 5
ja case.0x4af7d4.3
jmp dword [eax*4 + 0x4b0520]
mov eax, dword [ecx]
mov edx, dword [ecx + 4]
jmp 0x4af820
mov edx, dword [ecx + 4]
test edx, edx
je case.0x4af7d4.3
mov eax, dword [edx]
mov edx, dword [edx + 4]
jmp 0x4af820
movsd xmm0, qword [ecx]
call fcn.004cdd30
jmp 0x4af820
mov ecx, dword [ecx]
push 0
call fcn.0042afc0
jmp 0x4af820
xorps xmm0, xmm0
movlpd qword [esp + 0x18], xmm0
mov edx, dword [esp + 0x1c]
mov eax, dword [esp + 0x18]
jmp 0x4af820
mov ecx, dword [ecx]
call fcn.00405520
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.004aeff0
test eax, eax
jne 0x4af850
mov ecx, dword [0x4f90f4]
test byte [ecx + 0x100], 1
jne case.0x4af5b1.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.0x4af5b1.69
mov eax, dword [ebp + 8]
test ebx, ebx
je 0x4af900
mov eax, dword [ebp + 0x18]
mov ecx, dword [eax + 4]
mov eax, dword [ecx + 8]
dec eax
cmp eax, 5
ja case.0x4af88a.3
jmp dword [eax*4 + 0x4b0538]
mov eax, dword [ecx + 4]
mov esi, dword [ecx]
mov dword [esp + 0x24], eax
jmp 0x4af99c
mov eax, dword [ecx + 4]
test eax, eax
je case.0x4af88a.3
mov esi, dword [eax]
mov eax, dword [eax + 4]
mov dword [esp + 0x24], eax
jmp 0x4af99c
movsd xmm0, qword [ecx]
call fcn.004cdd30
mov esi, eax
mov dword [esp + 0x24], edx
jmp 0x4af99c
mov ecx, dword [ecx]
push 0
call fcn.0042afc0
mov esi, eax
mov dword [esp + 0x24], edx
jmp 0x4af99c
xorps xmm0, xmm0
movlpd qword [esp + 0x20], xmm0
mov esi, dword [esp + 0x20]
jmp 0x4af99c
mov ecx, dword [ecx]
call fcn.00405520
mov esi, eax
mov dword [esp + 0x24], edx
jmp 0x4af99c
lea ebx, [eax + 8]
mov eax, dword [ebx]
mov ecx, ebx
mov eax, dword [eax + 0x1c]
call eax
cmp dword [ebx + 0x2c], 0
mov dword [esp + 0x18], eax
mov dword [esp + 0x14], edx
jne 0x4af94f
cmp dword [ebx + 8], 0
je 0x4af94f
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 0x4af949
jg 0x4af943
mov eax, dword [esp + 0x18]
cmp esi, eax
jbe 0x4af953
mov dword [esp + 0x24], edx
jmp 0x4af959
mov eax, dword [esp + 0x18]
jmp 0x4af953
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 0x4af97b
or eax, ecx
mov dword [esp + 0x24], ecx
jmp 0x4af99a
mov eax, dword [ebx + 0x2c]
test eax, eax
je 0x4af98a
sub eax, dword [ebx + 0x30]
sub eax, dword [ebx + 8]
jmp 0x4af98d
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.0x4af5b1.69
lea ebx, [esi + esi]
cmp esi, 0xff
ja 0x4af9b5
mov eax, dword [edi + 4]
jmp 0x4af9d0
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.0x4af5b1.69
mov dword [edi + 4], esi
xor ecx, ecx
mov dword [edi], eax
mov word [eax + ebx], cx
mov ecx, dword [ebp + 8]
push 0
add ecx, 8
push esi
push dword [edi]
call fcn.004ae8f0
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.0x4af5b1.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.0x4af5b1.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 0x4af9e1
cmp ebx, 1
jg case.0x4af5b1.69
xor ecx, ecx
xor ebx, ebx
mov dword [esp + 0x18], ecx
cmp dword [ebp + 0x1c], ecx
je 0x4afafc
mov ebx, dword [ebp + 0x18]
mov edx, dword [edi + 4]
mov ecx, dword [ebx + 4]
call fcn.0047ad90
mov ebx, dword [ebx + 4]
mov edx, eax
mov dword [esp + 0x20], edx
cmp dword [ebx + 8], 4
jne 0x4afacb
mov ebx, dword [ebx]
mov cl, byte [ebx + 0x17]
test cl, cl
jne 0x4afa92
mov eax, dword [ebx + 0xc]
mov al, byte [eax + 0x15]
jmp 0x4afa95
mov al, byte [ebx + 0x15]
test al, 1
jne 0x4afacb
test cl, cl
jne 0x4afaa0
mov ebx, dword [ebx + 0xc]
cmp byte [ebx + 0x17], 1
jne 0x4afac0
test byte [ebx + 0x15], 8
je 0x4afab7
mov ecx, ebx
call fcn.00401510
mov edx, dword [esp + 0x20]
add ebx, 0xc
mov ebx, dword [ebx]
shr ebx, 1
jmp 0x4afadf
mov ebx, 0x4ffaf8
mov ebx, dword [ebx]
shr ebx, 1
jmp 0x4afadf
mov ebx, edx
lea ecx, [ebx + 2]
mov ax, word [ebx]
add ebx, 2
test ax, ax
jne 0x4afad0
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.004aee00
mov ecx, eax
mov eax, dword [esp + 0x20]
mov dword [esp + 0x18], ecx
jmp 0x4afb02
mov eax, dword [ebp + 8]
add eax, 8
cmp esi, 4
jne 0x4afb24
test ecx, ecx
jne 0x4afb0f
test ebx, ebx
jne 0x4afb2c
push 1
push 0x4eef7c
mov ecx, eax
inc ebx
call fcn.004aee00
mov ecx, dword [esp + 0x18]
add ecx, eax
test ecx, ecx
jne 0x4afb3e
test ebx, ebx
je 0x4afb3e
mov eax, dword [0x4f90f4]
test byte [eax + 0x100], 1
jne case.0x4af5b1.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.0x4af5b1.69
mov ecx, dword [esp + 0x14]
movzx eax, word [ecx + 6]
cmp eax, 0x52
je 0x4afb75
mov byte [esp + 0xf], 0
cmp eax, 0x72
jne 0x4afb7a
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.0x4afb8c.3
jmp dword [eax*4 + 0x4b0550]
mov eax, dword [ecx + 4]
mov ebx, dword [ecx]
mov dword [esp + 0x24], eax
jmp 0x4afbe2
mov eax, dword [ecx + 4]
test eax, eax
je case.0x4afb8c.3
mov ebx, dword [eax]
mov eax, dword [eax + 4]
mov dword [esp + 0x24], eax
jmp 0x4afbe2
movsd xmm0, qword [ecx]
call fcn.004cdd30
jmp 0x4afbdc
mov ecx, dword [ecx]
push 0
call fcn.0042afc0
jmp 0x4afbdc
xorps xmm0, xmm0
movlpd qword [esp + 0x20], xmm0
mov ebx, dword [esp + 0x20]
jmp 0x4afbe2
mov ecx, dword [ecx]
call fcn.00405520
mov ebx, eax
mov dword [esp + 0x24], edx
mov eax, dword [esi + 8]
cmp eax, 4
jne 0x4afce7
mov ecx, dword [esi]
cmp byte [ecx + 0x17], 0
jne 0x4afbfb
mov eax, dword [ecx + 0xc]
jmp 0x4afbfd
mov eax, ecx
cmp byte [eax + 0x17], 2
jne 0x4afc0a
mov eax, dword [0x4fe6ec]
jmp 0x4afc0d
mov eax, dword [eax + 0x10]
cmp ebx, eax
jbe 0x4afc60
cmp byte [esp + 0xf], 0
je 0x4afc33
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.004b5b70
test eax, eax
jne 0x4afc60
mov eax, dword [0x4f90f4]
test byte [eax + 0x100], 1
jne case.0x4af5b1.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 0x4afc6b
mov esi, dword [esi + 0xc]
test byte [esi + 0x15], 8
je 0x4afc78
mov ecx, esi
call fcn.00401510
mov al, byte [esi + 0x17]
cmp al, 1
jne 0x4afc93
test byte [esi + 0x15], 4
je 0x4afc8b
push esi
call fcn.0044f420
mov ecx, dword [esi + 8]
jmp 0x4afd43
cmp al, 2
jne 0x4afce0
mov ecx, dword [0x4fe6e4]
test ecx, ecx
jne 0x4afd43
mov esi, dword [sym.imp.USER32.dll_IsClipboardFormatAvailable]
push 0xd
call esi
test eax, eax
jne 0x4afcc8
push 0xf
call esi
test eax, eax
mov ecx, 0x4cfc34
mov edx, 0x4cfc40
cmove ecx, edx
jmp 0x4afd43
push 0
call fcn.004068c0
cmp eax, 0xffffffff
mov ecx, 0x4cfc40
cmovne ecx, dword [0x4fe6e0]
jmp 0x4afd43
mov ecx, 0x4fd2d8
jmp 0x4afd43
dec eax
cmp eax, 5
ja case.0x4afced.3
jmp dword [eax*4 + 0x4b0568]
mov eax, dword [esi + 4]
mov ecx, dword [esi]
mov dword [esp + 0x24], eax
jmp 0x4afd43
mov eax, dword [esi + 4]
test eax, eax
je case.0x4afced.3
mov ecx, dword [eax]
mov eax, dword [eax + 4]
mov dword [esp + 0x24], eax
jmp 0x4afd43
movsd xmm0, qword [esi]
call fcn.004cdd30
jmp 0x4afd3d
mov ecx, dword [esi]
push 0
call fcn.0042afc0
jmp 0x4afd3d
xorps xmm0, xmm0
movlpd qword [esp + 0x20], xmm0
mov ecx, dword [esp + 0x20]
jmp 0x4afd43
mov ecx, dword [esi]
call fcn.00405520
mov ecx, eax
mov dword [esp + 0x24], edx
cmp ecx, 0x10000
jae 0x4afd52
xor ecx, ecx
jmp 0x4afb28
cmp byte [esp + 0xf], 0
mov eax, dword [ebp + 8]
push ebx
push ecx
lea ecx, [eax + 8]
je 0x4afd6d
call fcn.004aec70
mov ecx, eax
jmp 0x4afb24
call fcn.004aeff0
mov ecx, eax
jmp 0x4afb24
test ebx, ebx
jne 0x4afdf5
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 0x4afdb1
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 0x4afdd8
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.0x4af5b1.69
mov ecx, dword [ebp + 0x18]
mov edx, dword [ecx + 4]
mov eax, dword [edx + 8]
dec eax
cmp eax, 5
ja case.0x4afe0d.3
jmp dword [eax*4 + 0x4b0580]
mov eax, dword [edx]
mov edx, dword [edx + 4]
jmp 0x4afe5c
mov esi, dword [edx + 4]
test esi, esi
je case.0x4afe0d.3
mov eax, dword [esi]
mov edx, dword [esi + 4]
jmp 0x4afe5c
movsd xmm0, qword [edx]
call fcn.004cdd30
jmp 0x4afe59
mov ecx, dword [edx]
push 0
call fcn.0042afc0
jmp 0x4afe59
xorps xmm0, xmm0
movlpd qword [esp + 0x20], xmm0
mov edx, dword [esp + 0x24]
mov eax, dword [esp + 0x20]
jmp 0x4afe5c
mov ecx, dword [edx]
call fcn.00405520
mov ecx, dword [ebp + 0x18]
mov dword [esp + 0x14], edx
mov dword [esp + 0x10], eax
cmp ebx, 2
jne 0x4afed9
mov ecx, dword [ecx + 8]
mov eax, dword [ecx + 8]
dec eax
cmp eax, 5
ja case.0x4afe75.3
jmp dword [eax*4 + 0x4b0598]
mov eax, dword [ecx + 4]
mov ebx, dword [ecx]
mov dword [esp + 0x24], eax
jmp 0x4afeec
mov eax, dword [ecx + 4]
test eax, eax
je case.0x4afe75.3
mov ebx, dword [eax]
mov eax, dword [eax + 4]
mov dword [esp + 0x24], eax
jmp 0x4afeec
movsd xmm0, qword [ecx]
call fcn.004cdd30
mov ebx, eax
mov dword [esp + 0x24], edx
jmp 0x4afeec
mov ecx, dword [ecx]
push 0
call fcn.0042afc0
mov ebx, eax
mov dword [esp + 0x24], edx
jmp 0x4afeec
xorps xmm0, xmm0
movlpd qword [esp + 0x20], xmm0
mov ebx, dword [esp + 0x20]
jmp 0x4afeec
mov ecx, dword [ecx]
call fcn.00405520
mov ebx, eax
mov dword [esp + 0x24], edx
jmp 0x4afeec
test edx, edx
jg 0x4afeea
jl 0x4afee3
test eax, eax
jae 0x4afeea
mov ebx, 2
jmp 0x4afeec
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 0x4aff34
sub edx, dword [ecx]
sub edx, dword [eax]
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 0x4aff38
mov dword [esp + 0x20], eax
mov edx, dword [eax]
test edx, edx
je 0x4aff52
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 0x4affa4
mov eax, dword [0x4f90f4]
test byte [eax + 0x100], 1
jne case.0x4af5b1.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 0x4b002c
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 0x4b0011
cmp dword [esi + 0x10], 0
je 0x4b0011
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 0x4b0015
jg 0x4b0019
cmp eax, ebx
jbe 0x4b0015
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.0x4af5b1.69
mov eax, dword [ebp + 0x18]
mov ecx, dword [eax + 4]
mov eax, dword [ecx + 8]
dec eax
cmp eax, 5
ja case.0x4b0044.3
jmp dword [eax*4 + 0x4b05b0]
mov esi, dword [ecx]
mov edx, dword [ecx + 4]
mov dword [esp + 0x14], esi
jmp 0x4b00a0
mov edx, dword [ecx + 4]
test edx, edx
je case.0x4b0044.3
mov ecx, dword [edx]
mov edx, dword [edx + 4]
mov dword [esp + 0x14], ecx
jmp 0x4b00a0
movsd xmm0, qword [ecx]
call fcn.004cdd30
jmp 0x4b009c
mov ecx, dword [ecx]
push 0
call fcn.0042afc0
jmp 0x4b009c
xorps xmm0, xmm0
movlpd qword [esp + 0x20], xmm0
mov ecx, dword [esp + 0x20]
mov edx, dword [esp + 0x24]
mov dword [esp + 0x14], ecx
jmp 0x4b00a0
mov ecx, dword [ecx]
call fcn.00405520
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 0x4b00e2
sub edx, dword [eax]
sub edx, dword [ecx]
mov ecx, ebx
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 0x4b00e6
mov dword [esp + 0x20], eax
mov edx, dword [eax]
test edx, edx
je 0x4b0100
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 0x4b018e
push dword [ebx + 0x34]
call dword [sym.imp.KERNEL32.dll_SetEndOfFile]
test eax, eax
je 0x4b018e
mov edx, dword [esp + 0x18]
cmp dword [esp + 0x10], edx
jg 0x4b0155
mov ecx, dword [esp + 0x14]
jl 0x4b015f
mov eax, dword [esp + 0x20]
cmp ecx, eax
jae 0x4b0159
jmp 0x4b015f
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 0x4af9fa
cmp edx, eax
jne 0x4af9fa
jmp 0x4b019b
mov dword [edi], 0xffffffff
mov dword [edi + 4], 0xffffffff
mov dword [edi], 0x4cfc40
mov eax, dword [0x4f90f4]
mov dword [edi + 8], 0
test byte [eax + 0x100], 1
je 0x4af9fa
mov ecx, dword [0x4fe1c4]
push 0x4cfc40
push str.FileObject
push 0x4e613c
call fcn.0044e3e0
mov eax, 1
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 0x18
test ebx, ebx
jne 0x4af9fa
mov esi, dword [ebp + 8]
mov ecx, dword [esi + 0x34]
test ecx, ecx
je 0x4b01fe
mov eax, dword [esi + 0x38]
add eax, dword [esi + 0x10]
cmp ecx, eax
jb 0x4b0242
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 0x4affa4
jg 0x4b0223
test ebx, ebx
jb 0x4affa4
mov eax, dword [esi + 8]
lea ecx, [esi + 8]
mov eax, dword [eax + 0x1c]
call eax
cmp dword [esp + 0x20], edx
jg 0x4affa4
jl 0x4b0242
cmp ebx, eax
jae 0x4affa4
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 0x4af9fa
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 0x4b02ab
sub edx, dword [eax]
sub edx, dword [ecx]
lea ecx, [ebx + 8]
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 0x4b02af
mov dword [esp + 0x20], eax
mov edx, dword [eax]
test edx, edx
je 0x4b02cb
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 0x4afb40
mov esi, dword [ebp + 8]
test ebx, ebx
jle 0x4b039c
mov ebx, dword [ebp + 0x18]
mov ecx, dword [ebx + 4]
call fcn.0047ac60
mov edx, dword [ebx + 4]
test eax, eax
mov eax, dword [edx + 8]
je 0x4b0345
dec eax
cmp eax, 5
ja case.0x4b0301.3
jmp dword [eax*4 + 0x4b05c8]
mov ecx, dword [edx]
jmp 0x4b0370
mov eax, dword [edx + 4]
test eax, eax
je case.0x4b0301.3
mov ecx, dword [eax]
jmp 0x4b0370
movsd xmm0, qword [edx]
call fcn.004cdd30
jmp 0x4b036e
mov ecx, dword [edx]
push 0
call fcn.0042afc0
jmp 0x4b036e
xorps xmm0, xmm0
movlpd qword [esp + 0x20], xmm0
mov ecx, dword [esp + 0x20]
jmp 0x4b0370
mov ecx, dword [edx]
call fcn.00405520
jmp 0x4b036e
cmp eax, 5
ja case.0x4b034a.1
jmp dword [eax*4 + 0x4b05e0]
mov ecx, dword [edx]
push 0
push 1
call fcn.004016b0
jmp 0x4b0367
mov eax, dword [edx]
jmp 0x4b0367
mov eax, 0x4cfc40
mov ecx, eax
call fcn.0042d590
mov ecx, eax
cmp ecx, 0xffffffff
je 0x4b039c
and ecx, 0x7fffffff
cmove ecx, dword [0x4fe884]
cmp dword [esi + 0x18], ecx
je 0x4b039c
lea eax, [esi + 0x1c]
mov dword [esi + 0x18], ecx
push eax
push ecx
call dword [sym.imp.KERNEL32.dll_GetCPInfo]
test eax, eax
jne 0x4b039c
mov byte [esi + 0x22], al
mov ecx, dword [esi + 0x18]
cmp ecx, 0x4b0
je 0x4b03fb
cmp ecx, 0xfde9
je 0x4b03df
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 0x4b0449
mov esi, dword [ebp + 8]
mov ecx, dword [esi + 0x10]
test ecx, ecx
je 0x4b043a
cmp dword [esi + 0x34], ebx
jne 0x4b043a
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], 0x4cfc40
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