Function at 0x1006e1b0
Capabilities:
Resolve function by parsing pe exports

Disassembly:
sub esp, 0x24
push ebx
mov ebx, ecx
mov dword [esp + 0x10], 0
push ebp
push esi
push edi
mov eax, dword [ebx + 0x98]
xor edx, edx
mov edi, dword [ebx + 0x58]
and al, 0xc
mov esi, dword [ebx]
add edi, 0x28
xor ebp, ebp
mov dword [esp + 0x20], edx
mov dword [esp + 0x30], esi
mov dword [esp + 0x28], edi
cmp al, 4
je 0x1006e1f5
mov eax, dword [esi + 0x20]
and eax, 0x1000000
mov dword [esp + 0x24], edx
or eax, edx
je 0x1006e1fd
mov dword [esp + 0x24], 1
mov edx, 8
mov ecx, edi
call fcn.1006e0e0
cmp dword [ebx + 0x28], 7
mov ecx, 1
mov dword [ebx + 0x78], ebp
jne 0x1006e26a
cmp byte [esi + 0x51], 0
jne 0x1006e63a
cmp byte [esi + 0x52], 0
jne 0x1006e63a
mov byte [esi + 0x51], cl
cmp dword [esi + 0xbc], ebp
jle 0x1006e23c
mov dword [esi + 0x110], ecx
inc dword [esi + 0x118]
xor eax, eax
mov word [esi + 0x11c], ax
mov eax, dword [esi + 0xf4]
test eax, eax
je 0x1006e63a
mov dword [eax + 0xc], 7
mov eax, ecx
pop edi
pop esi
pop ebp
pop ebx
add esp, 0x24
ret
mov edx, dword [ebx + 0x6c]
mov dword [esp + 0x14], edx
cmp dword [esp + 0x24], ebp
je 0x1006e2ed
mov ecx, dword [ebx + 0x58]
add ecx, 0x168
mov dword [esp + 0x20], ecx
test byte [ecx + 8], 0x10
je 0x1006e299
mov eax, dword [ecx + 0xc]
mov ebp, dword [ecx + 0x10]
shr eax, 2
mov dword [esp + 0x1c], eax
jmp 0x1006e29b
xor eax, eax
xor edx, edx
xor esi, esi
xor ecx, ecx
cmp eax, 2
jb 0x1006e2cd
dec eax
mov dword [esp + 0x18], eax
mov edi, eax
nop dword [eax]
mov eax, dword [ebp + ecx*4]
add edx, dword [eax + 4]
mov eax, dword [ebp + ecx*4 + 4]
add ecx, 2
add esi, dword [eax + 4]
cmp ecx, edi
jl 0x1006e2b0
mov edi, dword [esp + 0x28]
mov eax, dword [esp + 0x1c]
cmp ecx, eax
jge 0x1006e2e0
mov eax, dword [ebp + ecx*4]
mov ecx, dword [esp + 0x14]
add ecx, dword [eax + 4]
mov dword [esp + 0x14], ecx
lea eax, [edx + esi]
mov edx, dword [esp + 0x14]
add edx, eax
mov dword [esp + 0x14], edx
mov esi, dword [ebx + 0x24]
lea eax, [esi + 1]
mov dword [ebx + 0x24], eax
cmp esi, edx
jge 0x1006e41c
nop
mov eax, dword [ebx + 0x6c]
cmp esi, eax
jge 0x1006e30c
mov eax, dword [ebx + 0x68]
jmp 0x1006e334
sub esi, eax
xor ecx, ecx
mov eax, dword [ebp]
mov eax, dword [eax + 4]
cmp esi, eax
jl 0x1006e32e
nop word [eax + eax]
inc ecx
sub esi, eax
mov eax, dword [ebp + ecx*4]
mov eax, dword [eax + 4]
cmp esi, eax
jge 0x1006e320
mov eax, dword [ebp + ecx*4]
mov eax, dword [eax]
cmp dword [esp + 0x24], 0
lea ecx, [esi + esi*4]
lea ecx, [eax + ecx*4]
mov dword [esp + 0x18], ecx
je 0x1006e3ef
cmp byte [ecx + 1], 0xfc
jne 0x1006e3ef
mov edx, dword [esp + 0x1c]
lea eax, [edx*4]
mov dword [esp + 0x2c], eax
add eax, 4
mov dword [esp + 0x28], eax
xor eax, eax
test edx, edx
jle 0x1006e381
mov ecx, dword [ecx + 0x10]
cmp dword [ebp + eax*4], ecx
je 0x1006e37d
inc eax
cmp eax, edx
jl 0x1006e372
mov ecx, dword [esp + 0x18]
cmp eax, edx
jne 0x1006e3eb
mov ebp, dword [esp + 0x20]
xor eax, eax
test edx, edx
mov ecx, ebp
mov edx, dword [esp + 0x28]
setne al
push eax
call fcn.1006b3d0
add esp, 4
mov dword [ebx + 0x28], eax
test eax, eax
jne 0x1006e432
mov ecx, dword [esp + 0x18]
mov edx, dword [esp + 0x2c]
mov ebp, dword [ebp + 0x10]
mov eax, dword [ecx + 0x10]
mov dword [edx + ebp], eax
mov edx, dword [esp + 0x1c]
mov eax, dword [esp + 0x20]
inc edx
mov dword [esp + 0x1c], edx
or word [eax + 8], 0x10
lea eax, [edx*4]
mov edx, dword [esp + 0x20]
mov dword [edx + 0xc], eax
mov eax, dword [ecx + 0x10]
mov edx, dword [esp + 0x14]
add edx, dword [eax + 4]
mov dword [esp + 0x14], edx
jmp 0x1006e3ef
mov edx, dword [esp + 0x14]
mov eax, dword [ebx + 0x98]
and al, 0xc
cmp al, 8
jb 0x1006e441
mov al, byte [ecx]
cmp al, 0xae
je 0x1006e441
cmp al, 0x3e
jne 0x1006e40b
cmp dword [ebx + 0x24], 1
jg 0x1006e441
mov esi, dword [ebx + 0x24]
lea eax, [esi + 1]
mov dword [ebx + 0x24], eax
cmp esi, edx
jl 0x1006e300
mov esi, 0x65
mov dword [ebx + 0x28], 0
mov eax, esi
pop edi
pop esi
pop ebp
pop ebx
add esp, 0x24
ret
mov esi, 1
mov eax, esi
pop edi
pop esi
pop ebp
pop ebx
add esp, 0x24
ret
mov eax, dword [esp + 0x30]
cmp dword [eax + 0x110], 0
je 0x1006e47d
mov eax, dword [str.interrupted]
mov ecx, str.unknown_error
test eax, eax
mov dword [ebx + 0x28], 9
mov esi, 1
cmovne ecx, eax
push ecx
push ebx
call fcn.1006cbb0
add esp, 8
mov eax, esi
pop edi
pop esi
pop ebp
pop ebx
add esp, 0x24
ret
mov ecx, dword [ebx + 0x98]
mov eax, 4
and cl, 0xc
mov ebp, 0xa02
cmp cl, al
jne 0x1006e4f0
mov word [edi + 8], ax
mov eax, esi
mov esi, dword [esp + 0x18]
cdq
mov dword [edi], eax
mov dword [edi + 4], edx
mov word [edi + 0x30], bp
movzx eax, byte [esi]
mov ecx, dword [eax*4 + 0x101034a8]
mov dword [edi + 0x38], ecx
test ecx, ecx
jne 0x1006e4c8
mov dword [edi + 0x34], ecx
lea eax, [ecx + 4]
mov byte [edi + 0x32], 1
add edi, 0x50
jmp 0x1006e4f4
lea edx, [ecx + 1]
nop dword [eax + eax]
mov al, byte [ecx]
inc ecx
test al, al
jne 0x1006e4d0
sub ecx, edx
mov byte [edi + 0x32], 1
and ecx, 0x3fffffff
mov eax, 4
mov dword [edi + 0x34], ecx
add edi, 0x50
jmp 0x1006e4f4
mov esi, dword [esp + 0x18]
mov word [edi + 8], ax
mov ecx, 4
mov eax, dword [esi + 4]
cdq
mov dword [edi], eax
mov dword [edi + 4], edx
mov word [edi + 0x30], cx
mov eax, dword [esi + 8]
cdq
mov dword [edi + 0x28], eax
mov dword [edi + 0x2c], edx
mov word [edi + 0x58], cx
mov eax, dword [esi + 0xc]
cdq
mov dword [edi + 0x50], eax
mov dword [edi + 0x54], edx
add edi, 0x78
cmp dword [edi + 0x18], 0x64
jge 0x1006e544
lea edx, [ecx + 0x60]
mov ecx, edi
push 0
call fcn.1006b3d0
add esp, 4
test eax, eax
jne 0x1006e635
jmp 0x1006e54a
mov eax, dword [edi + 0x14]
mov dword [edi + 0x10], eax
push dword [edi + 0x18]
mov edx, dword [edi + 0x10]
mov eax, 0x202
mov ecx, esi
mov word [edi + 8], ax
call fcn.1006dc20
mov ecx, dword [edi + 0x10]
mov ebp, eax
add esp, 4
cmp ebp, ecx
je 0x1006e5e3
mov dword [edi + 0xc], 0
test ebp, ebp
jne 0x1006e596
mov eax, 0x2400
test word [edi + 8], ax
je 0x1006e58b
mov ecx, edi
call fcn.1006b7f0
jmp 0x1006e606
mov ebp, 1
mov word [edi + 8], bp
jmp 0x1006e60b
mov esi, ebp
lea ecx, [esi + 1]
nop dword [eax + eax]
mov al, byte [esi]
inc esi
test al, al
jne 0x1006e5a0
sub esi, ecx
mov eax, 0x2400
and esi, 0x7fffffff
test word [edi + 8], ax
jne 0x1006e5c0
cmp dword [edi + 0x18], 0
je 0x1006e5c7
mov ecx, edi
call fcn.1006b830
mov eax, 0xa02
mov dword [edi + 0xc], esi
mov esi, dword [esp + 0x18]
mov dword [edi + 0x10], ebp
mov dword [edi + 0x24], 0
mov word [edi + 8], ax
jmp 0x1006e602
test ecx, ecx
je 0x1006e5ff
lea edx, [ecx + 1]
nop word [eax + eax]
mov al, byte [ecx]
inc ecx
test al, al
jne 0x1006e5f0
sub ecx, edx
and ecx, 0x3fffffff
mov dword [edi + 0xc], ecx
mov byte [edi + 0xa], 1
mov ebp, 1
mov ecx, dword [ebx + 0x98]
mov eax, ecx
and al, 0xc
cmp al, 4
jne 0x1006e67f
cmp dword [edi + 0x40], 4
jge 0x1006e644
push 0
mov edx, 4
lea ecx, [edi + 0x28]
call fcn.1006b3d0
add esp, 4
test eax, eax
je 0x1006e64a
mov ecx, 1
mov eax, ecx
pop edi
pop esi
pop ebp
pop ebx
add esp, 0x24
ret
mov eax, dword [edi + 0x3c]
mov dword [edi + 0x38], eax
mov eax, 0x202
mov dword [edi + 0x34], 2
mov word [edi + 0x30], ax
movzx eax, word [esi + 2]
push eax
push str._.2x
push dword [edi + 0x38]
push 3
call fcn.10050400
mov byte [edi + 0x32], 1
add esp, 0x10
mov word [edi + 0x58], bp
mov ecx, dword [ebx + 0x98]
shr ecx, 2
mov eax, 3
and ecx, 3
mov dword [ebx + 0x28], 0
sub eax, ecx
mov esi, 0x64
shl eax, 2
mov word [ebx + 0x90], ax
mov eax, dword [ebx + 0x58]
add eax, 0x28
pop edi
mov dword [ebx + 0x78], eax
mov eax, esi
pop esi
pop ebp
pop ebx
add esp, 0x24
ret