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

Disassembly:
sub esp, 0x80
mov eax, dword [0x1023904c]
xor eax, esp
mov dword [esp + 0x7c], eax
mov eax, dword [esp + 0xa0]
mov ecx, dword [esp + 0x90]
and dword [esp + 0x34], 0
and dword [esp + 0x40], 0
push ebx
mov ebx, dword [esp + 0x88]
cmp dword [ebx + 8], 3
mov dword [esp + 0x30], eax
mov eax, dword [esp + 0xa8]
push ebp
push esi
mov esi, dword [esp + 0xa4]
mov dword [esp + 0x2c], eax
mov eax, dword [esp + 0xb4]
push edi
mov edi, dword [esp + 0x9c]
mov dword [esp + 0x24], ecx
mov dword [esp + 0x10], esi
mov dword [esp + 0x48], eax
jne 0x101b57ae
mov eax, dword [esp + 0x98]
cmp eax, dword [esp + 0xa4]
jne 0x101b57ae
cmp edi, esi
jne 0x101b57ae
mov eax, dword [esp + 0xac]
cmp eax, dword [ecx]
jne 0x101b57ae
mov ebp, 0x9d0c
jmp 0x101b6188
push 0x7d0
call fcn.1000ac41
mov dword [esp + 0x60], eax
test eax, eax
jne 0x101b57c8
push 7
pop ebp
jmp 0x101b6188
movzx ecx, word [ebx]
lea eax, [esp + 0x50]
push eax
lea eax, [esp + 0x48]
push eax
lea eax, [esp + 0x40]
push eax
mov eax, ecx
shr eax, 4
and eax, 1
push eax
mov eax, ecx
shr eax, 5
and eax, 1
push eax
mov eax, dword [ebx + 0x44]
shr ecx, 3
and ecx, 1
push ecx
push dword [eax + 4]
call fcn.101b627d
mov ebp, eax
mov dword [esp + 0x2c], ebp
test ebp, ebp
jne 0x101b617f
push 0x402
call fcn.1000ac41
mov dword [esp + 0x34], eax
test eax, eax
jne 0x101b5826
push 7
pop ebp
jmp 0x101b6176
cmp dword [ebx + 4], 2
je 0x101b5871
mov eax, dword [esp + 0x24]
mov ecx, dword [esp + 0x98]
mov edx, dword [eax]
mov ebp, ecx
mov dword [esp + 0x28], 1
mov dword [esp + 0x14], ebp
mov dword [esp + 0x40], edx
cmp edx, dword [esp + 0xac]
jne 0x101b586a
cmp ecx, dword [esp + 0xa4]
jne 0x101b586a
cmp esi, edi
jbe 0x101b586a
xor ecx, ecx
inc ecx
mov dword [esp + 0x18], ecx
jmp 0x101b58b0
and dword [esp + 0x18], 0
jmp 0x101b58b0
mov edx, dword [esp + 0x24]
mov eax, dword [esp + 0xa4]
mov edx, dword [edx]
xor ecx, ecx
inc ecx
mov ebp, eax
mov dword [esp + 0x18], ecx
mov dword [esp + 0x14], ebp
mov dword [esp + 0x40], edx
cmp edx, dword [esp + 0xac]
jne 0x101b58ab
cmp eax, dword [esp + 0x98]
jne 0x101b58ab
cmp esi, edi
jbe 0x101b58ab
mov dword [esp + 0x28], ecx
jmp 0x101b58b0
and dword [esp + 0x28], 0
cmp dword [ebx + 8], 0
jne 0x101b596b
lea eax, [esp + 0x74]
push eax
push 0
push ebp
lea ecx, [edx + 0xc]
call fcn.100d0d72
mov eax, dword [ebx + 0x44]
xor edx, edx
cmp dword [eax + 0x20], edx
je 0x101b58f8
mov dword [eax + 0x20], edx
mov ecx, dword [ebx + 0x44]
mov eax, dword [esp + 0x78]
mov dword [ecx + 0x28], eax
mov ecx, dword [esp + 0x88]
mov eax, dword [ebx + 0x44]
test ecx, ecx
je 0x101b58f5
dec ecx
mov dword [eax + 0x24], ecx
jmp 0x101b58f8
mov dword [eax + 0x24], edx
mov eax, dword [ebx + 0x44]
cmp dword [eax + 0x1c], edx
je 0x101b590c
mov ecx, dword [eax + 0x28]
mov eax, dword [eax + 0x24]
mov dword [esp + 0x20], ecx
jmp 0x101b5920
mov eax, dword [esp + 0x78]
mov dword [esp + 0x20], eax
mov eax, dword [esp + 0x88]
test eax, eax
je 0x101b5926
dec eax
mov dword [esp + 0x1c], eax
jmp 0x101b592c
mov eax, edx
mov dword [esp + 0x1c], edx
mov ecx, dword [esp + 0x24]
mov edx, dword [ecx]
mov dword [esp + 0x40], edx
cmp dword [esp + 0xac], edx
jne 0x101b597c
mov ecx, dword [esp + 0x98]
cmp ecx, dword [esp + 0x20]
jb 0x101b5961
cmp ecx, eax
ja 0x101b5961
mov ecx, dword [esp + 0xa4]
cmp ecx, dword [esp + 0x20]
jb 0x101b5961
cmp ecx, eax
jbe 0x101b597c
mov ebp, 0x9d0c
jmp 0x101b6176
mov edx, dword [edx + 0x20]
and dword [esp + 0x20], 0
dec edx
mov dword [esp + 0x1c], edx
mov edx, dword [esp + 0x40]
push ebp
lea ecx, [edx + 0xc]
mov dword [esp + 0x74], ebp
call fcn.1006b66f
mov ecx, dword [esp + 0xac]
mov dword [esp + 0x5c], eax
mov edx, dword [esp + 0x18]
mov eax, dword [esp + 0x24]
mov eax, dword [eax]
cmp ecx, eax
jne 0x101b59de
cmp dword [ebx + 4], 2
je 0x101b59c5
cmp ebp, dword [esp + 0xa4]
jne 0x101b59de
cmp dword [esp + 0x28], 0
je 0x101b59bc
cmp esi, edi
jbe 0x101b59de
xor edx, edx
inc edx
mov dword [esp + 0x18], edx
jmp 0x101b59de
cmp ebp, dword [esp + 0x98]
jne 0x101b59de
test edx, edx
je 0x101b59d6
cmp esi, edi
jbe 0x101b59de
mov dword [esp + 0x28], 1
cmp dword [eax + 0x20], 0
jne 0x101b59f7
xor ecx, ecx
xor ebp, ebp
xor edi, edi
mov dword [esp + 0x1c], ecx
mov dword [esp + 0x20], edi
jmp 0x101b5c92
cmp dword [esp + 0x5c], 0
je 0x101b5a25
mov ecx, dword [esp + 0x40]
cmp ecx, eax
jne 0x101b5a25
mov eax, dword [esp + 0x70]
cmp eax, ebp
je 0x101b5a25
push 0
push 1
push eax
call fcn.1015692e
test eax, eax
js 0x101b6165
and dword [esp + 0x5c], 0
mov esi, dword [esp + 0x34]
lea eax, [esp + 0x6c]
push eax
mov eax, dword [esp + 0x28]
mov ecx, dword [eax]
push 0x400
push 0
inc esi
push esi
push ebp
call fcn.1006f5d2
test eax, eax
js 0x101b6165
test byte [0x102390ac], 2
jne 0x101b5b89
cmp ebp, dword [esp + 0x98]
jne 0x101b5a8c
mov ax, word [0x1023b042]
mov ecx, 0x3ff
push 0x11
and ax, cx
pop ecx
push edi
push esi
cmp ax, cx
jne 0x101b5a80
call fcn.101b61a5
jmp 0x101b5a88
call dword [sym.imp.msvcr100.dll__mbsnccnt]
pop ecx
pop ecx
mov dword [esp + 0x4c], eax
cmp ebp, dword [esp + 0xa4]
jne 0x101b5ac3
mov ax, word [0x1023b042]
mov ecx, 0x3ff
push 0x11
and ax, cx
pop ecx
push dword [esp + 0x10]
push esi
cmp ax, cx
jne 0x101b5ab7
call fcn.101b61a5
jmp 0x101b5abf
call dword [sym.imp.msvcr100.dll__mbsnccnt]
pop ecx
pop ecx
mov dword [esp + 0x54], eax
and dword [esp + 0x58], 0
lea eax, [esp + 0x58]
push eax
push esi
call fcn.1020c637
mov ebp, eax
mov dword [esp + 0x2c], ebp
test ebp, ebp
jne 0x101b616d
mov eax, dword [esp + 0x34]
push dword [esp + 0x58]
sub eax, esi
add eax, 0x402
push eax
push esi
call dword [sym.imp.msvcr100.dll_strcpy_s]
add esp, 0xc
push dword [esp + 0x58]
call sub.OLEAUT32.dll_SysStringLen
mov ebp, dword [esp + 0x14]
push 0x11
cmp ebp, dword [esp + 0x9c]
jne 0x101b5b48
mov ax, word [0x1023b042]
mov dword [esp + 0x68], edi
pop edi
push dword [esp + 0x4c]
mov ecx, 0x3ff
and ax, cx
push esi
cmp ax, di
jne 0x101b5b3e
call fcn.101b61f0
mov dword [esp + 0x9c], eax
jmp 0x101b5b49
call dword [sym.imp.msvcr100.dll__mbsnbcnt]
pop ecx
pop ecx
jmp 0x101b5b35
pop edi
cmp ebp, dword [esp + 0xa4]
jne 0x101b5b89
mov eax, dword [esp + 0x10]
push dword [esp + 0x54]
mov dword [esp + 0x6c], eax
mov ax, word [0x1023b042]
mov ecx, 0x3ff
and ax, cx
push esi
cmp ax, di
jne 0x101b5b7f
call fcn.101b61f0
mov edi, eax
mov dword [esp + 0x10], edi
jmp 0x101b5b8d
call dword [sym.imp.msvcr100.dll__mbsnbcnt]
pop ecx
pop ecx
jmp 0x101b5b77
mov edi, dword [esp + 0x10]
mov ecx, esi
lea edx, [ecx + 1]
mov al, byte [ecx]
inc ecx
test al, al
jne 0x101b5b92
sub ecx, edx
je 0x101b5c86
test byte [ebx], 0x20
je 0x101b5bb3
mov word [ecx + esi], 0x20
dec esi
mov byte [esi], 0x20
add ecx, 2
cmp dword [esp + 0x28], 0
je 0x101b5bdb
cmp dword [ebx + 4], 2
je 0x101b5bdb
mov edx, dword [esp + 0x9c]
mov eax, edx
cmp edx, ecx
jb 0x101b5bcf
mov eax, ecx
add esi, eax
mov eax, edx
cmp edx, ecx
jb 0x101b5bd9
mov eax, ecx
sub ecx, eax
cmp dword [esp + 0x50], 0
je 0x101b5bf1
cmp dword [esp + 0x44], 0
je 0x101b5bf1
test ecx, ecx
je 0x101b5c86
cmp dword [ebx + 4], 2
je 0x101b5bfb
mov edx, esi
jmp 0x101b5c2d
test byte [ebx], 0x20
lea edx, [ecx + esi]
lea ecx, [esi + edi]
je 0x101b5c19
lea eax, [edx - 2]
cmp ecx, eax
jae 0x101b5c29
cmp dword [esp + 0x18], 0
je 0x101b5c29
lea edx, [ecx + 1]
jmp 0x101b5c29
lea eax, [ecx - 1]
cmp eax, edx
jae 0x101b5c29
cmp dword [esp + 0x18], 0
je 0x101b5c29
mov edx, ecx
cmp edx, esi
jb 0x101b5c72
cmp dword [ebx + 4], 2
jne 0x101b5c40
cmp ebp, dword [esp + 0xa4]
jne 0x101b5c40
mov ecx, edx
jmp 0x101b5c50
mov ecx, esi
lea edi, [ecx + 1]
mov al, byte [ecx]
inc ecx
test al, al
jne 0x101b5c45
sub ecx, edi
add ecx, esi
cmp dword [ebx + 4], 2
setne al
movzx eax, al
push eax
push 0x1f4
push dword [esp + 0x68]
push edx
push ecx
push esi
push dword [esp + 0x50]
call fcn.1020bea0
jmp 0x101b5c75
xor eax, eax
inc eax
cmp eax, 3
je 0x101b6157
test eax, eax
je 0x101b5eb3
mov esi, dword [esp + 0x10]
mov ecx, dword [esp + 0x1c]
mov edi, dword [esp + 0x20]
cmp dword [ebx + 4], 2
je 0x101b5d9b
mov edx, dword [esp + 0x18]
test edx, edx
jne 0x101b6142
cmp dword [0x10244b78], edx
jne 0x101b6142
and dword [esp + 0x28], edx
cmp ebp, ecx
jne 0x101b5d95
cmp dword [ebx + 4], 1
jne 0x101b5d2a
cmp dword [esp + 0xbc], edx
jne 0x101b5d2a
and dword [esp + 0x14], edx
lea eax, [esp + 0x14]
push eax
push 0x1000adc8
push 0x9d11
call fcn.100c8c3c
test eax, eax
js 0x101b6165
mov ecx, dword [0x1023908c]
push 0xfdf51
call fcn.101ce475
push eax
push 0x24
push 0
push dword [esp + 0x24]
call fcn.1015692e
push dword [esp + 0x14]
mov esi, eax
mov eax, 0xffbf
and word [ebx], ax
call dword [sym.imp.OLEAUT32.dll_SysStringLen]
cmp esi, 7
je 0x101b615e
cmp dword [ebx + 8], 2
jne 0x101b5d7c
mov esi, dword [esp + 0x24]
push 1
push esi
call fcn.101e5239
test eax, eax
js 0x101b6165
mov eax, dword [esi]
mov ecx, dword [eax + 0x20]
xor edi, edi
dec ecx
mov dword [esp + 0x1c], ecx
mov ecx, dword [esp + 0xac]
mov dword [esp + 0x20], edi
cmp eax, ecx
jne 0x101b5d83
mov eax, dword [ebx + 0x44]
mov ecx, dword [eax + 0x14]
mov esi, dword [eax + 0x18]
mov dword [esp + 0xa4], ecx
mov ecx, dword [esp + 0xac]
mov dword [esp + 0x10], esi
jmp 0x101b5d87
mov ecx, dword [esp + 0xac]
mov esi, dword [esp + 0x10]
mov ebp, edi
mov edi, dword [esp + 0x9c]
jmp 0x101b5e92
inc ebp
jmp 0x101b5e9c
cmp dword [esp + 0x28], 0
jne 0x101b6142
cmp dword [0x10244b78], 0
jne 0x101b6142
xor edx, edx
mov dword [esp + 0x18], edx
cmp ebp, edi
jne 0x101b5e9b
cmp dword [esp + 0xbc], edx
jne 0x101b5e25
and dword [esp + 0x14], edx
lea eax, [esp + 0x14]
push eax
push 0x1000adc8
push 0x9d12
call fcn.100c8c3c
test eax, eax
js 0x101b6165
mov ecx, dword [0x1023908c]
push 0xfdf52
call fcn.101ce475
push eax
push 0x24
push 0
push dword [esp + 0x24]
call fcn.1015692e
push dword [esp + 0x14]
mov esi, eax
mov eax, 0xffbf
and word [ebx], ax
call dword [sym.imp.OLEAUT32.dll_SysStringLen]
cmp esi, 7
je 0x101b615e
cmp dword [ebx + 8], 2
jne 0x101b5e7a
mov esi, dword [esp + 0x24]
push 0xffffffffffffffff
push esi
call fcn.101e5239
test eax, eax
js 0x101b6165
mov ecx, dword [esi]
mov eax, dword [ecx + 0x20]
and dword [esp + 0x20], 0
test eax, eax
je 0x101b5e52
lea edx, [eax - 1]
jmp 0x101b5e54
xor edx, edx
mov dword [esp + 0x1c], edx
cmp ecx, dword [esp + 0xac]
jne 0x101b5e7e
mov eax, dword [ebx + 0x44]
mov ecx, dword [eax + 0xc]
mov edi, dword [eax + 0x10]
mov dword [esp + 0x98], ecx
mov dword [esp + 0x9c], edi
jmp 0x101b5e85
mov edx, dword [esp + 0x1c]
mov edi, dword [esp + 0x9c]
mov esi, dword [esp + 0x10]
mov ecx, dword [esp + 0xac]
mov ebp, edx
mov dword [esp + 0x14], ebp
jmp 0x101b5994
dec ebp
mov edi, dword [esp + 0x9c]
mov ecx, dword [esp + 0xac]
mov dword [esp + 0x14], ebp
jmp 0x101b5998
mov eax, dword [esp + 0x3c]
push dword [esp + 0x38]
mov dword [eax], ebp
call fcn.1020c563
sub eax, dword [esp + 0x34]
mov esi, dword [esp + 0x30]
push 0
push dword [esp + 0x3c]
dec eax
mov dword [esi], eax
call fcn.1020c53b
mov ebp, dword [esp + 0x48]
mov dword [ebp], eax
test byte [ebx], 0x20
je 0x101b5eea
inc dword [esi]
add dword [ebp], 0xfffffffe
test byte [0x102390ac], 2
jne 0x101b5fe1
mov eax, dword [esp + 0x64]
movzx edi, word [ebx]
mov dword [esp + 0x9c], eax
mov eax, dword [esp + 0x68]
shr edi, 5
mov dword [esp + 0x10], eax
mov ax, word [0x1023b042]
mov ecx, 0x3ff
push 0x11
not edi
and ax, cx
pop ecx
push dword [esi]
and edi, 1
add edi, dword [esp + 0x38]
push edi
cmp ax, cx
jne 0x101b5f4b
call fcn.101b61a5
mov edx, dword [esp + 0x30]
mov ecx, dword [ebp]
add ecx, dword [edx]
mov esi, eax
push ecx
push edi
call fcn.101b61a5
jmp 0x101b5f67
call dword [sym.imp.msvcr100.dll__mbsnccnt]
mov edx, dword [esp + 0x38]
mov esi, eax
mov eax, dword [ebp]
add eax, dword [edx]
push eax
push edi
call dword [sym.imp.msvcr100.dll__mbsnccnt]
add esp, 0x10
mov ebp, eax
lea eax, [esp + 0x6c]
push eax
mov eax, dword [esp + 0x28]
mov ecx, dword [eax]
push 0x400
push 0
push edi
push dword [esp + 0x24]
call fcn.1006f5d2
test eax, eax
js 0x101b6165
mov ax, word [0x1023b042]
mov ecx, 0x3ff
push 0x11
and ax, cx
pop ecx
push esi
push edi
cmp ax, cx
jne 0x101b5fc1
call fcn.101b61f0
mov esi, eax
mov eax, dword [esp + 0x30]
push ebp
push edi
mov dword [eax], esi
call fcn.101b61f0
sub eax, esi
mov esi, dword [esp + 0x30]
jmp 0x101b5fda
call dword [sym.imp.msvcr100.dll__mbsnbcnt]
mov esi, dword [esp + 0x38]
push ebp
push edi
mov dword [esi], eax
call dword [sym.imp.msvcr100.dll__mbsnbcnt]
add esp, 0x10
sub eax, dword [esi]
mov ebp, dword [esp + 0x48]
mov dword [ebp], eax
cmp dword [ebx + 8], 3
mov edx, dword [esp + 0x3c]
mov edi, dword [esp + 0x9c]
jne 0x101b6027
mov ecx, dword [esp + 0x98]
cmp dword [edx], ecx
jb 0x101b601f
mov eax, dword [esp + 0xa4]
cmp dword [edx], eax
ja 0x101b601f
cmp dword [edx], ecx
jne 0x101b6010
cmp dword [esi], edi
jb 0x101b601f
cmp dword [edx], eax
jne 0x101b6027
mov eax, dword [ebp]
add eax, dword [esi]
cmp eax, dword [esp + 0x10]
jbe 0x101b6027
mov dword [esp + 0x2c], 0x9d0c
test byte [ebx], 0x10
je 0x101b60cd
cmp dword [esp + 0x50], 0
je 0x101b607d
cmp dword [ebx + 8], 3
jne 0x101b6075
mov ecx, dword [ebx + 0x44]
mov eax, dword [edx]
cmp eax, dword [ecx + 0xc]
jne 0x101b6075
mov ecx, dword [ecx + 0x10]
mov edx, dword [esp + 0x9c]
cmp edx, ecx
jae 0x101b6057
mov ecx, edx
mov eax, dword [esi]
sub eax, ecx
add dword [ebp], eax
mov eax, dword [ebx + 0x44]
mov eax, dword [eax + 0x10]
cmp edx, eax
jae 0x101b606a
mov eax, edx
mov edi, dword [esp + 0x9c]
mov dword [esi], eax
jmp 0x101b607d
mov eax, dword [esi]
add dword [ebp], eax
and dword [esi], 0
cmp dword [esp + 0x44], 0
je 0x101b60cd
cmp dword [ebx + 8], 3
jne 0x101b60ac
mov eax, dword [esp + 0x3c]
mov ecx, dword [ebx + 0x44]
mov eax, dword [eax]
cmp eax, dword [ecx + 0x14]
jne 0x101b60ac
mov eax, dword [ecx + 0x18]
mov edx, dword [esp + 0x10]
cmp edx, eax
jbe 0x101b60a5
mov eax, edx
sub eax, dword [esi]
mov dword [ebp], eax
jmp 0x101b60d1
mov ecx, dword [esp + 0x34]
inc ecx
lea edx, [ecx + 1]
mov al, byte [ecx]
inc ecx
test al, al
jne 0x101b60b4
movzx eax, word [ebx]
shr eax, 5
sub ecx, edx
and eax, 1
sub ecx, eax
sub ecx, dword [esi]
mov dword [ebp], ecx
mov edx, dword [esp + 0x10]
cmp dword [esp + 0x18], 0
mov ecx, dword [0x10244b78]
jne 0x101b60e2
test ecx, ecx
je 0x101b60f5
cmp dword [ebx + 4], 2
je 0x101b60f5
test ecx, ecx
je 0x101b6114
mov eax, dword [ebp]
add eax, dword [esi]
cmp edx, eax
jbe 0x101b6118
mov ebp, dword [esp + 0x2c]
cmp dword [esp + 0x28], 0
jne 0x101b6104
test ecx, ecx
je 0x101b616d
cmp dword [ebx + 4], 2
jne 0x101b616d
test ecx, ecx
je 0x101b6137
cmp dword [esi], edi
jbe 0x101b6142
jmp 0x101b616d
cmp edx, dword [esi]
ja 0x101b611f
mov ebp, 0x9d0c
jmp 0x101b60f9
mov eax, dword [ebp]
add eax, dword [esi]
mov ebp, dword [esp + 0x2c]
cmp edx, eax
ja 0x101b60f9
xor ecx, ecx
inc ecx
mov dword [0x10244b78], ecx
jmp 0x101b60f9
mov eax, dword [esp + 0x9c]
cmp dword [esi], eax
jae 0x101b6149
mov ebp, 0x9d0c
jmp 0x101b616d
ja 0x101b616d
mov dword [0x10244b78], 1
jmp 0x101b616d
mov ebp, 0x9d0f
jmp 0x101b616d
mov ebp, 0x9d10
jmp 0x101b616d
push eax
call fcn.1000b028
mov ebp, eax
push dword [esp + 0x34]
call fcn.1000ac28
push dword [esp + 0x38]
call fcn.1000ac28
push dword [esp + 0x60]
call fcn.1000ac28
mov ecx, dword [esp + 0x8c]
pop edi
pop esi
mov eax, ebp
pop ebp
pop ebx
xor ecx, esp
call fcn.10001e57
add esp, 0x80
ret 0x2c