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

Disassembly:
sub esp, 0xc8
or dword [esp + 0xc], 0xffffffff
or dword [esp + 0x68], 0xffffffff
or dword [esp + 0x30], 0xffffffff
push ebx
xor eax, eax
push esi
inc eax
mov ebx, ecx
push edi
xor edi, edi
mov word [esp + 0x1c], ax
mov esi, eax
mov eax, dword [ebx + 0xd8]
mov dword [esp + 0xc], edi
mov dword [esp + 0x7c], edi
mov dword [esp + 0x10], edi
mov dword [esp + 0x14], edi
mov eax, dword [eax + 0x24]
lea ecx, [esp + 0x44]
push ecx
mov ecx, dword [eax + 0x5c]
mov dword [esp + 0xb8], ebx
mov dword [esp + 0x28], edi
mov dword [esp + 0x88], edi
mov dword [esp + 0x30], esi
mov dword [esp + 0x98], edi
mov dword [esp + 0xa8], edi
call fcn.1015692e
test eax, eax
js 0x10206bef
mov eax, dword [esp + 0x44]
lea ecx, [esp + 0xac]
push ecx
mov ecx, dword [eax + 0x14]
call fcn.1001c9e1
test eax, eax
js 0x10206bef
mov eax, dword [esp + 0xac]
add eax, 8
mov dword [esp + 0xa0], eax
mov eax, dword [ebx + 0xd8]
mov eax, dword [eax + 0x24]
push ebp
push dword [ebx + 0xe8]
mov dword [esp + 0x54], eax
call sym.VBE7.dll_VarPtr
mov ebp, dword [esp + 0xdc]
mov dword [esp + 0x6c], eax
mov dword [esp + 0x70], edi
mov dword [esp + 0x54], edi
mov dword [esp + 0x58], edi
mov dword [esp + 0x5c], edi
mov dword [esp + 0x60], edi
mov dword [esp + 0x64], edi
mov dword [esp + 0x68], edi
test ebp, ebp
je 0x10205b8e
mov eax, dword [0x102390a8]
cmp dword [eax + 0x128], edi
je 0x10205ba3
xor eax, eax
inc eax
cmp dword [esp + 0xe0], eax
jne 0x10205ba3
mov eax, dword [ebp]
lea ecx, [esp + 0x3c]
push ecx
push 0x1001a230
push ebp
call dword [eax]
test eax, eax
js 0x10205b08
mov eax, dword [esp + 0x3c]
mov ecx, dword [eax]
lea edx, [esp + 0xc4]
push edx
push 0x10053510
push eax
call dword [ecx + 0x68]
test eax, eax
js 0x10205afe
push 3
pop eax
cmp word [esp + 0xc4], ax
jne 0x10205afe
mov edi, dword [esp + 0xcc]
mov eax, dword [esp + 0x3c]
mov ecx, dword [eax]
push eax
call dword [ecx + 8]
mov eax, dword [ebx + 0xd8]
mov esi, dword [0x102390a8]
lea ecx, [esp + 0xd4]
push ecx
push edi
push dword [eax + 0x24]
call sym.VBE7.dll_VarPtr
push eax
call dword [esi + 0x128]
dec eax
dec eax
je 0x10205cb5
sub eax, 0xa
je 0x10205b95
sub eax, 4
jne 0x10205b9f
mov eax, dword [ebx + 0xd8]
mov eax, dword [eax + 0x24]
mov ecx, dword [eax + 0x5c]
mov eax, dword [ecx + 0xa4]
mov edx, 0x40000
test edx, eax
jne 0x10205b7c
test eax, 0x10000
je 0x10205b7c
inc word [ecx + 0x184]
mov eax, dword [ebx + 0xd8]
mov eax, dword [eax + 0x24]
mov eax, dword [eax + 0x5c]
xor ecx, ecx
mov word [eax + 0x186], cx
mov eax, dword [ebx + 0xd8]
mov eax, dword [eax + 0x24]
mov eax, dword [eax + 0x5c]
or dword [eax + 0xa4], edx
xor eax, eax
jmp 0x10206bee
xor eax, eax
inc eax
mov dword [esp + 0xa8], eax
mov esi, dword [esp + 0x30]
mov eax, dword [ebp]
lea ecx, [esp + 0x4c]
push ecx
push ebp
call dword [eax + 0xc]
mov edi, eax
test edi, edi
js 0x10206bec
mov ecx, dword [esp + 0x4c]
movzx eax, word [ecx + 0x2c]
mov dword [esp + 0x74], eax
mov dword [esp + 0x44], eax
movzx eax, word [ecx + 0x32]
mov dword [esp + 0x9c], eax
movzx eax, word [ecx + 0x38]
mov dword [esp + 0x94], eax
movzx eax, word [ecx + 0x3a]
push ecx
mov dword [esp + 0x94], eax
mov eax, dword [ebp]
push ebp
call dword [eax + 0x4c]
cmp dword [esp + 0x74], 0
je 0x1020689f
lea eax, [esp + 0x54]
push eax
push dword [esp + 0x54]
call fcn.1015692e
mov edi, eax
or eax, 0x800a0000
neg edi
sbb edi, edi
and edi, eax
jl 0x10206bec
xor ecx, ecx
xor ebp, ebp
mov dword [esp + 0x38], ebp
mov dword [esp + 0x3c], ecx
cmp dword [esp + 0x74], ecx
jbe 0x1020686b
mov dword [esp + 0xbc], 0x2000
test esi, esi
je 0x1020686b
and dword [esp + 0xc4], 0
and dword [esp + 0xc8], 0
or dword [esp + 0xcc], 0xffffffff
xor eax, eax
inc eax
mov word [esp + 0xd0], ax
lea esi, [esp + 0xc4]
lea edi, [esp + 0x14]
movsd dword es:[edi], dword [esi]
movsd dword es:[edi], dword [esi]
movsd dword es:[edi], dword [esi]
lea edx, [esp + 0x10]
push edx
movsd dword es:[edi], dword [esi]
mov esi, dword [esp + 0xe0]
mov eax, dword [esi]
push ecx
push esi
call dword [eax + 0x14]
mov edi, eax
test edi, edi
js 0x10206824
mov ecx, dword [esp + 0x10]
test byte [ecx + 0x30], 1
je 0x10205cbf
mov eax, dword [esi]
dec dword [esp + 0x44]
push ecx
push esi
call dword [eax + 0x50]
and dword [esp + 0x10], 0
jmp 0x102067c5
mov eax, 0x800adeb6
jmp 0x10206bee
mov eax, dword [esp + 0x48]
test eax, eax
je 0x10205ccc
add eax, 4
jmp 0x10205cce
xor eax, eax
lea edx, [esp + 0x78]
push edx
push 0
push eax
push esi
push ecx
push 0
call fcn.10052d1b
mov edi, eax
test edi, edi
js 0x1020680f
mov ecx, dword [esi]
xor eax, eax
push eax
push eax
push eax
lea eax, [esp + 0x8c]
push eax
mov eax, dword [esp + 0x20]
push dword [eax]
push esi
call dword [ecx + 0x30]
mov edi, eax
test edi, edi
js 0x10206824
mov eax, dword [esp + 0x80]
xor esi, esi
push esi
push esi
push esi
push esi
lea ecx, [esp + 0xbc]
push ecx
mov ecx, dword [ebx + 0xdc]
push eax
mov dword [esp + 0x70], eax
call fcn.1001cd83
mov edi, eax
test edi, edi
js 0x1020686f
cmp dword [esp + 0xe0], 2
lea eax, [esp + 0x14]
lea ecx, [ebx + 0x88]
push eax
jne 0x10205d5e
push dword [esp + 0xb0]
call fcn.1020d991
jmp 0x10205d73
mov eax, dword [esp + 0x14]
push esi
push dword [eax + 0x10]
push dword [esp + 0xb8]
push esi
call fcn.1004cd1b
mov edi, eax
cmp edi, 0x800a88cc
je 0x10205d8c
cmp edi, 0x800a88ca
je 0x10205d8c
mov cx, word [esp + 0x20]
jmp 0x10205d98
xor eax, eax
lea ecx, [eax + 1]
mov edi, esi
mov word [esp + 0x20], cx
test edi, edi
js 0x1020686f
mov edx, dword [ebx + 0xd8]
mov eax, 0x400
test word [edx + 0xc4], ax
je 0x10205dc7
mov eax, dword [esp + 0x14]
cmp eax, dword [edx + 0x24]
je 0x10205dc7
xor eax, eax
lea ecx, [eax + 1]
mov word [esp + 0x20], cx
movzx eax, cx
sub eax, esi
je 0x10206808
dec eax
je 0x10205df1
dec eax
je 0x102063fa
dec eax
je 0x10205e6c
sub eax, 4
je 0x10205df1
sub eax, 3
jne 0x1020678c
mov eax, dword [esp + 0x10]
push dword [eax]
lea ecx, [ebx + 8]
call fcn.102003c7
cmp eax, 0xffffffff
mov eax, dword [esp + 0x10]
je 0x10205e12
test byte [eax + 0x10], 2
je 0x1020678c
push dword [eax]
lea ecx, [ebx + 8]
call fcn.102003c7
xor ecx, ecx
cmp eax, 0xffffffff
setne cl
lea eax, [esp + 0x60]
push ecx
push eax
push dword [esp + 0x18]
push dword [esp + 0x54]
push dword [esp + 0xec]
push dword [ebx + 0xe8]
call fcn.102289ac
mov edi, eax
test edi, edi
js 0x1020686f
mov eax, dword [esp + 0xe0]
dec eax
je 0x10206722
dec eax
je 0x10206718
and dword [esp + 0x70], esi
jmp 0x1020675c
mov esi, dword [esp + 0x18]
mov edx, dword [esp + 0x1c]
cmp edx, dword [esi + 4]
jbe 0x10205e7d
xor ebp, ebp
jmp 0x10205e85
mov eax, dword [esp + 0x18]
mov ebp, dword [eax]
add ebp, edx
mov al, byte [ebp + 0x3d]
and al, 6
mov dword [esp + 0x84], ebp
cmp al, 2
jne 0x10205eb9
mov ecx, dword [esp + 0x18]
push 0xffffffffffffffff
push edx
call fcn.10201d7a
cmp eax, dword [esi + 4]
jbe 0x10205eaa
xor ebp, ebp
jmp 0x10205eae
mov ebp, dword [esi]
add ebp, eax
mov edx, dword [esp + 0x1c]
mov dword [esp + 0x84], ebp
mov ecx, dword [ebx + 0xd8]
mov eax, dword [esp + 0x14]
cmp eax, dword [ecx + 0x24]
jne 0x10205f17
cmp dword [esp + 0xe0], 2
je 0x10205f17
mov al, byte [ebp + 0x3d]
and al, 6
cmp al, 2
je 0x10205f17
mov dword [esp + 0x24], 8
mov al, byte [ebp + 0x3d]
and al, 6
cmp al, 2
jne 0x10205f42
mov eax, dword [esp + 0x18]
cmp edx, dword [eax + 4]
jbe 0x10205ef9
xor ecx, ecx
jmp 0x10205f01
mov eax, dword [esp + 0x18]
mov ecx, dword [eax]
add ecx, edx
mov ebp, dword [esp + 0x10]
mov eax, dword [ebp]
cmp eax, dword [ecx + 8]
je 0x10205f46
mov dword [esp + 0x24], 0xa
jmp 0x10205f46
push 0
lea eax, [esp + 0x28]
push eax
push 7
push edx
push dword [esp + 0x28]
push dword [esp + 0x8c]
push dword [esp + 0xbc]
call fcn.10062905
mov edi, eax
test edi, edi
js 0x1020686f
mov ebp, dword [esp + 0x10]
mov eax, dword [esp + 0x38]
test eax, eax
je 0x10205f59
and dword [esp + 0x24], 0
xor eax, eax
mov dword [esp + 0x38], eax
mov ecx, dword [ebx + 0xd8]
mov eax, dword [esp + 0x14]
cmp eax, dword [ecx + 0x24]
jne 0x1020614b
cmp dword [esp + 0x24], 0
jne 0x10206156
mov eax, dword [esp + 0x18]
mov edx, dword [esp + 0x1c]
cmp edx, dword [eax + 4]
jbe 0x10205f88
xor ecx, ecx
jmp 0x10205f90
mov eax, dword [esp + 0x18]
mov ecx, dword [eax]
add ecx, edx
movzx eax, word [ecx + 0x30]
mov esi, 0xffff
cmp ax, si
je 0x10205fb5
cmp ax, word [ebp + 0x1c]
je 0x102060bf
mov dword [esp + 0x24], 8
jmp 0x102060bf
cmp dword [esp + 0xe0], 2
je 0x10206098
mov ax, word [ebp + 0x1c]
mov esi, dword [ebp]
mov word [ecx + 0x30], ax
mov ebp, dword [esp + 0x18]
push 0xffffffffffffffff
push dword [esp + 0x20]
mov ecx, ebp
call fcn.10201d7a
cmp eax, dword [ebp + 4]
jbe 0x10205fe8
xor edx, edx
jmp 0x10205fed
mov edx, dword [ebp]
add edx, eax
mov ecx, 0xbfff
and word [edx + 0x18], cx
mov ebp, esi
mov dword [edx + 8], esi
and ebp, 0x40000000
je 0x1020603e
test esi, esi
js 0x1020603e
mov eax, 0x2000
test word [edx + 0x18], ax
jne 0x1020603e
movzx ecx, word [ebx + 0xf0]
mov eax, esi
shr eax, 0xf
xor ecx, eax
test cl, 0x7e
jne 0x1020603e
mov eax, esi
mov ecx, 0xffff
and ecx, eax
mov eax, dword [ebx + 4]
inc ecx
cmp eax, ecx
jg 0x10206038
mov eax, ecx
movzx eax, ax
mov dword [ebx + 4], eax
xor eax, eax
test esi, esi
setle al
shl ax, 0xd
xor ax, word [edx + 0x18]
and ax, word [esp + 0xbc]
xor word [edx + 0x18], ax
test ebp, ebp
je 0x102060b7
mov eax, 0x2000
test word [edx + 0x18], ax
jne 0x102060b7
movzx eax, word [ebx + 0xf0]
and eax, 0x7e
shl eax, 0xf
test esi, eax
je 0x102060b7
mov eax, 0xffff
and esi, eax
mov eax, dword [ebx + 0xf4]
inc esi
cmp eax, esi
jg 0x1020608d
mov eax, esi
movzx eax, ax
mov dword [ebx + 0xf4], eax
jmp 0x102060b7
mov edx, dword [ebp]
test edx, edx
js 0x102060ab
test edx, 0x10000000
jne 0x102067e5
mov ebp, 0xbfff
and word [ecx + 0x18], bp
mov dword [ecx + 8], edx
mov edx, dword [esp + 0x1c]
mov ebp, dword [esp + 0x10]
mov eax, dword [esp + 0x18]
cmp edx, dword [eax + 4]
jbe 0x102060d2
and dword [esp + 0xa0], 0
jmp 0x102060e1
mov eax, dword [esp + 0x18]
mov eax, dword [eax]
add eax, edx
mov dword [esp + 0xa0], eax
cmp dword [ebp + 0x10], 2
jne 0x1020614b
mov ecx, dword [ebx + 0x4c]
jmp 0x10206134
cmp ecx, dword [ebx + 0xc]
jbe 0x102060f5
xor ebp, ebp
jmp 0x102060fa
mov ebp, dword [ebx + 8]
add ebp, ecx
test byte [ebp], 8
je 0x10206123
test byte [ebp + 0x10], 4
je 0x10206123
mov ecx, ebp
call fcn.100dd101
mov ecx, dword [esp + 0xa0]
mov esi, eax
call fcn.100dd101
cmp esi, eax
je 0x1020613f
mov ecx, dword [esp + 0x7c]
cmp ecx, dword [ebx + 0xc]
jbe 0x1020612c
xor eax, eax
jmp 0x10206131
mov eax, dword [ebx + 8]
add eax, ecx
mov ecx, dword [eax + 4]
mov dword [esp + 0x7c], ecx
cmp ecx, 0xffffffff
je 0x1020614b
jmp 0x102060ec
mov ecx, dword [esp + 0x10]
mov ax, word [ecx + 0x1c]
mov word [ebp + 0xa], ax
cmp dword [esp + 0x24], 0
je 0x1020678c
mov eax, dword [esp + 0x18]
mov ecx, dword [esp + 0x1c]
cmp ecx, dword [eax + 4]
jbe 0x10206167
xor eax, eax
jmp 0x1020616f
mov eax, dword [esp + 0x18]
mov eax, dword [eax]
add eax, ecx
test byte [eax + 0x26], 0x80
mov ecx, dword [esp + 0x10]
je 0x10206183
cmp dword [ecx + 0x10], 2
jne 0x1020678c
mov eax, dword [esp + 0x84]
mov al, byte [eax + 0x3d]
and al, 6
xor esi, esi
cmp al, 2
jne 0x102061ce
mov eax, dword [esp + 0xe0]
dec eax
je 0x102061bb
dec eax
je 0x102061a8
and dword [esp + 0x70], esi
jmp 0x102061d6
xor eax, eax
cmp dword [esp + 0x24], 0xa
setne al
lea eax, [eax*2 + 0xa]
jmp 0x102061c8
xor eax, eax
cmp dword [esp + 0x24], 0xa
sete al
add eax, 9
mov dword [esp + 0x70], eax
jmp 0x102061d6
mov dword [esp + 0x70], 8
push 0
lea eax, [esp + 0x64]
push eax
push ecx
push dword [esp + 0x54]
push dword [esp + 0xec]
push dword [ebx + 0xe8]
call fcn.102289ac
mov edi, eax
test edi, edi
js 0x1020686f
cmp dword [esp + 0xe0], 2
je 0x10206375
push dword [esp + 0x1c]
mov ecx, ebx
call fcn.10046cfe
test eax, eax
js 0x10206334
mov ecx, dword [esp + 0x18]
lea eax, [esp + 0x34]
push eax
push dword [esp + 0x20]
call fcn.10200f7e
test eax, eax
js 0x10206334
mov ecx, dword [esp + 0x34]
cmp dword [ecx], 0xffffffff
jne 0x10206274
mov eax, dword [esp + 0x1c]
mov dword [ecx], eax
mov edx, dword [esp + 0x1c]
mov ecx, dword [esp + 0x18]
cmp edx, dword [ecx + 4]
jbe 0x10206259
xor ecx, ecx
jmp 0x1020625d
mov ecx, dword [ecx]
add ecx, edx
mov ebp, 0xbfff
and word [ecx + 0x18], bp
xor ebp, ebp
inc ebp
mov dword [ecx + 8], edx
mov ecx, dword [esp + 0x34]
mov esi, ebp
jmp 0x10206277
xor ebp, ebp
inc ebp
mov eax, dword [ebx + 0xd8]
push 0
lea edx, [esp + 0x60]
push edx
push ecx
push dword [eax + 0x24]
push dword [eax + 0x24]
push dword [ebx + 0xe8]
call fcn.102289ac
mov edi, eax
test esi, esi
je 0x10206321
mov ecx, dword [esp + 0x18]
mov eax, dword [esp + 0x1c]
cmp eax, dword [ecx + 4]
jbe 0x102062b1
xor edx, edx
jmp 0x102062b5
mov edx, dword [ecx]
add edx, eax
test byte [edx + 0x26], 0x80
je 0x10206307
cmp edi, 0x8002802b
jne 0x10206307
cmp eax, dword [ecx + 4]
jbe 0x102062cc
xor ecx, ecx
jmp 0x102062d0
mov ecx, dword [ecx]
add ecx, eax
mov eax, dword [ebx + 0xd8]
lea edx, [esp + 0x5c]
push edx
push dword [esp + 0x38]
push dword [eax + 0x24]
push dword [eax + 0x24]
push dword [ebx + 0xe8]
call fcn.100dd101
push eax
call fcn.10228d93
mov ecx, dword [esp + 0x18]
mov edi, eax
mov eax, dword [esp + 0x1c]
mov dword [esp + 0x98], ebp
cmp eax, dword [ecx + 4]
jbe 0x10206310
xor ecx, ecx
jmp 0x10206314
mov ecx, dword [ecx]
add ecx, eax
mov edx, 0xbfff
and word [ecx + 0x18], dx
or dword [ecx + 8], 0xffffffff
mov eax, dword [ebx + 0xd8]
mov eax, dword [eax + 0x24]
push dword [esp + 0x34]
mov ecx, dword [eax]
push eax
call dword [ecx + 0x50]
cmp edi, 0x8002802b
jne 0x1020636d
mov ecx, dword [esp + 0x1c]
mov eax, dword [esp + 0x18]
cmp ecx, dword [eax + 4]
jbe 0x1020634d
xor eax, eax
jmp 0x10206355
mov eax, dword [esp + 0x18]
mov eax, dword [eax]
add eax, ecx
mov al, byte [eax + 0x26]
and al, 0x80
movzx eax, al
neg eax
sbb eax, eax
and eax, 3
add eax, 8
mov dword [esp + 0x70], eax
xor edi, edi
test edi, edi
js 0x1020686f
lea eax, [esp + 0x2c]
push eax
lea eax, [esp + 0x34]
push eax
push dword [ebx + 0xe8]
lea eax, [esp + 0x5c]
push eax
mov ecx, ebx
call fcn.10205891
cmp dword [esp + 0x30], 0
je 0x102063b5
mov eax, dword [ebx + 0xd8]
mov eax, dword [eax + 0x24]
mov eax, dword [eax + 0x5c]
test dword [eax + 0xa4], 0x40000
jne 0x102063b5
xor eax, eax
inc eax
jmp 0x102063b7
xor eax, eax
push dword [esp + 0x60]
mov ebp, dword [sym.imp.OLEAUT32.dll_SysStringLen]
mov dword [esp + 0x3c], eax
call ebp
push dword [esp + 0x5c]
call ebp
and dword [esp + 0x60], 0
and dword [esp + 0x5c], 0
cmp dword [esp + 0x2c], 0
je 0x1020678c
mov eax, dword [esp + 0x98]
test eax, eax
jne 0x10206801
push dword [esp + 0x1c]
jmp 0x10206701
mov eax, dword [esp + 0x10]
dec dword [esp + 0x44]
cmp dword [eax + 0x10], 2
jne 0x1020640f
inc dword [esp + 0x88]
push esi
lea ecx, [esp + 0x44]
push ecx
push dword [eax + 0x10]
mov ecx, dword [esp + 0x24]
push dword [esp + 0x28]
call fcn.1020132d
mov edi, eax
test edi, edi
js 0x102067ef
push esi
lea eax, [esp + 0x28]
push eax
push 7
push dword [esp + 0x4c]
push dword [esp + 0x28]
push dword [esp + 0x8c]
push dword [esp + 0xbc]
call fcn.10062905
mov edi, eax
test edi, edi
js 0x1020686f
push dword [esp + 0x40]
mov ecx, dword [esp + 0x1c]
call fcn.1007c1f3
or dword [esp + 0x40], 0xffffffff
test ebp, ebp
je 0x1020647e
mov edx, esi
mov dword [esp + 0x24], edx
mov dword [esp + 0x38], esi
jmp 0x10206482
mov edx, dword [esp + 0x24]
mov ecx, dword [ebx + 0xd8]
mov eax, dword [esp + 0x14]
cmp eax, dword [ecx + 0x24]
jne 0x10206537
test edx, edx
jne 0x1020653f
mov edx, dword [esp + 0x18]
mov eax, dword [esp + 0x1c]
cmp eax, dword [edx + 4]
jbe 0x102064ae
mov ecx, esi
jmp 0x102064b2
mov ecx, dword [edx]
add ecx, eax
test byte [ecx], 8
jne 0x102064c3
push 8
pop edx
mov dword [esp + 0x24], edx
jmp 0x10206543
cmp eax, dword [edx + 4]
jbe 0x102064cc
mov ecx, esi
jmp 0x102064d0
mov ecx, dword [edx]
add ecx, eax
mov eax, dword [esp + 0x10]
cmp dword [eax + 0x10], 2
jne 0x1020678c
mov ax, word [eax + 0x1c]
mov word [ecx + 0xa], ax
mov eax, dword [esp + 0x10]
mov edx, dword [eax]
mov ebp, 0xbfff
and word [ecx + 0x24], bp
mov dword [ecx + 0x14], edx
test edx, 0x40000000
je 0x10206533
mov eax, 0x2000
test word [ecx + 0x24], ax
jne 0x10206533
movzx eax, word [ebx + 0xf0]
and eax, 0x7e
shl eax, 0xf
test edx, eax
je 0x10206533
mov eax, 0xffff
and edx, eax
mov eax, dword [ebx + 4]
inc edx
cmp eax, edx
jg 0x1020652d
mov eax, edx
movzx eax, ax
mov dword [ebx + 4], eax
mov edx, dword [esp + 0x24]
test edx, edx
je 0x1020678c
mov eax, dword [esp + 0x1c]
cmp dword [0x1023b3dc], esi
jne 0x102066f5
mov ebp, esi
cmp edx, 0xa
je 0x10206563
mov dword [esp + 0x70], 9
cmp edx, 8
jne 0x10206567
mov dword [esp + 0x70], edx
mov esi, dword [esp + 0x10]
mov eax, dword [esi]
push eax
mov dword [esp + 0x80], eax
call fcn.101ffb76
test eax, eax
je 0x10206596
mov eax, dword [esp + 0x7c]
shr eax, 0x1d
not eax
test al, 1
je 0x10206596
cmp dword [esi + 0x10], 2
jne 0x10206596
xor eax, eax
inc eax
jmp 0x10206598
xor eax, eax
push eax
lea eax, [esp + 0x64]
push eax
push esi
push dword [esp + 0x54]
push dword [esp + 0xec]
push dword [ebx + 0xe8]
call fcn.102289ac
mov edi, eax
test edi, edi
js 0x1020686f
mov ecx, dword [esp + 0x18]
lea eax, [esp + 0x8c]
push eax
push dword [esp + 0x20]
call fcn.1015692e
mov edi, eax
test edi, edi
js 0x102067ef
mov edx, dword [esp + 0x8c]
cmp dword [edx], 0xffffffff
jne 0x1020661f
mov eax, dword [esp + 0x1c]
mov dword [edx], eax
mov edx, dword [esp + 0x1c]
mov ecx, dword [esp + 0x18]
cmp edx, dword [ecx + 4]
jbe 0x10206601
xor ecx, ecx
jmp 0x10206605
mov ecx, dword [ecx]
add ecx, edx
mov ebp, 0xbfff
and word [ecx + 0x24], bp
xor esi, esi
inc esi
mov dword [ecx + 0x14], edx
mov edx, dword [esp + 0x8c]
mov ebp, esi
jmp 0x10206622
xor esi, esi
inc esi
cmp dword [esp + 0x70], 8
je 0x10206650
mov eax, dword [ebx + 0xd8]
push esi
lea ecx, [esp + 0x60]
push ecx
push edx
push dword [eax + 0x24]
push dword [eax + 0x24]
push dword [ebx + 0xe8]
call fcn.102289ac
mov edx, dword [esp + 0x8c]
mov edi, eax
mov eax, dword [ebx + 0xd8]
mov eax, dword [eax + 0x24]
mov ecx, dword [eax]
push edx
push eax
call dword [ecx + 0x50]
test ebp, ebp
je 0x10206686
mov eax, dword [esp + 0x1c]
mov ecx, dword [esp + 0x18]
cmp eax, dword [ecx + 4]
jbe 0x10206675
xor ecx, ecx
jmp 0x10206679
mov ecx, dword [ecx]
add ecx, eax
mov edx, 0xbfff
and word [ecx + 0x24], dx
or dword [ecx + 0x14], 0xffffffff
test edi, edi
js 0x1020686f
lea eax, [esp + 0x2c]
push eax
lea eax, [esp + 0x34]
push eax
push dword [ebx + 0xe8]
lea eax, [esp + 0x5c]
push eax
mov ecx, ebx
call fcn.10205891
cmp dword [esp + 0x30], 0
je 0x102066d1
mov eax, dword [ebx + 0xd8]
mov eax, dword [eax + 0x24]
mov eax, dword [eax + 0x5c]
test dword [eax + 0xa4], 0x40000
jne 0x102066d1
mov dword [esp + 0x38], esi
xor esi, esi
jmp 0x102066d7
xor esi, esi
mov dword [esp + 0x38], esi
push dword [esp + 0x60]
mov ebp, dword [sym.imp.OLEAUT32.dll_SysStringLen]
call ebp
push dword [esp + 0x5c]
call ebp
mov eax, dword [esp + 0x1c]
mov dword [esp + 0x60], esi
mov dword [esp + 0x5c], esi
cmp dword [esp + 0x2c], 0
je 0x1020678c
push eax
push 0x800adeb6
push dword [ebx + 0xd8]
call fcn.101acb26
mov edi, eax
jmp 0x1020686f
mov dword [esp + 0x70], 0xb
jmp 0x1020675c
mov eax, dword [esp + 0x10]
mov eax, dword [eax + 0x10]
dec eax
dec eax
je 0x10206754
dec eax
dec eax
je 0x1020674a
sub eax, 4
je 0x10206740
mov dword [esp + 0x70], 8
jmp 0x1020675c
mov dword [esp + 0x70], 0x11
jmp 0x1020675c
mov dword [esp + 0x70], 0x10
jmp 0x1020675c
mov dword [esp + 0x70], 0xf
lea eax, [esp + 0x2c]
push eax
lea eax, [esp + 0x34]
push eax
push dword [ebx + 0xe8]
lea eax, [esp + 0x5c]
push eax
mov ecx, ebx
call fcn.10205891
push dword [esp + 0x60]
call dword [sym.imp.OLEAUT32.dll_SysStringLen]
and dword [esp + 0x60], esi
cmp dword [esp + 0x2c], esi
jne 0x10206801
push dword [esp + 0x80]
call sub.OLEAUT32.dll_SysStringLen
mov ecx, dword [esp + 0xdc]
push dword [esp + 0x10]
mov eax, dword [ecx]
or dword [esp + 0x7c], 0xffffffff
push ecx
call dword [eax + 0x50]
mov ecx, dword [esp + 0x14]
and dword [esp + 0x10], 0
test ecx, ecx
je 0x102067c1
mov eax, dword [ecx]
push ecx
call dword [eax + 8]
mov ebp, dword [esp + 0x38]
mov ecx, dword [esp + 0x3c]
test ebp, ebp
jne 0x102067d2
inc ecx
mov dword [esp + 0x3c], ecx
cmp ecx, dword [esp + 0x74]
jae 0x1020686b
mov esi, dword [esp + 0x30]
jmp 0x10205c3f
mov edi, 0x800a9da6
jmp 0x1020686f
cmp edi, 0x800a9c64
je 0x1020686f
push dword [esp + 0x1c]
push edi
jmp 0x10206706
mov edi, 0x800adeb6
jmp 0x1020686f
mov edi, 0x800a9c64
jmp 0x1020686f
cmp edi, 0x8002802b
je 0x1020681f
cmp edi, 0x80029c4a
jne 0x10206824
mov edi, 0x800a9db6
mov esi, dword [esp + 0x28]
push dword [esp + 0x54]
mov ebx, dword [sym.imp.OLEAUT32.dll_SysStringLen]
call ebx
push dword [esp + 0x60]
call ebx
push dword [esp + 0x5c]
call ebx
cmp dword [esp + 0x10], 0
je 0x10206858
mov ecx, dword [esp + 0xdc]
push dword [esp + 0x10]
mov eax, dword [ecx]
push ecx
call dword [eax + 0x50]
test esi, esi
je 0x10206bec
mov eax, dword [esi]
push esi
call dword [eax + 8]
jmp 0x10206bec
test edi, edi
jns 0x1020689f
mov ecx, dword [esp + 0x14]
test ecx, ecx
je 0x1020687d
mov eax, dword [ecx]
push ecx
call dword [eax + 8]
cmp dword [esp + 0x40], 0xffffffff
je 0x10206891
push dword [esp + 0x40]
mov ecx, dword [esp + 0x1c]
call fcn.1007c1f3
push dword [esp + 0x80]
call sub.OLEAUT32.dll_SysStringLen
jmp 0x10206824
cmp dword [esp + 0xe0], 2
jne 0x102068af
movzx ebp, word [ebx + 0x36]
jmp 0x10206900
and dword [esp + 0x34], 0
lea ebp, [ebx + 8]
mov ecx, ebp
call fcn.10041dde
mov esi, eax
cmp esi, 0xffffffff
je 0x102068fc
mov ebx, dword [esp + 0x34]
cmp esi, dword [ebp + 4]
jbe 0x102068d2
xor ecx, ecx
jmp 0x102068d7
mov ecx, dword [ebp]
add ecx, esi
call fcn.1005a049
cmp eax, 1
jne 0x102068e2
inc ebx
push esi
mov ecx, ebp
call fcn.1004e4ca
mov esi, eax
cmp esi, 0xffffffff
jne 0x102068c9
mov dword [esp + 0x34], ebx
mov ebx, dword [esp + 0xb8]
mov ebp, dword [esp + 0x34]
mov eax, dword [ebx + 0x44]
xor edx, edx
mov dword [esp + 0x2c], edx
jmp 0x10206931
cmp eax, dword [ebx + 0xc]
jbe 0x10206914
xor esi, esi
jmp 0x10206919
mov esi, dword [ebx + 8]
add esi, eax
mov ecx, esi
call fcn.1005a049
mov edx, dword [esp + 0x2c]
cmp eax, 1
jne 0x1020692e
inc edx
mov dword [esp + 0x2c], edx
mov eax, dword [esi + 4]
cmp eax, 0xffffffff
jne 0x1020690b
mov eax, dword [ebx + 0x4c]
cmp eax, 0xffffffff
je 0x10206972
cmp eax, dword [ebx + 0xc]
jbe 0x10206947
xor ecx, ecx
jmp 0x1020694c
mov ecx, dword [ebx + 8]
add ecx, eax
test byte [ecx], 8
je 0x10206958
test byte [ecx + 0x10], 4
je 0x10206958
inc edx
cmp eax, dword [ebx + 0xc]
jbe 0x10206961
xor ecx, ecx
jmp 0x10206966
mov ecx, dword [ebx + 8]
add ecx, eax
mov eax, dword [ecx + 4]
cmp eax, 0xffffffff
jne 0x1020693e
mov dword [esp + 0x2c], edx
mov eax, dword [ebx + 0xd8]
mov ecx, dword [eax + 0x24]
mov eax, dword [ecx]
movzx esi, word [ebx + 0x2e]
push ecx
mov dword [esp + 0x2c], ecx
call dword [eax + 4]
jmp 0x10206a94
cmp dword [esp + 0x30], 0
je 0x10206a9c
mov esi, dword [esp + 0x28]
mov eax, dword [esi]
lea ecx, [esp + 0xb4]
push ecx
push 0
push esi
call dword [eax + 0x20]
mov edi, eax
test edi, edi
js 0x10206828
mov eax, dword [esi]
lea ecx, [esp + 0xc0]
push ecx
push dword [esp + 0xb8]
push esi
call dword [eax + 0x38]
mov edi, eax
test edi, edi
js 0x10206828
mov eax, dword [esi]
push esi
call dword [eax + 8]
mov esi, dword [esp + 0xc0]
mov eax, dword [esi]
lea ecx, [esp + 0x4c]
push ecx
push esi
mov dword [esp + 0x30], esi
call dword [eax + 0xc]
mov edi, eax
test edi, edi
js 0x10206828
mov ecx, dword [esp + 0x4c]
cmp dword [ecx + 0x28], 4
jne 0x10206a0c
test byte [ecx + 0x36], 0x40
je 0x10206a87
mov eax, dword [ebx + 0xd8]
mov edx, 0x400
test word [eax + 0xc4], dx
jne 0x10206a87
mov eax, 0x200
test word [ecx + 0x36], ax
jne 0x10206a87
xor eax, eax
xor esi, esi
cmp ax, word [ecx + 0x2c]
jae 0x10206a81
mov ecx, dword [esp + 0x28]
mov eax, dword [ecx]
lea edx, [esp + 0x10]
push edx
push esi
push ecx
call dword [eax + 0x14]
mov edi, eax
test edi, edi
js 0x10206b31
mov ecx, dword [esp + 0x10]
test byte [ecx + 0x30], 1
jne 0x10206a64
cmp dword [esp + 0xe0], 2
je 0x10206a64
inc ebp
mov edx, dword [esp + 0x28]
mov eax, dword [edx]
push ecx
push edx
call dword [eax + 0x50]
and dword [esp + 0x10], 0
mov ecx, dword [esp + 0x4c]
movzx eax, word [ecx + 0x2c]
inc esi
cmp esi, eax
jb 0x10206a35
movzx esi, word [ecx + 0x30]
jmp 0x10206a89
xor esi, esi
mov edx, dword [esp + 0x28]
mov eax, dword [edx]
push ecx
push edx
call dword [eax + 0x4c]
test esi, esi
jne 0x1020698e
mov ecx, dword [esp + 0x28]
test ecx, ecx
je 0x10206aaa
mov eax, dword [ecx]
push ecx
call dword [eax + 8]
mov esi, dword [ebx + 0xe8]
mov edx, dword [esi + 0xa4]
test edx, 0x10000
je 0x10206b99
test edx, 0x40000
jne 0x10206b99
cmp ebp, dword [esp + 0x44]
jne 0x10206b44
cmp dword [esp + 0xa8], 0
jne 0x10206b44
mov ecx, dword [esp + 0xe0]
mov ebp, dword [esp + 0x88]
sub ecx, 2
xor eax, eax
cmp dword [esp + 0x2c], ebp
setne al
neg ecx
sbb ecx, ecx
test eax, ecx
jne 0x10206b44
cmp dword [esp + 0xe0], 2
je 0x10206b99
mov eax, dword [ebx + 0xd8]
mov esi, dword [esp + 0x90]
mov eax, dword [eax + 0x24]
push esi
push dword [esp + 0x98]
add eax, 4
mov ecx, dword [eax]
push eax
call dword [ecx + 0x1c]
jmp 0x10206b97
push dword [esp + 0x4c]
mov esi, dword [esp + 0x2c]
mov eax, dword [esi]
push esi
call dword [eax + 0x4c]
jmp 0x10206828
test edx, 0x100000
je 0x10206b63
inc word [esi + 0x186]
mov eax, dword [ebx + 0xe8]
and dword [eax + 0xa4], 0xffefffff
mov eax, dword [ebx + 0xd8]
mov ecx, 0xff7f
and word [eax + 0x96], cx
mov eax, dword [ebx + 0xd8]
mov ecx, dword [eax + 0x24]
mov eax, dword [esp + 0x90]
inc eax
push eax
push dword [esp + 0x98]
add ecx, 4
mov edx, dword [ecx]
push ecx
call dword [edx + 0x1c]
mov edi, eax
push dword [esp + 0x54]
call dword [sym.imp.OLEAUT32.dll_SysStringLen]
cmp dword [esp + 0xe0], 2
je 0x10206bec
mov eax, dword [ebx + 0xe8]
test dword [eax + 0xa4], 0x40000
jne 0x10206bec
cmp dword [esp + 0x74], 0
mov ecx, dword [esp + 0x9c]
jne 0x10206be5
movzx eax, word [ebx + 0xb4]
cmp ax, cx
ja 0x10206bdc
movzx eax, cx
mov word [ebx + 0xb4], ax
jmp 0x10206bec
mov word [ebx + 0xb4], cx
mov eax, edi
pop ebp
pop edi
pop esi
pop ebx
add esp, 0xc8
ret 8