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

Disassembly:
sub esp, 0x34
push ebx
push ebp
push esi
xor esi, esi
push edi
mov edi, dword [esp + 0x48]
mov eax, dword [edi + 0x4c]
mov edx, dword [edi + 0x50]
mov dword [esp + 0x10], esi
mov ecx, dword [eax + 0xc]
mov eax, dword [esp + 0x54]
cmp eax, esi
mov dword [esp + 0x1c], esi
mov dword [esp + 0x18], esi
mov dword [esp + 0x14], 1
mov dword [esp + 0x40], ecx
mov dword [esp + 0x2c], esi
mov dword [esp + 0x38], esi
mov dword [esp + 0x34], esi
mov dword [esp + 0x20], edx
je 0x222cace
mov ecx, dword [eax]
mov dword [esp + 0x34], ecx
mov dword [eax], esi
mov eax, dword [edi + 0x4c]
lea edx, [esp + 0x10]
push edx
push eax
call fcn.02260580
add esp, 8
cmp eax, esi
mov dword [esp + 0x30], eax
jne 0x222ced7
mov eax, dword [edi + 0x78]
cmp eax, 0xffffffff
jne 0x222caf9
mov ebx, dword [esp + 0x10]
jmp 0x222cb05
mov ecx, dword [esp + 0x10]
cmp eax, ecx
mov ebx, eax
jl 0x222cb05
mov ebx, ecx
mov ebp, dword [esp + 0x4c]
push ebp
mov dword [esp + 0x2c], ebx
call fcn.02264470
mov ecx, dword [esp + 0x14]
xor edx, edx
add esp, 4
cmp ecx, edx
jne 0x222cb34
mov ecx, dword [esp + 0x50]
pop edi
pop esi
pop ebp
mov dword [ecx], 1
xor eax, eax
pop ebx
add esp, 0x34
ret
mov eax, dword [esp + 0x20]
cmp eax, edx
jne 0x222cb5c
push ebx
push 1
push ebp
call fcn.02264f40
mov edx, dword [esp + 0x5c]
add esp, 0xc
pop edi
pop esi
pop ebp
mov dword [edx], 1
xor eax, eax
pop ebx
add esp, 0x34
ret
mov esi, dword [eax + 0x14]
cmp esi, edx
jne 0x222cb83
push ebx
push 1
push ebp
call fcn.02264f40
mov eax, dword [esp + 0x5c]
add esp, 0xc
pop edi
pop esi
pop ebp
mov dword [eax], 1
xor eax, eax
pop ebx
add esp, 0x34
ret
mov edi, dword [edi + 0x4c]
cmp dword [edi + 0x58c], edx
je 0x222cbae
push ecx
push 1
push ebp
call fcn.02264f40
mov ecx, dword [esp + 0x5c]
add esp, 0xc
pop edi
pop esi
pop ebp
mov dword [ecx], 2
xor eax, eax
pop ebx
add esp, 0x34
ret
cmp esi, 1
jne 0x222cbdb
mov eax, dword [eax + 0x18]
cmp dword [eax + 8], edx
jne 0x222cbdb
mov edx, dword [eax + 0xc]
mov eax, dword [edx]
push eax
push eax
push ebp
call fcn.02264f40
mov eax, dword [esp + 0x5c]
add esp, 0xc
pop edi
mov dword [eax], esi
pop esi
pop ebp
xor eax, eax
pop ebx
add esp, 0x34
ret
cmp esi, edx
mov dword [esp + 0x24], edx
jle 0x222cc7b
mov ecx, dword [esp + 0x20]
mov ebx, dword [ecx + 0x18]
mov eax, ebx
mov edi, esi
cmp dword [eax], 4
jne 0x222cc13
mov ecx, dword [eax + 8]
inc edx
test ecx, ecx
je 0x222cc13
cmp dword [ecx + 0xbc], 0
je 0x222cc13
inc dword [esp + 0x24]
mov ecx, dword [eax + 4]
mov dword [esp + 0x38], ecx
add eax, 0x30
dec edi
jne 0x222cbf2
cmp edx, 1
jne 0x222cc7b
xor edx, edx
test esi, esi
jle 0x222cc52
mov eax, ebx
cmp dword [eax], 4
jne 0x222cc4a
mov ecx, dword [eax + 8]
test ecx, ecx
je 0x222cc42
mov edi, dword [ecx + 0xbc]
test edi, edi
je 0x222cd04
jmp 0x222cc4a
mov dword [esp + 0x14], 0
inc edx
add eax, 0x30
cmp edx, esi
jl 0x222cc26
mov dword [esp + 0x18], 1
mov eax, dword [esp + 0x18]
mov ebx, dword [esp + 0x1c]
mov edx, dword [esp + 0x14]
xor ecx, ecx
test eax, eax
mov dword [esp + 0x3c], ecx
jle 0x222ccdd
test ebx, ebx
jne 0x222ccdd
mov edi, 1
jmp 0x222ccdf
test esi, esi
jle 0x222cc5a
mov ecx, dword [esp + 0x20]
mov eax, dword [ecx + 0x18]
mov edx, dword [esp + 0x14]
mov ebx, dword [esp + 0x1c]
mov edi, edi
mov ecx, dword [eax + 0x20]
sub ecx, 0x28
je 0x222cca1
dec ecx
jne 0x222cca2
inc dword [esp + 0x18]
jmp 0x222cca2
inc ebx
cmp dword [eax], 4
jne 0x222ccba
mov ecx, dword [eax + 8]
test ecx, ecx
je 0x222ccb8
mov edi, dword [ecx + 0xbc]
test edi, edi
jne 0x222ccba
xor edx, edx
add eax, 0x30
dec esi
jne 0x222cc90
test ebx, ebx
mov dword [esp + 0x14], edx
mov dword [esp + 0x1c], ebx
jle 0x222cc5a
mov eax, dword [esp + 0x18]
test eax, eax
jne 0x222cc5a
mov ecx, 1
mov dword [esp + 0x3c], ecx
xor edi, edi
mov eax, dword [esp + 0x18]
test eax, eax
mov dword [esp + 0x1c], edi
jle 0x222ccf6
test ebx, ebx
jle 0x222ccf6
mov eax, 1
jmp 0x222ccf8
xor eax, eax
test ecx, ecx
je 0x222cd00
test edx, edx
je 0x222cd04
test eax, eax
je 0x222cd28
mov edx, dword [esp + 0x10]
push edx
push 1
push ebp
call fcn.02264f40
mov eax, dword [esp + 0x5c]
add esp, 0xc
pop edi
pop esi
pop ebp
mov dword [eax], 2
xor eax, eax
pop ebx
add esp, 0x34
ret
mov ebx, dword [esp + 0x50]
xor ecx, ecx
test edx, edx
sete cl
inc ecx
mov dword [ebx], ecx
call fcn.02264420
test edi, edi
mov esi, eax
je 0x222cd51
mov edx, dword [esp + 0x10]
push edx
push 1
push ebp
call fcn.02264f40
add esp, 0xc
mov eax, dword [esp + 0x34]
test eax, eax
je case.0x222cd7c.13
cmp dword [esp + 0x24], 1
jne case.0x222cd7c.13
test edi, edi
je case.0x222cd7c.13
cmp dword [ebx], 1
jne case.0x222cd7c.13
mov eax, dword [esp + 0x38]
add eax, 0xfffffff6
cmp eax, 0x12
ja case.0x222cd7c.13
movzx eax, byte [eax + 0x222ceec]
jmp dword [eax*4 + 0x222cee4]
mov eax, dword [esp + 0x28]
cmp eax, 0x200
mov ecx, 0x200
jg 0x222cd97
mov ecx, eax
jmp 0x222cd9c
mov eax, 0x200
push ecx
push eax
push 4
call fcn.022640f0
mov edx, dword [esp + 0x60]
xor ecx, ecx
add esp, 0xc
test eax, eax
setne cl
mov dword [esi + 0xc], eax
mov eax, ecx
mov dword [edx], eax
mov dword [esp + 0x2c], eax
mov eax, dword [0x2288380]
test eax, eax
je 0x222cdcc
call fcn.0223ef10
xor ebx, ebx
xor edi, edi
mov eax, dword [esp + 0x20]
cmp ebx, dword [eax + 0x14]
jge 0x222cea6
mov eax, dword [eax + 0x18]
mov ecx, dword [eax + edi]
add eax, edi
cmp ecx, 4
jne 0x222ce96
mov ecx, dword [eax + 8]
test ecx, ecx
je 0x222ce96
mov edx, dword [ecx + 0xbc]
test edx, edx
je 0x222ce96
mov ebp, dword [esp + 0x2c]
or ecx, 0xffffffff
test ebp, ebp
je 0x222ce19
mov ecx, dword [esp + 0x48]
mov ecx, dword [ecx + 0x78]
push ebp
push ecx
mov ecx, dword [esp + 0x48]
mov ecx, dword [ecx + 0x81c]
and ecx, 1
push ecx
mov ecx, dword [esp + 0x1c]
push ecx
mov ecx, dword [eax + 0xc]
push esi
push ecx
push eax
push edx
call fcn.0222c440
add esp, 0x20
test eax, eax
mov dword [esp + 0x30], eax
jne 0x222ce92
mov eax, dword [esp + 0x1c]
test eax, eax
je 0x222ce79
push esi
call fcn.02264600
mov ebp, dword [esp + 0x50]
push ebp
push ebp
push esi
call fcn.02264d40
mov eax, dword [esp + 0x3c]
add esp, 0x10
test eax, eax
je 0x222ce96
mov edx, dword [esi + 0xc]
mov dword [ebp + 0xc], edx
mov dword [esi + 0xc], 0
jmp 0x222ce96
mov eax, dword [esp + 0x3c]
test eax, eax
je 0x222ce92
mov ebp, dword [esp + 0x4c]
push ebp
push ebp
push esi
call fcn.02264c70
add esp, 0xc
jmp 0x222ce96
mov ebp, dword [esp + 0x4c]
mov eax, dword [esp + 0x30]
inc ebx
add edi, 0x30
test eax, eax
je 0x222cdd0
push esi
call fcn.022645a0
mov eax, dword [esp + 0x54]
mov ecx, dword [eax]
add esp, 4
cmp ecx, 2
jne 0x222ced7
push ebp
call fcn.02264600
add esp, 4
test eax, eax
je 0x222ced7
mov ecx, dword [esp + 0x10]
push ecx
push 1
push ebp
call fcn.02264f40
add esp, 0xc
mov eax, dword [esp + 0x30]
pop edi
pop esi
pop ebp
pop ebx
add esp, 0x34
ret