Function at 0x1022e69
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 0x1023549
cmp ebx, esi
je 0x1023549
cmp word [eax + 0xe], 4
jne 0x1023549
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 0x1022eee
mov eax, 0x80004005
jmp 0x102354e
mov edx, dword [ebp - 0x54]
test edx, edx
mov ecx, dword [ebp - 0x68]
jbe 0x1022f10
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 0x1022efe
test ecx, ecx
je 0x1022f20
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 0x1022f6d
mov ecx, dword [ebp - 0x60]
test ecx, ecx
jbe 0x1022f6d
lea eax, [edi + 8]
mov dword [ebp - 0x4c], ecx
mov edx, dword [eax + 4]
cmp dword [ebp - 0x58], edx
mov ecx, dword [eax]
jg 0x1022f65
jl 0x1022f5f
cmp dword [ebp - 0x5c], ecx
ja 0x1022f65
mov dword [ebp - 0x5c], ecx
mov dword [ebp - 0x58], edx
add eax, 0x18
dec dword [ebp - 0x4c]
jne 0x1022f4e
test edi, edi
je 0x1022f7d
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.010299ab
test al, al
je 0x1023211
push 0xca
call fcn.0102f009
test eax, eax
mov dword [ebx + 0x90], eax
jne 0x1022fb7
and dword [ebx + 0x78], 0
jmp 0x1023211
test byte [ebp - 0x8c], 0x20
jne 0x102300c
mov eax, dword [ebp - 0x48]
mov eax, dword [eax + 0xa4]
add eax, 0x26e
push eax
call fcn.0102210b
mov edi, eax
test edi, edi
je 0x1023000
push edi
push dword [ebp - 0x48]
call fcn.01022245
test al, al
je 0x1023000
mov eax, dword [edi + 0xa4]
push dword [ebx + 0x90]
add eax, 0x1d4
push eax
call fcn.01021eb9
jmp 0x102301a
mov eax, dword [ebx + 0x90]
and word [eax], 0
jmp 0x102301a
push 0x1002ac4
push eax
call dword [fcn.010012e4]
pop ecx
pop ecx
push dword [ebx + 0x90]
call dword [fcn.010012e0]
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 0x1023072
mov dword [ebx + 0x30], 0x20
jmp 0x102307b
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.0100721d
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 0x1023165
xor esi, esi
cmp dword [edi + 0x60], esi
jbe 0x1023111
mov eax, dword [edi + 0x94]
mov eax, dword [eax]
mov ecx, dword [eax + esi*4]
call fcn.0100727d
test al, al
je 0x102310b
inc dword [ebx + 0x24]
inc esi
cmp esi, dword [edi + 0x60]
jb 0x10230f4
mov ecx, edi
call fcn.01007da2
mov dword [ebx + 0x3c], eax
mov eax, dword [edi + 0xa0]
mov dword [ebx + 0x44], eax
cmp dword [edi + 0xa0], 2
jne 0x1023142
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 0x1023154
cmp dword [edi + 0xa0], 1
jne 0x1023154
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 0x1023173
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.0102f009
test eax, eax
mov dword [ebx + 0x98], eax
jne 0x10231a1
push dword [ebx + 0x90]
and dword [ebx + 0x80], eax
call fcn.0102f02b
jmp 0x1022fae
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.0102f009
test eax, eax
mov dword [ebx + 0xa0], eax
jne 0x102321b
push dword [ebx + 0x98]
xor esi, esi
mov dword [ebx + 0x88], esi
call fcn.0102f02b
push dword [ebx + 0x90]
mov dword [ebx + 0x98], esi
mov dword [ebx + 0x80], esi
call fcn.0102f02b
mov dword [ebx + 0x90], esi
mov dword [ebx + 0x78], esi
mov eax, 0xc10007cf
jmp 0x102354e
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 [0x10012e8]
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 0x1023461
lea eax, [ebp - 0x50]
push eax
push dword [ebp - 0x88]
call fcn.0101336f
test al, al
je 0x1023461
lea eax, [ebp - 0x80]
push eax
push 1
push dword [ebp - 0x50]
call fcn.0101480c
xor edi, edi
cmp eax, edi
mov dword [ebp - 0x48], eax
je 0x1023459
mov ecx, dword [eax + 0x28]
mov dword [ebx + 0x38], ecx
mov eax, dword [eax + 0x10]
cmp eax, edi
je 0x10232a4
cmp word [eax], di
jne 0x10232a9
mov eax, 0x1001a18
mov esi, dword [fcn.010012e0]
push eax
call esi
inc eax
mov dword [ebx + 0x7c], eax
pop ecx
add eax, eax
push eax
call fcn.0102f009
cmp eax, edi
mov dword [ebx + 0x94], eax
jne 0x10232ce
mov dword [ebx + 0x7c], edi
jmp 0x10232ec
mov ecx, dword [ebp - 0x48]
mov ecx, dword [ecx + 0x10]
cmp ecx, edi
je 0x10232dd
cmp word [ecx], di
jne 0x10232e2
mov ecx, 0x1001a18
push ecx
push eax
call dword [fcn.010012e4]
pop ecx
pop ecx
mov eax, dword [ebp - 0x48]
mov eax, dword [eax + 0x14]
cmp eax, edi
je 0x10232fb
cmp word [eax], di
jne 0x1023300
mov eax, 0x1001a18
push eax
call esi
inc eax
mov dword [ebx + 0x84], eax
pop ecx
add eax, eax
push eax
call fcn.0102f009
cmp eax, edi
mov dword [ebx + 0x9c], eax
jne 0x1023339
push dword [ebx + 0x94]
mov dword [ebx + 0x7c], edi
call fcn.0102f02b
mov dword [ebx + 0x94], edi
mov dword [ebx + 0x84], edi
jmp 0x1023357
mov ecx, dword [ebp - 0x48]
mov ecx, dword [ecx + 0x14]
cmp ecx, edi
je 0x1023348
cmp word [ecx], di
jne 0x102334d
mov ecx, 0x1001a18
push ecx
push eax
call dword [fcn.010012e4]
pop ecx
pop ecx
mov eax, dword [ebp - 0x50]
cmp eax, edi
je 0x1023363
cmp word [eax], di
jne 0x1023368
mov eax, 0x1001a18
push eax
call esi
inc eax
mov dword [ebx + 0x8c], eax
pop ecx
add eax, eax
push eax
call fcn.0102f009
cmp eax, edi
mov dword [ebx + 0xa4], eax
jne 0x10233b8
push dword [ebx + 0x94]
mov dword [ebx + 0x7c], edi
call fcn.0102f02b
push dword [ebx + 0x9c]
mov dword [ebx + 0x94], edi
mov dword [ebx + 0x84], edi
call fcn.0102f02b
mov dword [ebx + 0x9c], edi
mov dword [ebx + 0x8c], edi
jmp 0x10233d3
mov ecx, dword [ebp - 0x50]
cmp ecx, edi
je 0x10233c4
cmp word [ecx], di
jne 0x10233c9
mov ecx, 0x1001a18
push ecx
push eax
call dword [fcn.010012e4]
pop ecx
pop ecx
mov esi, dword [ebp - 0x48]
mov eax, dword [esi + 0x24]
test eax, eax
jns 0x10233e6
mov dword [ebx + 0x34], 2
jmp 0x1023434
test eax, 0x40000000
je 0x10233f6
mov dword [ebx + 0x34], 1
jmp 0x1023434
test eax, 0x2000000
je 0x1023406
mov dword [ebx + 0x34], 4
jmp 0x1023434
test eax, 0x20000000
je 0x1023416
mov dword [ebx + 0x34], 3
jmp 0x1023434
test eax, 0x1000000
je 0x1023426
mov dword [ebx + 0x34], 6
jmp 0x1023434
test eax, 0x10000000
je 0x1023434
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.01012bc4
push esi
call fcn.01012c2b
jmp 0x1023545
push dword [ebp - 0x50]
call fcn.01012bc4
mov edi, dword [fcn.010012e0]
mov esi, 0x1002ab4
push esi
call edi
inc eax
mov dword [ebx + 0x7c], eax
pop ecx
add eax, eax
push eax
call fcn.0102f009
test eax, eax
mov dword [ebx + 0x94], eax
jne 0x102348b
and dword [ebx + 0x7c], eax
jmp 0x1023495
push esi
push eax
call dword [fcn.010012e4]
pop ecx
pop ecx
push esi
call edi
inc eax
mov dword [ebx + 0x84], eax
pop ecx
add eax, eax
push eax
call fcn.0102f009
test eax, eax
mov dword [ebx + 0x9c], eax
jne 0x10234d0
push dword [ebx + 0x94]
and dword [ebx + 0x7c], eax
call fcn.0102f02b
and dword [ebx + 0x94], 0
and dword [ebx + 0x84], 0
jmp 0x10234da
push esi
push eax
call dword [fcn.010012e4]
pop ecx
pop ecx
push esi
call edi
inc eax
mov dword [ebx + 0x8c], eax
pop ecx
add eax, eax
push eax
call fcn.0102f009
xor edi, edi
cmp eax, edi
mov dword [ebx + 0xa4], eax
jne 0x102352c
push dword [ebx + 0x94]
mov dword [ebx + 0x7c], edi
call fcn.0102f02b
push dword [ebx + 0x9c]
mov dword [ebx + 0x94], edi
mov dword [ebx + 0x84], edi
call fcn.0102f02b
mov dword [ebx + 0x9c], edi
mov dword [ebx + 0x8c], edi
jmp 0x1023536
push esi
push eax
call dword [fcn.010012e4]
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 0x102354e
mov eax, 0x80070057
mov ecx, dword [ebp - 4]
pop edi
pop esi
pop ebx
call fcn.0102f55a
leave
ret 8