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

Disassembly:
sub esp, 0x48
mov eax, dword [0x1023904c]
xor eax, esp
mov dword [esp + 0x44], eax
mov eax, dword [esp + 0x50]
push ebx
push ebp
mov ebp, dword [esp + 0x5c]
push esi
mov esi, dword [esp + 0x64]
push edi
mov dword [esp + 0x18], ecx
mov dword [esp + 0x14], eax
mov dword [esp + 0x20], ebp
call fcn.1007bc7e
push dword [esp + 0x14]
mov ecx, dword [esp + 0x1c]
and dword [esp + 0x38], 0xfffffff0
mov ebx, eax
xor eax, eax
mov edi, eax
mov dword [esp + 0x28], ebx
mov dword [esp + 0x14], eax
mov dword [esp + 0x2c], edi
mov dword [esp + 0x30], eax
call fcn.10215509
xor edx, edx
mov dword [esp + 0x1c], eax
mov byte [ebp], dl
cmp ebx, 0x1b
jne 0x10214acf
mov ecx, dword [esp + 0x18]
lea eax, [esp + 0x34]
push eax
push dword [esp + 0x18]
call fcn.1015692e
mov ebx, eax
test ebx, ebx
js 0x10215035
push esi
push ebp
push edi
push 1
lea ecx, [esp + 0x44]
call fcn.102148d8
mov ebx, eax
test ebx, ebx
js 0x10215035
push edi
push ebp
call dword [sym.imp.msvcr100.dll__mbschr]
lea ebx, [ebp - 1]
mov edi, eax
add ebx, esi
pop ecx
pop ecx
cmp edi, ebx
jae 0x1021498e
mov byte [edi], 0x28
inc edi
push dword [esp + 0x14]
mov ecx, dword [esp + 0x1c]
call fcn.10215634
push dword [esp + 0x14]
mov ecx, dword [esp + 0x1c]
mov dword [esp + 0x24], eax
call fcn.1015692e
xor ecx, ecx
mov edx, eax
mov eax, ecx
mov ecx, dword [esp + 0x20]
mov dword [esp + 0x14], edx
mov dword [esp + 0x1c], eax
test ecx, ecx
je 0x10214abe
dec ecx
mov dword [esp + 0x24], ecx
lea ecx, [esp + 0x44]
push ecx
lea ecx, [esp + 0x44]
push ecx
mov ecx, dword [esp + 0x20]
push eax
push edx
call fcn.1015692e
push 0xa
push 0xc
lea eax, [esp + 0x50]
push eax
push dword [esp + 0x4c]
call dword [sym.imp.msvcr100.dll__itoa_s]
mov eax, ebx
sub eax, edi
push eax
lea eax, [esp + 0x5c]
push eax
mov eax, ebp
sub eax, edi
add eax, esi
push eax
push edi
call dword [sym.imp.msvcr100.dll__mbsnbcpy_s]
xor eax, eax
push eax
push edi
call dword [sym.imp.msvcr100.dll__mbschr]
mov edi, eax
add esp, 0x28
cmp edi, ebx
jae 0x10214a22
mov byte [edi], 0x20
inc edi
mov ecx, ebx
sub ecx, edi
push ecx
mov eax, ebp
sub eax, edi
push 0x10215048
add eax, esi
push eax
push edi
call dword [sym.imp.msvcr100.dll__mbsnbcpy_s]
xor eax, eax
push eax
push edi
call dword [sym.imp.msvcr100.dll__mbschr]
mov edi, eax
add esp, 0x18
cmp edi, ebx
jae 0x10214a51
mov byte [edi], 0x20
inc edi
push 0xa
push 0xc
lea eax, [esp + 0x50]
push eax
mov eax, dword [esp + 0x4c]
dec eax
add eax, dword [esp + 0x50]
push eax
call dword [sym.imp.msvcr100.dll__itoa_s]
mov eax, ebx
sub eax, edi
push eax
lea eax, [esp + 0x5c]
push eax
mov eax, ebp
sub eax, edi
add eax, esi
push eax
push edi
call dword [sym.imp.msvcr100.dll__mbsnbcpy_s]
xor eax, eax
push eax
push edi
call dword [sym.imp.msvcr100.dll__mbschr]
mov edi, eax
mov eax, dword [esp + 0x44]
add esp, 0x28
cmp eax, dword [esp + 0x24]
jae 0x10214aab
cmp edi, ebx
jae 0x10214aab
mov byte [edi], 0x2c
inc edi
cmp edi, ebx
jae 0x10214aab
mov byte [edi], 0x20
inc edi
mov edx, dword [esp + 0x14]
inc eax
mov dword [esp + 0x1c], eax
cmp eax, dword [esp + 0x20]
jb 0x102149cb
cmp edi, ebx
jae 0x10214ac6
mov byte [edi], 0x29
inc edi
xor eax, eax
mov byte [edi], al
jmp 0x10214f46
cmp ebx, 0x20
jne 0x10214b8d
mov eax, dword [0x102390f4]
lea ecx, [esp + 0x30]
push ecx
mov ecx, dword [eax + 0x14]
call fcn.100dca29
mov ebx, eax
test ebx, ebx
js 0x10215035
movzx ecx, word [0x1008c248]
lea eax, [esi - 1]
push eax
mov eax, dword [esp + 0x34]
mov eax, dword [eax + 0x84]
push dword [eax + ecx*4 + 0x4dc]
push esi
push ebp
call dword [sym.imp.msvcr100.dll__mbsnbcpy_s]
mov edi, ebp
add esp, 0x10
lea ecx, [edi + 1]
mov al, byte [edi]
inc edi
test al, al
jne 0x10214b20
sub edi, ecx
mov ecx, esi
sub ecx, edi
lea eax, [ecx - 1]
push eax
push 0x1021504c
push ecx
lea ebx, [edi + ebp]
push ebx
call dword [sym.imp.msvcr100.dll__mbsnbcpy_s]
add esp, 0x10
lea ecx, [ebx + 1]
mov al, byte [ebx]
inc ebx
test al, al
jne 0x10214b47
push 0xa
push 0xc
lea eax, [esp + 0x50]
push eax
push dword [esp + 0x20]
sub ebx, ecx
mov ecx, dword [esp + 0x28]
add edi, ebx
call fcn.10215885
push eax
call dword [sym.imp.msvcr100.dll__itoa_s]
sub esi, edi
lea eax, [esi - 1]
push eax
lea eax, [esp + 0x5c]
push eax
lea eax, [edi + ebp]
push esi
push eax
call dword [sym.imp.msvcr100.dll__mbsnbcpy_s]
add esp, 0x20
jmp 0x10214f46
cmp ebx, 0xd
jne 0x10214c2f
test eax, eax
je 0x10214c1f
lea ecx, [esp + 0x2c]
push ecx
lea ecx, [esp + 0x2c]
push ecx
mov ecx, dword [esp + 0x20]
push 1
push edx
push dword [eax]
call fcn.10214220
mov ebx, eax
test ebx, ebx
js 0x10214f66
mov edi, dword [esp + 0x28]
test edi, edi
je 0x10214c1d
mov eax, dword [edi]
xor ebx, ebx
push ebx
push ebx
push ebx
lea ecx, [esp + 0x1c]
push ecx
push 0xffffffffffffffff
push edi
call dword [eax + 0x30]
test eax, eax
jne 0x10214c05
lea ecx, [esp + 0x10]
call fcn.1015692e
test eax, eax
jne 0x10214c05
mov ecx, dword [esp + 0x10]
cmp byte [ecx], 0x5f
jne 0x10214bf5
inc ecx
lea eax, [esi - 1]
push eax
push ecx
push esi
push ebp
call dword [sym.imp.msvcr100.dll__mbsnbcpy_s]
add esp, 0x10
mov eax, dword [edi]
push edi
call dword [eax + 8]
push dword [esp + 0x10]
call sub.OLEAUT32.dll_SysStringLen
mov dword [esp + 0x10], ebx
jmp 0x10214f46
xor edx, edx
lea eax, [esi - 1]
push eax
push ebp
push edx
push 0xdf0b
jmp 0x10214d05
cmp ebx, 0x1d
je 0x10214d0f
cmp ebx, 9
je 0x10214d0f
cmp ebx, 0xc
je 0x10214d3d
cmp ebx, 0x24
jne 0x10214c9e
mov eax, dword [esp + 0x18]
mov eax, dword [eax + 8]
mov ecx, dword [eax]
lea edx, [esp + 0x10]
push edx
push eax
call dword [ecx + 0x1c]
test eax, eax
js 0x10214f46
lea ecx, [esp + 0x10]
call fcn.1015692e
test eax, eax
js 0x10214c90
mov ecx, dword [esp + 0x10]
cmp byte [ecx], 0x5f
jne 0x10214c80
inc ecx
lea eax, [esi - 1]
push eax
push ecx
push esi
push ebp
call dword [sym.imp.msvcr100.dll__mbsnbcpy_s]
add esp, 0x10
push dword [esp + 0x10]
call sub.OLEAUT32.dll_SysStringLen
jmp 0x10214f46
cmp ebx, 0x18
jg 0x10214cfa
cmp word [ebx*2 + 0x1008c238], dx
je 0x10214cfa
mov eax, dword [0x102390f4]
lea ecx, [esp + 0x30]
push ecx
mov ecx, dword [eax + 0x14]
call fcn.100dca29
mov ebx, eax
test ebx, ebx
js 0x10215035
lea eax, [esi - 1]
push eax
mov eax, dword [esp + 0x28]
movzx ecx, word [eax*2 + 0x1008c238]
mov eax, dword [esp + 0x34]
mov eax, dword [eax + 0x84]
push dword [eax + ecx*4 + 0x4dc]
push esi
push ebp
call dword [sym.imp.msvcr100.dll__mbsnbcpy_s]
add esp, 0x10
jmp 0x10214f46
lea eax, [esi - 1]
push eax
push ebp
push edx
push 0xdf0c
call fcn.1015692e
jmp 0x10214f46
cmp ebx, 0xc
je 0x10214d3d
mov ecx, dword [esp + 0x18]
lea eax, [esp + 0x2c]
push eax
lea eax, [esp + 0x2c]
push eax
push 1
push edx
push edx
call fcn.10214220
mov ebx, eax
test ebx, ebx
js 0x10214f66
mov edi, dword [esp + 0x28]
xor edx, edx
jmp 0x10214d41
mov ebx, dword [esp + 0x44]
cmp dword [esp + 0x5c], 0
je 0x10214e63
cmp dword [esp + 0x24], 0x1d
jne 0x10214e0a
test edi, edi
je 0x10214df9
mov eax, dword [esp + 0x2c]
and eax, 4
mov dword [esp + 0x14], eax
jne 0x10214dad
mov eax, dword [edi]
push edx
push edx
push edx
lea ecx, [esp + 0x1c]
push ecx
push 0xffffffffffffffff
push edi
call dword [eax + 0x30]
test eax, eax
jne 0x10214da9
lea ecx, [esp + 0x10]
call fcn.1015692e
test eax, eax
jne 0x10214da9
mov ecx, dword [esp + 0x10]
cmp byte [ecx], 0x5f
jne 0x10214d97
inc ecx
lea eax, [esi - 1]
push eax
push ecx
push esi
push ebp
call dword [sym.imp.msvcr100.dll__mbsnbcpy_s]
add esp, 0x10
jmp 0x10214df9
mov eax, dword [esp + 0x14]
test eax, eax
je 0x10214df9
mov eax, dword [edi + 0x14]
mov eax, dword [eax + 0x24]
lea ecx, [esp + 0x14]
push ecx
mov ecx, dword [eax + 0x14]
call fcn.1001c9e1
mov ebx, eax
test ebx, ebx
js 0x1021502b
mov edx, dword [edi + 0x18]
mov eax, dword [esp + 0x14]
cmp edx, dword [eax + 0xc]
jbe 0x10214de0
xor eax, eax
mov ecx, eax
jmp 0x10214de5
mov ecx, dword [eax + 8]
add ecx, edx
push esi
push ebp
call fcn.100dd101
mov ecx, dword [esp + 0x1c]
mov ecx, dword [ecx + 0x78]
push eax
call fcn.1002fba2
push dword [esp + 0x10]
call sub.OLEAUT32.dll_SysStringLen
xor edx, edx
mov dword [esp + 0x10], edx
jmp 0x10214e54
mov eax, dword [0x102390f4]
lea ecx, [esp + 0x30]
push ecx
mov ecx, dword [eax + 0x14]
call fcn.100dca29
mov ebx, eax
test ebx, ebx
js 0x1021502b
lea eax, [esi - 1]
push eax
mov eax, dword [esp + 0x28]
movzx ecx, word [eax*2 + 0x1008c238]
mov eax, dword [esp + 0x34]
mov eax, dword [eax + 0x84]
push dword [eax + ecx*4 + 0x4dc]
push esi
push ebp
call dword [sym.imp.msvcr100.dll__mbsnbcpy_s]
add esp, 0x10
xor edx, edx
lea ecx, [ebp + 1]
mov al, byte [ebp]
inc ebp
test al, al
jne 0x10214e57
sub ebp, ecx
jmp 0x10214e65
mov ebp, edx
cmp dword [esp + 0x24], 0xc
je 0x10214f6f
mov eax, dword [esp + 0x1c]
mov ecx, dword [esp + 0x2c]
test eax, eax
je 0x10214e89
test cl, 0x54
jne 0x10214e89
mov eax, dword [eax]
mov dword [esp + 0x1c], eax
jmp 0x10214e8f
mov eax, edx
mov dword [esp + 0x1c], edx
test eax, eax
je 0x10214f3c
test cl, 2
je 0x10214ed1
test edi, edi
je 0x10214eaa
mov eax, dword [edi]
push edi
call dword [eax + 8]
mov eax, dword [esp + 0x1c]
lea ecx, [esp + 0x2c]
push ecx
lea ecx, [esp + 0x2c]
push ecx
push 1
xor ecx, ecx
push ecx
mov ecx, dword [esp + 0x28]
push eax
call fcn.10214220
mov ebx, eax
test ebx, ebx
js 0x10214f66
mov edi, dword [esp + 0x28]
test ebx, ebx
js 0x10214f3c
test edi, edi
je 0x10214f46
xor ecx, ecx
push ecx
push ecx
push ecx
mov dword [esp + 0x1c], ecx
mov eax, dword [edi]
lea ecx, [esp + 0x1c]
push ecx
push 0xffffffffffffffff
push edi
call dword [eax + 0x30]
test eax, eax
jne 0x10214f33
lea ecx, [esp + 0x10]
call fcn.1015692e
test eax, eax
jne 0x10214f33
mov ebx, dword [esp + 0x20]
cmp byte [ebx], al
je 0x10214f14
lea eax, [esi - 1]
cmp ebp, eax
jae 0x10214f14
mov byte [ebx + ebp], 0x2f
inc ebp
mov ecx, dword [esp + 0x10]
cmp byte [ecx], 0x5f
jne 0x10214f1e
inc ecx
sub esi, ebp
lea eax, [esi - 1]
push eax
push ecx
lea eax, [ebx + ebp]
push esi
push eax
call dword [sym.imp.msvcr100.dll__mbsnbcpy_s]
add esp, 0x10
push dword [esp + 0x10]
call sub.OLEAUT32.dll_SysStringLen
test edi, edi
je 0x10214f46
mov eax, dword [edi]
push edi
call dword [eax + 8]
lea ecx, [esp + 0x34]
call fcn.10085af3
xor eax, eax
mov ecx, dword [esp + 0x54]
pop edi
pop esi
pop ebp
pop ebx
xor ecx, esp
call fcn.10001e57
add esp, 0x48
ret 0x10
mov edi, dword [esp + 0x28]
jmp 0x1021502b
mov edx, dword [esp + 0x1c]
test edx, edx
je 0x10214f3c
cmp dword [esp + 0x5c], 0
mov ebx, dword [esp + 0x20]
je 0x10214f8e
lea eax, [esi - 1]
cmp ebp, eax
jae 0x10214f8e
mov byte [ebx + ebp], 0x2f
inc ebp
movzx ecx, word [edx]
movzx eax, cx
and eax, 0xffffbfff
mov dword [esp + 0x24], ecx
cmp eax, 0x24
jne 0x10214fb1
push dword [edx + 0xc]
push ecx
lea ecx, [esp + 0x3c]
call fcn.10213fe5
jmp 0x10214fec
cmp eax, 0x2024
jne 0x10214ff2
mov eax, dword [edx + 8]
test ecx, 0x4000
je 0x10214fc5
mov eax, dword [eax]
lea ecx, [esp + 0x20]
push ecx
push eax
call dword [0x10241840]
push dword [esp + 0x20]
lea ecx, [esp + 0x38]
push dword [esp + 0x28]
call fcn.10213fe5
mov eax, dword [esp + 0x20]
mov ecx, dword [eax]
push eax
call dword [ecx + 8]
mov edx, dword [esp + 0x1c]
jmp 0x1021500b
mov eax, dword [esp + 0x34]
and eax, 0xfffffff1
or eax, 1
mov dword [esp + 0x34], eax
xor eax, eax
mov word [esp + 0x38], cx
mov dword [esp + 0x3c], eax
sub esi, ebp
push esi
lea eax, [ebx + ebp]
push eax
lea eax, [edx + 8]
push eax
push 1
lea ecx, [esp + 0x44]
call fcn.102148d8
mov ebx, eax
test ebx, ebx
jns 0x10214f3c
test edi, edi
je 0x10215035
mov eax, dword [edi]
push edi
call dword [eax + 8]
lea ecx, [esp + 0x34]
call fcn.10085af3
mov eax, ebx
jmp 0x10214f51