Function at 0x461146
Capabilities:
Read file on windows

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x74
push ebx
push esi
mov esi, dword [ebp + 8]
push edi
xor edi, edi
mov di, word [esi]
xor ebx, ebx
mov dword [ebp - 0x10], ecx
mov byte [ebp - 2], bl
mov byte [ebp - 1], bl
mov dword [ebp - 8], 0xffff0000
mov eax, edi
call fcn.00482120
test al, al
je 0x46117c
mov dword [ebp - 8], ebx
jmp 0x461298
push 4
push esi
push str._UNI
call fcn.00438b38
add esp, 0xc
test al, al
je 0x46119c
mov dword [ebp - 8], 0x4b0
jmp 0x461298
push 8
push esi
push str._UNICODE
call fcn.00438b38
add esp, 0xc
test al, al
jne 0x461190
push 5
push esi
push str._UNIB
call fcn.00438b38
add esp, 0xc
test al, al
je 0x4611d0
mov dword [ebp - 8], 0x4b1
jmp 0x461298
push 9
push esi
push str._UNICODEB
call fcn.00438b38
add esp, 0xc
test al, al
jne 0x4611c4
push 5
push esi
push str._ANSI
call fcn.00438b38
add esp, 0xc
test al, al
jne 0x461174
push 4
push esi
push str._GBK
call fcn.00438b38
add esp, 0xc
test al, al
je 0x461219
mov dword [ebp - 8], 0x3a8
jmp 0x461298
push 5
push esi
push str._BIG5
call fcn.00438b38
add esp, 0xc
test al, al
je 0x461236
mov dword [ebp - 8], 0x3b6
jmp 0x461298
push 5
push esi
push str._UTF8
call fcn.00438b38
add esp, 0xc
test al, al
je 0x461253
mov dword [ebp - 8], 0xfde9
jmp 0x461298
push 5
push esi
push str._UTF7
call fcn.00438b38
add esp, 0xc
test al, al
je 0x461270
mov dword [ebp - 8], 0xfde8
jmp 0x461298
cmp di, 0x2d
jne 0x461298
xor eax, eax
add esi, 2
mov ax, word [esi]
push eax
call fcn.0041270e
add esp, 4
test al, al
je 0x461298
push esi
mov dword [ebp + 8], esi
call fcn.0043df72
pop ecx
mov dword [ebp - 8], eax
lea eax, [ebp + 8]
push eax
call fcn.0040507c
push 4
lea eax, [ebp + 8]
push eax
push str.fix
call fcn.0043f1bd
add esp, 0x10
neg al
sbb al, al
push 0x4a39d4
lea ecx, [ebp - 0x2c]
and eax, 2
mov byte [ebp - 0x28], al
call fcn.004457e4
push str.READLINE
lea ecx, [ebp - 0x14]
call fcn.004457e4
mov ecx, dword [ebp - 0x10]
push ebx
push 0x2c
lea eax, [ebp - 0x2c]
push eax
xor edi, edi
lea eax, [ebp + 8]
inc edi
push eax
mov dword [ebp - 0x40], ebx
mov dword [ebp - 0x50], edi
mov dword [ebp - 0x4c], ebx
mov dword [ebp - 0x58], edi
mov dword [ebp - 0x54], ebx
mov dword [ebp - 0x20], ebx
call fcn.00433065
mov esi, dword [ebp - 0x2c]
push esi
push 0x4ad9c0
mov dword [ebp + 8], eax
call fcn.00438bce
test al, al
pop ecx
pop ecx
je 0x46138d
mov dword [ebp - 0x20], edi
mov byte [ebp - 2], 1
lea ecx, [ebp - 0x3c]
mov dword [ebp - 0x38], ebx
call fcn.0043d47d
mov ecx, dword [ebp - 0x10]
push edi
push ebx
lea eax, [ebp - 0x3c]
push eax
push dword [ebp + 8]
call fcn.0044b30d
mov eax, dword [ebp - 0x3c]
mov dword [ebp + 8], eax
cmp word [eax], 0x2c
jne 0x46142d
lea ecx, [ebp - 0x30]
call fcn.0043d47d
add dword [ebp + 8], 2
push 0x2c
lea eax, [ebp - 0x30]
push eax
lea eax, [ebp + 8]
push eax
call fcn.0043fe29
mov esi, dword [ebp - 0x30]
push esi
push 0x4ad9bc
mov dword [ebp - 0x24], esi
call fcn.00438bce
add esp, 0x14
test al, al
je 0x4613c5
mov byte [ebp - 1], 2
mov dword [ebp - 0x38], 0x4ad9b8
jmp 0x461425
cmp word [esi], bx
je 0x46131a
push esi
push 0x4a4be0
call fcn.00438bce
test al, al
pop ecx
pop ecx
jne 0x46131a
push esi
push 0x4a465c
call fcn.00438bce
test al, al
pop ecx
pop ecx
je 0x46131e
mov byte [ebp - 2], 2
jmp 0x46131e
push esi
push 0x4ad9b4
call fcn.00438bce
test al, al
pop ecx
pop ecx
je 0x4613dc
mov byte [ebp - 1], 3
jmp 0x461425
push esi
push 0x4a978c
call fcn.00438bce
test al, al
pop ecx
pop ecx
je 0x4613fa
mov byte [ebp - 1], 1
mov dword [ebp - 0x38], 0x4ad9b0
jmp 0x461425
lea eax, [ebp - 0x50]
push eax
lea eax, [ebp - 0x24]
push eax
call fcn.00448773
mov eax, dword [ebp - 0x24]
cmp word [eax], 0x2b
pop ecx
pop ecx
jne 0x461425
add dword [ebp - 0x24], 2
lea eax, [ebp - 0x58]
push eax
lea eax, [ebp - 0x24]
push eax
call fcn.00448773
pop ecx
pop ecx
lea ecx, [ebp - 0x30]
call fcn.00437960
mov eax, dword [ebp + 8]
cmp word [eax], 0x2c
jne 0x46144c
add dword [ebp + 8], 2
push 0x2c
lea eax, [ebp - 0x14]
push eax
lea eax, [ebp + 8]
push eax
call fcn.0043fe29
add esp, 0xc
mov ecx, dword [ebp - 0x10]
push ebx
lea eax, [ebp - 0x14]
push eax
call fcn.00402d87
push 8
lea ecx, [ebp - 0xc]
call fcn.0043d373
mov esi, dword [ebp - 0xc]
xor edi, edi
inc edi
cmp dword [ebp - 8], ebx
mov dword [ebp - 0x30], esi
mov word [esi], bx
jl 0x461d91
lea ecx, [ebp - 0x74]
call fcn.0043d356
mov eax, dword [ebp - 0x2c]
mov dword [ebp - 0x70], ebx
mov dword [ebp - 0x6c], ebx
cmp word [eax], 0x75
jne 0x46160e
cmp word [eax + 2], 0x64
jne 0x46160e
cmp word [eax + 4], 0x3a
jne 0x46160e
mov ecx, dword [ebp + 8]
push 0x22
add eax, 6
pop esi
mov word [ecx], bx
cmp word [eax], si
mov dword [ebp - 0x30], eax
jne 0x4614c2
inc eax
inc eax
mov dword [ebp - 0x30], eax
mov edi, eax
push 0x3a
lea eax, [ebp - 0x30]
call fcn.00405093
mov eax, dword [ebp - 0x30]
cmp eax, edi
pop ecx
je 0x4614e0
cmp word [eax - 2], si
jne 0x4614e0
mov word [eax - 2], bx
cmp word [eax], 0x3a
jne 0x4614eb
mov word [eax], bx
inc eax
inc eax
cmp word [eax], si
mov ecx, eax
jne 0x461504
lea ecx, [eax + 2]
inc eax
inc eax
cmp word [eax], si
jne 0x4614ff
mov word [eax], bx
cmp word [eax], bx
jne 0x4614f5
push ebx
push ebx
push 0x10000
push ecx
lea eax, [ebp - 0x74]
push eax
push edi
call fcn.004358b7
mov esi, dword [ebp - 0x70]
add esp, 0x18
cmp esi, ebx
jle 0x46152d
mov eax, dword [ebp - 0x6c]
mov ecx, dword [ebp - 0x74]
add eax, ecx
mov dword [ebp + 8], eax
jmp 0x461530
mov eax, dword [ebp + 8]
movsx edx, byte [eax]
mov edi, 0xff
xor ecx, ecx
cmp edx, edi
mov dword [ebp - 0x44], ebx
jne 0x461556
movsx ebx, byte [eax + 1]
cmp ebx, 0xfe
jne 0x461556
mov dword [ebp - 8], 0x4b0
jmp 0x46156d
cmp edx, 0xfe
jne 0x461571
movsx ebx, byte [eax + 1]
cmp ebx, edi
jne 0x461571
mov dword [ebp - 8], 0x4b1
push 2
jmp 0x46159a
cmp edx, 0xef
jne 0x46159f
movsx edx, byte [eax + 1]
cmp edx, 0xbb
jne 0x46159f
movsx edx, byte [eax + 2]
cmp edx, 0xbf
jne 0x46159f
mov dword [ebp - 8], 0xfde9
push 3
and dword [ebp - 0x44], 0
pop ecx
sub esi, ecx
cmp dword [ebp - 8], 0x4b1
lea edi, [ecx + eax]
jne 0x4615d1
and esi, 0xfffffffe
add esi, edi
cmp edi, esi
mov ecx, edi
ja 0x46164d
mov al, byte [ecx]
mov dl, byte [ecx + 1]
mov byte [ecx], dl
mov byte [ecx + 1], al
inc ecx
inc ecx
cmp ecx, esi
jbe 0x4615bc
mov eax, dword [ebp + 8]
jmp 0x46164d
cmp dword [ebp - 8], 0x4b0
je 0x46164d
mov eax, dword [ebp - 0x74]
and dword [ebp - 0x74], 0
mov dword [ebp - 0x38], eax
lea eax, [esi + esi + 0x20]
push eax
lea ecx, [ebp - 0x74]
call fcn.0043d398
push dword [ebp - 8]
lea ecx, [ebp - 0x74]
push esi
push edi
call fcn.0043d538
mov eax, dword [ebp - 0x74]
lea ecx, [ebp - 0x38]
mov dword [ebp + 8], eax
call fcn.00437960
jmp 0x4615cc
mov eax, dword [ebp - 0x14]
cmp word [eax], bx
jne 0x461625
lea ecx, [ebp - 0x74]
call fcn.00437960
xor edi, edi
jmp 0x461d9f
cmp byte [ebp - 2], 1
mov eax, dword [ebp + 8]
jne 0x46163e
cmp word [eax], 0x2c
je 0x46163e
mov edi, 0x80070057
jmp 0x461d89
inc eax
inc eax
test byte [ebp - 2], 1
mov dword [ebp + 8], eax
je 0x461910
mov edx, dword [ebp - 0x20]
xor edi, edi
xor ecx, ecx
or edx, ecx
push 0xffffffffffffffff
mov dword [ebp - 0x28], edi
pop ebx
je 0x4616ad
lea eax, [ebp + 8]
push eax
call fcn.004379a9
mov esi, dword [ebp + 8]
lea eax, [ebp + 8]
push eax
call fcn.004050f3
mov eax, dword [ebp + 8]
cmp word [eax], di
pop ecx
pop ecx
je 0x461683
mov word [eax], di
mov eax, dword [ebp + 8]
cmp word [esi], di
je 0x4616ad
mov ecx, dword [ebp - 0x10]
push ebx
push edi
push esi
call fcn.00412e5b
cmp eax, edi
je 0x4616aa
push ebx
push dword [eax]
lea ecx, [ebp - 0x28]
call fcn.0043d5a1
mov eax, dword [ebp - 0x28]
mov dword [ebp + 8], eax
jmp 0x4616ad
mov eax, dword [ebp + 8]
cmp byte [ebp - 1], 3
mov edi, eax
jne 0x4616bb
push eax
jmp 0x461825
cmp byte [ebp - 1], 0
je 0x461767
cmp byte [ebp - 1], 1
mov ebx, 0x4a738c
je 0x4616d5
mov ebx, 0x4a3f34
lea ecx, [ebp - 0x24]
call fcn.0043d47d
mov eax, dword [ebp + 8]
mov esi, eax
xor edi, edi
jmp 0x46172c
cmp cx, 0xd
jne 0x4616fc
cmp word [eax + 2], 0xa
jne 0x461702
mov word [eax], di
add dword [ebp + 8], 2
jmp 0x461705
cmp cx, 0xa
jne 0x461727
mov word [eax], di
cmp byte [ebp - 1], 0
jne 0x461714
push ebx
lea ecx, [ebp - 0x24]
call fcn.0043d4e9
push esi
lea ecx, [ebp - 0x24]
mov byte [ebp - 1], 0
call fcn.0043d4e9
mov eax, dword [ebp + 8]
lea esi, [eax + 2]
inc eax
inc eax
mov dword [ebp + 8], eax
mov cx, word [eax]
cmp cx, di
jne 0x4616e6
cmp word [esi], di
je 0x461751
cmp byte [ebp - 1], 0
jne 0x461748
push ebx
lea ecx, [ebp - 0x24]
call fcn.0043d4e9
push esi
lea ecx, [ebp - 0x24]
call fcn.0043d4e9
push dword [ebp - 0x24]
mov ecx, dword [ebp - 0x10]
push dword [ebp - 0x14]
call fcn.0043cd78
lea ecx, [ebp - 0x24]
jmp 0x4618fe
xor edx, edx
cmp dword [ebp - 0x4c], edx
jg 0x4617e6
jl 0x461775
cmp dword [ebp - 0x50], edx
jae 0x4617e6
mov dword [ebp - 0x50], edx
mov dword [ebp - 0x4c], edx
mov cx, word [eax]
cmp cx, dx
je 0x4617af
cmp cx, 0xa
jne 0x461790
add dword [ebp - 0x50], 1
adc dword [ebp - 0x4c], edx
inc eax
inc eax
mov dword [ebp + 8], eax
mov cx, word [eax]
cmp cx, dx
jne 0x461783
cmp eax, edi
jbe 0x4617af
cmp word [eax - 2], 0xa
je 0x4617af
add dword [ebp - 0x50], 1
adc dword [ebp - 0x4c], edx
push 0x20
lea ecx, [ebp - 0x30]
call fcn.0043d49b
push dword [ebp - 0x4c]
push dword [ebp - 0x50]
push 0x4a4088
push dword [ebp - 0x30]
call dword [sym.imp.USER32.dll_wsprintfW]
mov ecx, dword [ebp - 0x10]
add esp, 0x10
push dword [ebp - 0x30]
push dword [ebp - 0x14]
call fcn.0043cd78
lea ecx, [ebp - 0x30]
jmp 0x4618fe
mov ecx, dword [ebp - 0x50]
or ecx, dword [ebp - 0x4c]
jne 0x461856
mov dx, word [eax]
test dx, dx
push 0xa
mov ecx, eax
mov esi, eax
pop ebx
je 0x461844
cmp dx, bx
jne 0x461806
mov esi, ecx
mov ecx, eax
inc eax
inc eax
mov dword [ebp + 8], eax
mov dx, word [eax]
test dx, dx
jne 0x4617fd
cmp eax, edi
jbe 0x461835
cmp word [eax - 2], bx
je 0x461835
cmp word [ecx], bx
jne 0x461824
inc ecx
inc ecx
push ecx
push dword [ebp - 0x14]
mov ecx, dword [ebp - 0x10]
call fcn.0043cd78
jmp 0x461903
cmp ecx, edi
jbe 0x461844
lea eax, [ecx - 2]
cmp word [eax], 0xd
jne 0x461844
mov ecx, eax
cmp word [esi], bx
jne 0x46184b
inc esi
inc esi
sub ecx, esi
sar ecx, 1
push ecx
push esi
jmp 0x4618e5
cmp dword [ebp - 0x4c], edx
jl 0x461883
jle 0x46187d
mov cx, word [eax]
cmp cx, dx
je 0x461883
cmp cx, 0xa
jne 0x461871
add dword [ebp - 0x50], ebx
adc dword [ebp - 0x4c], ebx
inc eax
inc eax
cmp dword [ebp - 0x4c], edx
mov dword [ebp + 8], eax
jg 0x46185d
jl 0x461883
cmp dword [ebp - 0x50], 1
ja 0x46185d
mov esi, dword [ebp - 0x58]
mov ebx, dword [ebp - 0x54]
mov edi, eax
jmp 0x4618d4
mov ecx, esi
or ecx, ebx
je 0x4618a5
add dword [ebp - 0x58], 0xffffffff
adc dword [ebp - 0x54], 0xffffffff
js 0x4618df
jg 0x4618a5
cmp dword [ebp - 0x58], 0
jb 0x4618df
lea eax, [ebp + 8]
call fcn.00412641
mov eax, esi
or eax, ebx
je 0x4618bb
mov eax, dword [ebp - 0x58]
or eax, dword [ebp - 0x54]
je 0x4618dc
mov eax, dword [ebp + 8]
cmp word [eax], 0xd
jne 0x4618c9
inc eax
inc eax
mov dword [ebp + 8], eax
cmp word [eax], 0xa
jne 0x4618d4
inc eax
inc eax
mov dword [ebp + 8], eax
cmp word [eax], 0
jne 0x46188d
jmp 0x4618df
mov eax, dword [ebp + 8]
sub eax, edi
sar eax, 1
push eax
push edi
lea ecx, [ebp - 0x38]
call fcn.00445801
push dword [ebp - 0x38]
mov ecx, dword [ebp - 0x10]
push dword [ebp - 0x14]
call fcn.0043cd78
lea ecx, [ebp - 0x38]
call fcn.00437960
lea ecx, [ebp - 0x28]
call fcn.00437960
jmp 0x461616
push 8
lea ecx, [ebp - 0x24]
call fcn.0043d373
and word [esi], 0
and dword [ebp - 0x18], 0
xor eax, eax
cmp byte [ebp - 2], 2
lea edi, [ebp - 0x5c]
stosd dword es:[edi], eax
mov eax, dword [0x4bc310]
mov dword [ebp - 0x60], eax
jne 0x4619f9
lea eax, [ebp - 0x60]
mov dword [ebp - 0x1c], eax
xor esi, esi
push esi
mov dword [ebp - 0x34], 0x186a0
mov dword [ebp - 0x30], esi
call dword [sym.imp.KERNEL32.DLL_SetLastError]
cmp byte [ebp - 1], 3
jne 0x461af7
mov eax, dword [ebp - 0x1c]
mov eax, dword [eax]
mov dword [ebp - 0x28], esi
mov dword [ebp - 0x38], eax
mov edi, 0x40000
lea eax, [esi + 0x40001]
push eax
lea ecx, [ebp - 0x28]
call fcn.0043d398
mov ebx, dword [ebp - 0x28]
xor eax, eax
push eax
mov dword [ebp - 0x48], eax
mov dword [ebp - 0x44], eax
lea eax, [ebp - 0x48]
push eax
push edi
lea eax, [esi + ebx]
push eax
push dword [ebp - 0x38]
call dword [sym.imp.KERNEL32.DLL_ReadFile]
cmp dword [ebp - 0x44], 0
jl 0x4619ae
jg 0x4619a7
cmp dword [ebp - 0x48], edi
jbe 0x4619ae
and dword [ebp - 0x44], 0
mov dword [ebp - 0x48], edi
mov ecx, dword [ebp - 0x48]
or ecx, dword [ebp - 0x44]
jne 0x4619ed
test eax, eax
jne 0x461ac4
cmp byte [ebp - 2], 2
jne 0x4619d3
call dword [sym.imp.KERNEL32.DLL_GetLastError]
cmp eax, 0x6d
je 0x461ac4
add dword [ebp - 0x34], 0xffffffff
adc dword [ebp - 0x30], 0xffffffff
js 0x461ac4
jg 0x4619ed
cmp dword [ebp - 0x34], 0
jb 0x461ac4
add esi, dword [ebp - 0x48]
mov byte [esi + ebx], 0
jmp 0x46196d
xor esi, esi
push esi
push esi
push 3
push esi
push 7
lea eax, [ebp - 0x18]
push 0x80000000
push dword [ebp - 0x2c]
mov ecx, eax
mov dword [ebp - 0x1c], eax
xor ebx, ebx
call fcn.0040511c
cmp dword [ebp - 0x18], esi
je 0x461ab7
xor eax, eax
push eax
mov byte [ebp - 0x48], bl
mov byte [ebp - 0x47], bl
mov byte [ebp - 0x46], bl
lea edi, [ebp - 0x45]
stosw word es:[edi], ax
mov dword [ebp - 0x68], eax
mov dword [ebp - 0x64], eax
lea eax, [ebp - 0x68]
push eax
push 3
lea eax, [ebp - 0x48]
push eax
push dword [ebp - 0x18]
call dword [sym.imp.KERNEL32.DLL_ReadFile]
cmp byte [ebp - 0x48], 0xff
jne 0x461a61
cmp byte [ebp - 0x47], 0xfe
jne 0x461a96
mov dword [ebp - 8], 0x4b0
jmp 0x461a74
cmp byte [ebp - 0x48], 0xfe
jne 0x461a78
cmp byte [ebp - 0x47], 0xff
jne 0x461a96
mov dword [ebp - 8], 0x4b1
push 2
jmp 0x461a93
cmp byte [ebp - 0x48], 0xef
jne 0x461a96
cmp byte [ebp - 0x47], 0xbb
jne 0x461a96
cmp byte [ebp - 0x46], 0xbf
jne 0x461a96
mov dword [ebp - 8], 0xfde9
push 3
pop esi
xor ebx, ebx
push 0
push ebx
push esi
push dword [ebp - 0x18]
call fcn.00438aec
add esp, 0x10
test edx, edx
jg 0x461940
jl 0x461ab7
test eax, eax
jae 0x461940
call dword [sym.imp.KERNEL32.DLL_GetLastError]
mov edi, eax
jmp 0x461d79
mov eax, dword [ebp - 8]
lea esi, [ebp - 0x28]
call fcn.00443361
mov ecx, dword [ebp - 0x10]
push eax
push dword [ebp - 0x14]
call fcn.0043cd78
mov ecx, esi
call fcn.00437960
lea ecx, [ebp - 0x18]
call fcn.00402b5a
lea ecx, [ebp - 0x24]
call fcn.00437960
jmp 0x461616
cmp byte [ebp - 1], 0
je 0x461b94
mov eax, dword [ebp - 0x38]
cmp eax, esi
jne 0x461b0d
mov eax, 0x4a450a
push 0xffffffffffffffff
push eax
lea ecx, [ebp - 0x38]
call fcn.0044581a
xor ebx, ebx
mov bl, byte [ebp - 0x28]
or ebx, 1
lea ecx, [ebp - 0x28]
call fcn.0043d47d
cmp byte [ebp - 1], 0
jne 0x461b39
push dword [ebp - 0x38]
lea ecx, [ebp - 0xc]
call fcn.0043d4e9
push ebx
push dword [ebp - 8]
lea eax, [ebp - 0x28]
push eax
push dword [ebp - 0x1c]
mov byte [ebp - 1], 0
call fcn.0044309a
add esp, 0x10
cmp byte [ebp - 2], 2
mov edi, eax
jne 0x461b63
call dword [sym.imp.KERNEL32.DLL_GetLastError]
cmp eax, 0x6d
je 0x461b84
mov eax, dword [ebp - 8]
lea esi, [ebp - 0x28]
call fcn.00443361
push eax
lea ecx, [ebp - 0xc]
call fcn.0043d4e9
mov ecx, esi
call fcn.00437960
test edi, edi
je 0x461b8c
jmp 0x461b20
lea ecx, [ebp - 0x28]
call fcn.00437960
lea ecx, [ebp - 0x38]
jmp 0x461d5d
cmp dword [ebp - 0x4c], esi
jg 0x461c01
jl 0x461ba0
cmp dword [ebp - 0x50], esi
jae 0x461c01
xor edi, edi
xor ebx, ebx
push dword [ebp - 0x28]
lea eax, [ebp - 0xc]
push dword [ebp - 8]
push eax
push dword [ebp - 0x1c]
call fcn.0044309a
add esp, 0x10
cmp byte [ebp - 2], 2
mov esi, eax
jne 0x461bcc
call dword [sym.imp.KERNEL32.DLL_GetLastError]
cmp eax, 0x6d
je 0x461bd8
test esi, esi
je 0x461bd8
add edi, 1
adc ebx, 0
jmp 0x461ba4
push 0x20
lea ecx, [ebp - 0xc]
mov dword [ebp - 8], 0x4b0
call fcn.0043d398
push ebx
push edi
push 0x4a4088
push dword [ebp - 0xc]
call dword [sym.imp.USER32.dll_wsprintfW]
add esp, 0x10
jmp 0x461d69
mov eax, dword [ebp - 0x50]
xor ebx, ebx
or eax, dword [ebp - 0x4c]
jne 0x461c50
mov bl, byte [ebp - 0x28]
or ebx, 1
mov eax, dword [ebp - 0xc]
mov ecx, dword [ebp - 0x24]
push ebx
push dword [ebp - 8]
mov dword [ebp - 0x24], eax
lea eax, [ebp - 0x24]
push eax
push dword [ebp - 0x1c]
mov dword [ebp - 0xc], ecx
call fcn.0044309a
add esp, 0x10
cmp byte [ebp - 2], 2
mov esi, eax
jne 0x461c47
call dword [sym.imp.KERNEL32.DLL_GetLastError]
cmp eax, 0x6d
je 0x461d69
test esi, esi
jne 0x461c11
jmp 0x461d69
xor edi, edi
xor esi, esi
inc edi
cmp esi, dword [ebp - 0x4c]
jg 0x461ca1
jl 0x461c61
cmp edi, dword [ebp - 0x50]
jae 0x461ca1
push dword [ebp - 0x28]
lea eax, [ebp - 0xc]
push dword [ebp - 8]
push eax
push dword [ebp - 0x1c]
call fcn.0044309a
add esp, 0x10
cmp byte [ebp - 2], 2
mov ebx, eax
jne 0x461c89
call dword [sym.imp.KERNEL32.DLL_GetLastError]
cmp eax, 0x6d
je 0x461c9f
test ebx, ebx
je 0x461c9f
add edi, 1
adc esi, 0
cmp esi, dword [ebp - 0x4c]
jl 0x461c61
jg 0x461c9f
cmp edi, dword [ebp - 0x50]
jb 0x461c61
xor ebx, ebx
mov eax, dword [ebp - 0xc]
mov byte [eax], 0
cmp dword [ebp - 0x58], 1
jne 0x461ccf
cmp dword [ebp - 0x54], ebx
jne 0x461ccf
xor eax, eax
mov al, byte [ebp - 0x28]
or eax, 1
push eax
push dword [ebp - 8]
lea eax, [ebp - 0xc]
push eax
push dword [ebp - 0x1c]
call fcn.0044309a
jmp 0x461bf9
lea ecx, [ebp - 0x30]
call fcn.0043d47d
mov edi, dword [ebp - 0x58]
cmp edi, ebx
je 0x461cef
add dword [ebp - 0x58], 0xffffffff
adc dword [ebp - 0x54], 0xffffffff
js 0x461d5a
jg 0x461cef
cmp dword [ebp - 0x58], ebx
jb 0x461d5a
mov eax, dword [ebp - 0x30]
mov word [eax], bx
xor eax, eax
mov al, byte [ebp - 0x28]
or eax, 1
push eax
push dword [ebp - 8]
lea eax, [ebp - 0x30]
push eax
push dword [ebp - 0x1c]
call fcn.0044309a
add esp, 0x10
cmp byte [ebp - 2], 2
mov esi, eax
jne 0x461d23
call dword [sym.imp.KERNEL32.DLL_GetLastError]
cmp eax, 0x6d
je 0x461d5a
cmp esi, ebx
je 0x461d5a
mov eax, dword [ebp - 8]
lea esi, [ebp - 0x30]
call fcn.00443361
push eax
lea ecx, [ebp - 0xc]
call fcn.0043d4e9
cmp edi, ebx
je 0x461d4b
cmp dword [ebp - 0x54], ebx
jl 0x461d5a
jg 0x461d4b
cmp dword [ebp - 0x58], ebx
jbe 0x461d5a
push 0x4a3f34
lea ecx, [ebp - 0xc]
call fcn.0043d4e9
jmp 0x461cda
lea ecx, [ebp - 0x30]
mov dword [ebp - 8], 0x4b0
call fcn.00437960
mov eax, dword [ebp - 8]
lea esi, [ebp - 0xc]
call fcn.00443361
mov dword [ebp - 0x30], eax
xor edi, edi
lea ecx, [ebp - 0x18]
call fcn.00402b5a
lea ecx, [ebp - 0x24]
call fcn.00437960
lea ecx, [ebp - 0x74]
call fcn.00437960
push dword [ebp - 0x30]
mov ecx, dword [ebp - 0x10]
push dword [ebp - 0x14]
call fcn.0043cd78
lea ecx, [ebp - 0xc]
call fcn.00437960
lea ecx, [ebp - 0x3c]
call fcn.00437960
lea ecx, [ebp - 0x40]
call fcn.00402b5a
lea ecx, [ebp - 0x14]
call fcn.00437960
lea ecx, [ebp - 0x2c]
call fcn.00437960
mov eax, edi
pop edi
pop esi
pop ebx
leave
ret 8