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

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x28
push ebx
mov ebx, dword [ebp + 0x14]
push esi
push edi
mov edi, dword [ebp + 8]
mov eax, dword [ebx]
mov dword [ebp - 0xc], edx
mov esi, ecx
mov ecx, dword [edi]
xor edx, edx
mov dword [edi], edx
mov dword [ebx], edx
cmp dword [esi + 0x18], edx
mov dword [ebp - 0x10], ecx
mov dword [ebp - 0x20], eax
je 0x10022eda
mov eax, dword [esi + 0x1c]
jmp 0x1002312e
cmp dword [esi + 0xc], edx
lea edi, [esi + 0x20]
mov dword [edi], 2
je 0x10022f94
push edi
mov dword [ebp + 0x14], eax
push dword [ebp + 0x1c]
lea eax, [ebp + 0x14]
mov dword [ebp - 0xc], ecx
mov ecx, dword [esi + 0x78]
push dword [ebp + 0x18]
xor edx, edx
push eax
lea eax, [ebp - 0xc]
push dword [ebp + 0x10]
push eax
call dword [esi + 0x88]
mov dword [ebp + 0x1c], eax
xor ecx, ecx
push 1
mov dword [esi + 0x1c], eax
mov eax, dword [ebp + 0x14]
pop edx
cmp dword [edi], edx
mov dword [ebx], eax
mov eax, dword [ebp - 0xc]
sete cl
add dword [esi + 0x14], eax
xor edi, edi
cmp dword [ebp + 0x1c], edi
mov dword [ebp + 0x10], ecx
mov ecx, dword [esi + 0x14]
jne 0x10022f41
cmp dword [ebp + 0x18], edi
jne 0x10022f41
cmp dword [ebp + 0x10], edi
je 0x10022f44
mov dword [esi + 0x18], edx
mov ebx, dword [esi + 8]
cmp ebx, edx
je 0x10022f87
cmp dword [esi + 0x18], edi
je 0x10022f8c
cmp ebx, edx
mov eax, ecx
mov edi, edx
jbe 0x10022f87
lea ebx, [esi + 0x90]
mov edx, dword [esi + 0xc]
mov ecx, dword [ebx]
push eax
call dword [ebx + 0x14]
cmp dword [ebp + 0x10], 0
jne 0x10022f7b
cmp dword [ebp + 0xc], 0
je 0x10022f7e
mov ecx, dword [ebp - 0x10]
cmp dword [esi + 0x14], ecx
jne 0x10022f7e
mov eax, dword [esi + 0x14]
inc edi
add ebx, 0x18
cmp edi, dword [esi + 8]
jb 0x10022f5e
mov ecx, dword [ebp + 8]
mov dword [ecx], eax
mov eax, dword [ebp + 0x1c]
jmp 0x1002312e
cmp dword [esi + 8], 1
je 0x10022fc0
cmp dword [esi + 4], edx
jne 0x10022fb9
mov ecx, dword [esi]
mov edx, 0x60000
call dword [ecx]
test eax, eax
mov dword [esi + 4], eax
jne 0x10022fb7
push 2
pop eax
jmp 0x1002312e
xor edx, edx
mov dword [ebp + 0x1c], edx
jmp 0x10022fc0
xor edx, edx
xor edi, edi
cmp dword [esi + 8], edx
mov dword [ebp - 0x18], edx
mov dword [ebp - 0x1c], 1
mov dword [ebp + 0xc], edx
mov dword [esi + 0x20], 2
jbe 0x10023124
lea eax, [edi + edi*2 + 0xf]
test edi, edi
lea ebx, [esi + eax*8]
mov dword [ebp - 8], ebx
jne 0x10023003
mov edx, dword [ebp + 0x14]
mov ecx, dword [ebp - 0x20]
mov eax, dword [ebp + 0x10]
sub ecx, dword [edx]
mov dword [ebp - 4], ecx
mov ecx, dword [ebp + 0x18]
mov dword [ebp - 0x14], ecx
jmp 0x10023027
mov edx, dword [esi + edi*4 + 0x2c]
lea ecx, [edi - 1]
mov eax, ecx
mov ebx, dword [esi + ecx*4 + 0x3c]
mov ecx, dword [esi + ecx*4 + 0x24]
shl eax, 0x11
add eax, dword [esi + 4]
mov dword [ebp - 0x14], ecx
add eax, edx
sub ebx, edx
mov dword [ebp - 4], ebx
mov ebx, dword [ebp - 8]
mov ecx, dword [esi + 8]
dec ecx
cmp edi, ecx
jne 0x10023045
mov ecx, dword [ebp - 0xc]
mov edx, dword [ebp + 8]
mov dword [ebp - 0x24], ecx
mov ecx, dword [ebp - 0x10]
sub ecx, dword [edx]
mov edx, dword [ebp - 0x24]
mov dword [ebp - 8], ecx
jmp 0x10023062
mov ecx, dword [esi + edi*4 + 0x30]
cmp ecx, dword [esi + edi*4 + 0x3c]
jne 0x1002310a
mov edx, edi
mov dword [ebp - 8], 0x20000
shl edx, 0x11
add edx, dword [esi + 4]
mov ecx, dword [esi + edi*4 + 0x68]
test ecx, ecx
je 0x1002307c
cmp dword [ebp + 0xc], 0
jne 0x1002310a
mov dword [ebp + 0xc], ecx
jmp 0x1002310a
lea ecx, [ebp - 0x28]
push ecx
lea ecx, [ebp - 4]
push dword [ebp + 0x1c]
push dword [ebp - 0x14]
push ecx
mov ecx, dword [ebx]
push eax
lea eax, [ebp - 8]
push eax
call dword [ebx + 0x10]
test eax, eax
je 0x100230a5
cmp dword [ebp + 0xc], 0
mov dword [esi + edi*4 + 0x68], eax
jne 0x100230a5
mov dword [ebp + 0xc], eax
mov ecx, dword [ebp - 0x28]
xor ebx, ebx
cmp ecx, 1
sete bl
test ebx, ebx
jne 0x100230c4
and dword [ebp - 0x1c], ebx
cmp dword [esi + 8], 1
jne 0x100230c4
test eax, eax
jne 0x100230c4
mov dword [esi + 0x20], ecx
mov edx, dword [ebp - 4]
test edi, edi
jne 0x100230d5
mov eax, dword [ebp + 0x14]
add dword [eax], edx
add dword [ebp + 0x10], edx
jmp 0x100230d9
add dword [esi + edi*4 + 0x2c], edx
mov eax, dword [esi + 8]
dec eax
cmp edi, eax
mov eax, dword [ebp - 8]
jne 0x100230ee
mov ecx, dword [ebp + 8]
add dword [ecx], eax
add dword [ebp - 0xc], eax
jmp 0x100230fb
mov dword [esi + edi*4 + 0x3c], eax
and dword [esi + edi*4 + 0x30], 0
mov dword [esi + edi*4 + 0x24], ebx
test eax, eax
jne 0x10023103
test edx, edx
je 0x1002310a
mov dword [ebp - 0x18], 1
inc edi
cmp edi, dword [esi + 8]
jb 0x10022fdf
cmp dword [ebp - 0x18], 0
jne 0x10022fbe
cmp dword [ebp - 0x1c], 0
je 0x1002312b
mov dword [esi + 0x20], 1
mov eax, dword [ebp + 0xc]
pop edi
pop esi
pop ebx
leave
ret 0x18