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

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
sub esp, 0xa8
mov eax, dword [0x1036a44]
push ebx
mov ebx, dword [ebp + 0xc]
push esi
xor esi, esi
mov dword [ebp - 4], eax
mov eax, dword [ebp + 8]
cmp eax, esi
push edi
mov dword [ebp - 0x48], eax
mov dword [ebp - 0x68], esi
mov dword [ebp - 0x74], esi
mov dword [ebp - 0x60], esi
mov dword [ebp - 0x64], esi
mov dword [ebp - 0x5c], esi
mov dword [ebp - 0x58], esi
mov dword [ebp - 0x70], esi
mov dword [ebp - 0x6c], esi
je 0x1022949
cmp ebx, esi
je 0x1022949
cmp word [eax + 0xe], 4
jne 0x1022949
push 0x2a
xor eax, eax
pop ecx
mov edi, ebx
rep stosd dword es:[edi], eax
and dword [ebx + 0x44], eax
lea eax, [ebp - 0x70]
push eax
lea eax, [ebp - 0x54]
push eax
lea eax, [ebp - 0x68]
push eax
push dword [ebp - 0x48]
mov eax, dword [0x1036cd4]
call dword [eax + 0x70]
test eax, eax
je 0x10222ee
mov eax, 0x80004005
jmp 0x102294e
mov edx, dword [ebp - 0x54]
test edx, edx
mov ecx, dword [ebp - 0x68]
jbe 0x1022310
lea eax, [ecx + 8]
mov dword [ebp - 0x4c], edx
mov edx, dword [eax]
add esi, edx
mov edx, dword [eax + 4]
adc dword [ebp - 0x74], edx
add eax, 0x18
dec dword [ebp - 0x4c]
jne 0x10222fe
test ecx, ecx
je 0x1022320
mov eax, dword [0x1036cd4]
push ecx
call dword [eax + 0x8c]
lea eax, [ebp - 0x70]
push eax
lea eax, [ebp - 0x60]
push eax
lea eax, [ebp - 0x64]
push eax
push dword [ebp - 0x48]
mov eax, dword [0x1036cd4]
call dword [eax + 0x74]
test eax, eax
mov edi, dword [ebp - 0x64]
mov dword [ebp - 0x7c], eax
jne 0x102236d
mov ecx, dword [ebp - 0x60]
test ecx, ecx
jbe 0x102236d
lea eax, [edi + 8]
mov dword [ebp - 0x4c], ecx
mov edx, dword [eax + 4]
cmp dword [ebp - 0x58], edx
mov ecx, dword [eax]
jg 0x1022365
jl 0x102235f
cmp dword [ebp - 0x5c], ecx
ja 0x1022365
mov dword [ebp - 0x5c], ecx
mov dword [ebp - 0x58], edx
add eax, 0x18
dec dword [ebp - 0x4c]
jne 0x102234e
test edi, edi
je 0x102237d
mov eax, dword [0x1036cd4]
push edi
call dword [eax + 0x8c]
lea eax, [ebp - 0xa8]
push eax
mov eax, dword [ebp - 0x48]
push dword [eax + 0x14]
push dword [eax + 0x10]
call fcn.01028dab
test al, al
je 0x1022611
push 0xca
call fcn.0102e409
test eax, eax
mov dword [ebx + 0x90], eax
jne 0x10223b7
and dword [ebx + 0x78], 0
jmp 0x1022611
test byte [ebp - 0x8c], 0x20
jne 0x102240c
mov eax, dword [ebp - 0x48]
mov eax, dword [eax + 0xa4]
add eax, 0x26e
push eax
call fcn.0102150b
mov edi, eax
test edi, edi
je 0x1022400
push edi
push dword [ebp - 0x48]
call fcn.01021645
test al, al
je 0x1022400
mov eax, dword [edi + 0xa4]
push dword [ebx + 0x90]
add eax, 0x1d4
push eax
call fcn.010212b9
jmp 0x102241a
mov eax, dword [ebx + 0x90]
and word [eax], 0
jmp 0x102241a
push 0x1002ac4
push eax
call dword [sym.imp.msvcrt.dll_wcscpy]
pop ecx
pop ecx
push dword [ebx + 0x90]
call dword [sym.imp.msvcrt.dll_wcslen]
xor edx, edx
inc eax
cmp dword [ebp - 0x7c], 0xcd
mov dword [ebx + 0x70], edx
mov dword [ebx + 0x74], edx
mov dword [ebx + 0x28], edx
mov edx, dword [ebp - 0x98]
pop ecx
mov ecx, dword [ebp - 0xa4]
mov dword [ebx + 0x78], eax
mov eax, dword [ebp - 0xa8]
mov dword [ebx + 0x68], edx
mov edx, dword [ebp - 0x94]
mov dword [ebx], eax
mov dword [ebx + 4], ecx
mov dword [ebx + 0x6c], edx
mov dword [ebx + 0x2c], 1
jne 0x1022472
mov dword [ebx + 0x30], 0x20
jmp 0x102247b
mov edx, dword [ebp - 0x8c]
mov dword [ebx + 0x30], edx
and dword [ebx + 0x34], 0
or dword [ebx + 0x58], 0xffffffff
or dword [ebx + 0x5c], 0xffffffff
or dword [ebx + 0x60], 0xffffffff
push ecx
push eax
mov dword [ebx + 0x80], 0x41
mov byte [ebx + 0x41], 0
call fcn.0100661d
mov edi, eax
mov eax, dword [ebp - 0x48]
mov ecx, dword [eax + 0xa4]
mov edx, dword [ecx + 0x1e0]
mov ecx, dword [ecx + 0x1e4]
shld ecx, edx, 9
mov dword [ebx + 0xc], ecx
mov ecx, dword [ebp - 0x74]
shld ecx, esi, 9
shl edx, 9
shl esi, 9
mov dword [ebx + 8], edx
mov dword [ebx + 0x10], esi
mov dword [ebx + 0x14], ecx
mov eax, dword [eax + 0xa4]
mov eax, dword [eax + 0x1f4]
add eax, dword [ebp - 0x54]
test edi, edi
mov dword [ebp - 0x4c], edi
mov dword [ebx + 0x24], eax
je 0x1022565
xor esi, esi
cmp dword [edi + 0x60], esi
jbe 0x1022511
mov eax, dword [edi + 0x94]
mov eax, dword [eax]
mov ecx, dword [eax + esi*4]
call fcn.0100667d
test al, al
je 0x102250b
inc dword [ebx + 0x24]
inc esi
cmp esi, dword [edi + 0x60]
jb 0x10224f4
mov ecx, edi
call fcn.010071a2
mov dword [ebx + 0x3c], eax
mov eax, dword [edi + 0xa0]
mov dword [ebx + 0x44], eax
cmp dword [edi + 0xa0], 2
jne 0x1022542
mov esi, dword [ebp - 0x4c]
add esi, 0xa8
lea edi, [ebx + 0x48]
movsd dword es:[edi], dword [esi]
movsd dword es:[edi], dword [esi]
movsd dword es:[edi], dword [esi]
movsd dword es:[edi], dword [esi]
mov edi, dword [ebp - 0x4c]
jmp 0x1022554
cmp dword [edi + 0xa0], 1
jne 0x1022554
mov eax, dword [edi + 0xa8]
mov dword [ebx + 0x48], eax
mov eax, dword [edi + 0x44]
mov dword [ebx + 0x20], eax
mov eax, dword [edi + 0x54]
mov dword [ebx + 0x18], eax
mov eax, dword [edi + 0x50]
jmp 0x1022573
xor eax, eax
mov dword [ebx + 0x3c], eax
mov dword [ebx + 0x44], eax
mov dword [ebx + 0x20], eax
mov dword [ebx + 0x18], eax
push dword [ebx + 0x80]
mov dword [ebx + 0x1c], eax
call fcn.0102e409
test eax, eax
mov dword [ebx + 0x98], eax
jne 0x10225a1
push dword [ebx + 0x90]
and dword [ebx + 0x80], eax
call fcn.0102e42b
jmp 0x10223ae
mov ecx, dword [ebx + 0x80]
mov edx, dword [ebp - 0x48]
mov esi, dword [edx + 8]
mov edi, eax
mov eax, ecx
shr ecx, 2
add esi, 0x84
rep movsd dword es:[edi], dword [esi]
mov ecx, eax
and ecx, 3
rep movsb byte es:[edi], byte [esi]
push 0x40
mov dword [ebx + 0x88], 0x20
call fcn.0102e409
test eax, eax
mov dword [ebx + 0xa0], eax
jne 0x102261b
push dword [ebx + 0x98]
xor esi, esi
mov dword [ebx + 0x88], esi
call fcn.0102e42b
push dword [ebx + 0x90]
mov dword [ebx + 0x98], esi
mov dword [ebx + 0x80], esi
call fcn.0102e42b
mov dword [ebx + 0x90], esi
mov dword [ebx + 0x78], esi
mov eax, 0xc10007cf
jmp 0x102294e
mov eax, dword [ebp - 0x48]
mov eax, dword [eax + 8]
add eax, 0x44
push 0x20
push eax
lea eax, [ebp - 0x44]
push eax
call dword [sym.imp.msvcrt.dll_mbstowcs]
mov ecx, dword [ebx + 0x88]
mov edi, dword [ebx + 0xa0]
shl ecx, 1
mov eax, ecx
shr ecx, 2
lea esi, [ebp - 0x44]
rep movsd dword es:[edi], dword [esi]
mov ecx, eax
and ecx, 3
add esp, 0xc
rep movsb byte es:[edi], byte [esi]
cmp dword [ebp - 0x88], 0
je 0x1022861
lea eax, [ebp - 0x50]
push eax
push dword [ebp - 0x88]
call fcn.0101276f
test al, al
je 0x1022861
lea eax, [ebp - 0x80]
push eax
push 1
push dword [ebp - 0x50]
call fcn.01013c0c
xor edi, edi
cmp eax, edi
mov dword [ebp - 0x48], eax
je 0x1022859
mov ecx, dword [eax + 0x28]
mov dword [ebx + 0x38], ecx
mov eax, dword [eax + 0x10]
cmp eax, edi
je 0x10226a4
cmp word [eax], di
jne 0x10226a9
mov eax, 0x1001a18
mov esi, dword [sym.imp.msvcrt.dll_wcslen]
push eax
call esi
inc eax
mov dword [ebx + 0x7c], eax
pop ecx
add eax, eax
push eax
call fcn.0102e409
cmp eax, edi
mov dword [ebx + 0x94], eax
jne 0x10226ce
mov dword [ebx + 0x7c], edi
jmp 0x10226ec
mov ecx, dword [ebp - 0x48]
mov ecx, dword [ecx + 0x10]
cmp ecx, edi
je 0x10226dd
cmp word [ecx], di
jne 0x10226e2
mov ecx, 0x1001a18
push ecx
push eax
call dword [sym.imp.msvcrt.dll_wcscpy]
pop ecx
pop ecx
mov eax, dword [ebp - 0x48]
mov eax, dword [eax + 0x14]
cmp eax, edi
je 0x10226fb
cmp word [eax], di
jne 0x1022700
mov eax, 0x1001a18
push eax
call esi
inc eax
mov dword [ebx + 0x84], eax
pop ecx
add eax, eax
push eax
call fcn.0102e409
cmp eax, edi
mov dword [ebx + 0x9c], eax
jne 0x1022739
push dword [ebx + 0x94]
mov dword [ebx + 0x7c], edi
call fcn.0102e42b
mov dword [ebx + 0x94], edi
mov dword [ebx + 0x84], edi
jmp 0x1022757
mov ecx, dword [ebp - 0x48]
mov ecx, dword [ecx + 0x14]
cmp ecx, edi
je 0x1022748
cmp word [ecx], di
jne 0x102274d
mov ecx, 0x1001a18
push ecx
push eax
call dword [sym.imp.msvcrt.dll_wcscpy]
pop ecx
pop ecx
mov eax, dword [ebp - 0x50]
cmp eax, edi
je 0x1022763
cmp word [eax], di
jne 0x1022768
mov eax, 0x1001a18
push eax
call esi
inc eax
mov dword [ebx + 0x8c], eax
pop ecx
add eax, eax
push eax
call fcn.0102e409
cmp eax, edi
mov dword [ebx + 0xa4], eax
jne 0x10227b8
push dword [ebx + 0x94]
mov dword [ebx + 0x7c], edi
call fcn.0102e42b
push dword [ebx + 0x9c]
mov dword [ebx + 0x94], edi
mov dword [ebx + 0x84], edi
call fcn.0102e42b
mov dword [ebx + 0x9c], edi
mov dword [ebx + 0x8c], edi
jmp 0x10227d3
mov ecx, dword [ebp - 0x50]
cmp ecx, edi
je 0x10227c4
cmp word [ecx], di
jne 0x10227c9
mov ecx, 0x1001a18
push ecx
push eax
call dword [sym.imp.msvcrt.dll_wcscpy]
pop ecx
pop ecx
mov esi, dword [ebp - 0x48]
mov eax, dword [esi + 0x24]
test eax, eax
jns 0x10227e6
mov dword [ebx + 0x34], 2
jmp 0x1022834
test eax, 0x40000000
je 0x10227f6
mov dword [ebx + 0x34], 1
jmp 0x1022834
test eax, 0x2000000
je 0x1022806
mov dword [ebx + 0x34], 4
jmp 0x1022834
test eax, 0x20000000
je 0x1022816
mov dword [ebx + 0x34], 3
jmp 0x1022834
test eax, 0x1000000
je 0x1022826
mov dword [ebx + 0x34], 6
jmp 0x1022834
test eax, 0x10000000
je 0x1022834
mov dword [ebx + 0x34], 5
mov eax, dword [esi + 0x2c]
push dword [ebp - 0x50]
mov dword [ebx + 0x58], eax
mov eax, dword [esi + 0x30]
mov dword [ebx + 0x5c], eax
mov eax, dword [esi + 0x34]
mov dword [ebx + 0x60], eax
call fcn.01011fc4
push esi
call fcn.0101202b
jmp 0x1022945
push dword [ebp - 0x50]
call fcn.01011fc4
mov edi, dword [sym.imp.msvcrt.dll_wcslen]
mov esi, 0x1002ab4
push esi
call edi
inc eax
mov dword [ebx + 0x7c], eax
pop ecx
add eax, eax
push eax
call fcn.0102e409
test eax, eax
mov dword [ebx + 0x94], eax
jne 0x102288b
and dword [ebx + 0x7c], eax
jmp 0x1022895
push esi
push eax
call dword [sym.imp.msvcrt.dll_wcscpy]
pop ecx
pop ecx
push esi
call edi
inc eax
mov dword [ebx + 0x84], eax
pop ecx
add eax, eax
push eax
call fcn.0102e409
test eax, eax
mov dword [ebx + 0x9c], eax
jne 0x10228d0
push dword [ebx + 0x94]
and dword [ebx + 0x7c], eax
call fcn.0102e42b
and dword [ebx + 0x94], 0
and dword [ebx + 0x84], 0
jmp 0x10228da
push esi
push eax
call dword [sym.imp.msvcrt.dll_wcscpy]
pop ecx
pop ecx
push esi
call edi
inc eax
mov dword [ebx + 0x8c], eax
pop ecx
add eax, eax
push eax
call fcn.0102e409
xor edi, edi
cmp eax, edi
mov dword [ebx + 0xa4], eax
jne 0x102292c
push dword [ebx + 0x94]
mov dword [ebx + 0x7c], edi
call fcn.0102e42b
push dword [ebx + 0x9c]
mov dword [ebx + 0x94], edi
mov dword [ebx + 0x84], edi
call fcn.0102e42b
mov dword [ebx + 0x9c], edi
mov dword [ebx + 0x8c], edi
jmp 0x1022936
push esi
push eax
call dword [sym.imp.msvcrt.dll_wcscpy]
pop ecx
pop ecx
or dword [ebx + 0x58], 0xffffffff
or dword [ebx + 0x5c], 0xffffffff
or dword [ebx + 0x60], 0xffffffff
mov dword [ebx + 0x34], edi
xor eax, eax
jmp 0x102294e
mov eax, 0x80070057
mov ecx, dword [ebp - 4]
pop edi
pop esi
pop ebx
call fcn.0102e95a
leave
ret 8