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

Disassembly:
push ebp
mov ebp, esp
and esp, 0xfffffff8
sub esp, 0x3c
push ebx
push esi
push edi
mov edi, ecx
mov dword [esp + 0x28], 0
and dl, 2
mov byte [esp + 0xf], dl
mov eax, dword [edi]
movzx ecx, word [edi + 0x46]
mov dword [esp + 0x10], eax
mov dword [esp + 0x1c], ecx
mov eax, dword [eax + 4]
mov dword [esp + 0x18], eax
movsx eax, byte [edi + 0x44]
mov dword [esp + 0x24], eax
mov ebx, dword [edi + eax*4 + 0x74]
mov dword [esp + 0x14], ebx
mov eax, dword [ebx + 0x40]
mov ax, word [eax + ecx*2]
mov ch, al
mov cl, ah
movzx eax, word [ebx + 0x18]
movzx ecx, cx
and ecx, eax
add ecx, dword [ebx + 0x38]
mov dword [esp + 0x20], ecx
test dl, dl
je 0x42293b
cmp byte [ebx + 8], 0
je 0x422984
push ecx
push ebx
call fcn.0041b290
movzx esi, word [ebx + 0x14]
add esp, 8
movzx ecx, ax
add esi, 2
add esi, ecx
mov eax, 0xaaaaaaab
mov ecx, dword [esp + 0x18]
mov ecx, dword [ecx + 0x24]
add ecx, ecx
mul ecx
shr edx, 1
cmp esi, edx
jg 0x422984
mov dword [esp + 0x28], 1
cmp byte [ebx + 8], 0
jne 0x422a16
and byte [edi + 0x40], 0xf1
xor eax, eax
cmp byte [edi + 0x42], 1
mov word [edi + 0x22], ax
jne 0x422a07
movzx ecx, word [edi + 0x46]
test cx, cx
je 0x422a07
movsx eax, byte [edi + 0x44]
mov eax, dword [edi + eax*4 + 0x74]
cmp byte [eax + 8], 0
je 0x422a07
lea eax, [ecx - 1]
mov word [edi + 0x46], ax
jmp 0x422a16
cmp byte [edi + 0x45], 0
mov ecx, edi
je 0x42299f
call fcn.0041e650
mov eax, dword [edi + 0x10]
mov dword [edi + 0x28], eax
mov eax, dword [edi + 0x14]
mov dword [edi + 0x2c], eax
jmp 0x42293b
call fcn.0041e650
mov eax, dword [edi + 0x1c]
mov dword [edi + 0x2c], 0
push dword [edi + 0x2c]
mov dword [edi + 0x28], eax
push eax
call fcn.00409580
mov ebx, eax
add esp, 8
test ebx, ebx
je 0x4229f9
push 0
push ebx
push dword [edi + 0x28]
xor edx, edx
mov ecx, edi
call fcn.0041e800
mov esi, eax
add esp, 0xc
test esi, esi
jne 0x4229e7
mov dword [edi + 0x30], ebx
mov ebx, dword [esp + 0x14]
jmp 0x42293b
push ebx
call fcn.004098a0
add esp, 4
mov eax, esi
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret
mov esi, 7
mov eax, esi
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret
mov ecx, edi
call fcn.0041f5f0
test eax, eax
jne 0x422c4d
test byte [edi + 0x40], 0x20
je 0x422a34
mov edx, dword [edi + 0x34]
mov ecx, dword [esp + 0x18]
push edi
call fcn.0041ab00
add esp, 4
test eax, eax
jne 0x422c4d
cmp dword [edi + 0x70], 0
jne 0x422a88
mov eax, dword [esp + 0x10]
mov edx, dword [edi + 0x10]
mov esi, dword [edi + 0x14]
mov ecx, dword [edi + 0x34]
cmp byte [eax + 0xb], 0
je 0x422a88
mov byte [eax + 0xb], 0
mov eax, dword [eax + 4]
mov eax, dword [eax + 8]
test eax, eax
je 0x422a88
mov ebx, dword [esp + 0x10]
nop
test byte [eax + 0x40], 0x10
je 0x422a7d
mov byte [ebx + 0xb], 1
cmp dword [eax + 0x34], ecx
jne 0x422a7d
cmp dword [eax + 0x10], edx
jne 0x422a7d
cmp dword [eax + 0x14], esi
jne 0x422a7d
mov byte [eax + 0x42], 0
mov eax, dword [eax + 8]
test eax, eax
jne 0x422a60
mov ebx, dword [esp + 0x14]
mov ecx, dword [ebx + 0x48]
call fcn.00417400
test eax, eax
jne 0x422c4d
mov edx, dword [esp + 0x20]
lea eax, [esp + 0x30]
push eax
mov ecx, ebx
call fcn.0041fff0
mov edx, dword [esp + 0x20]
add esp, 4
mov dword [esp + 0x10], eax
mov ecx, ebx
lea eax, [esp + 0x10]
push eax
movzx eax, word [esp + 0x46]
push eax
call fcn.004204a0
mov eax, dword [esp + 0x18]
add esp, 8
test eax, eax
jne 0x422c4d
cmp byte [ebx + 8], al
jne 0x422bab
movsx eax, byte [edi + 0x44]
mov esi, dword [edi + eax*4 + 0x74]
mov eax, dword [esp + 0x24]
movzx ecx, word [esi + 0x16]
mov eax, dword [edi + eax*4 + 0x78]
mov edx, dword [esi + 0x38]
mov eax, dword [eax + 4]
mov dword [esp + 0x2c], eax
mov eax, dword [esi + 0x40]
mov ax, word [eax + ecx*2 - 2]
mov ch, al
mov cl, ah
movzx eax, word [esi + 0x18]
movzx ebx, cx
and ebx, eax
lea eax, [edx + 4]
add ebx, edx
cmp ebx, eax
jae 0x422b2a
mov ecx, 0x10971
call fcn.00480cf0
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret
mov eax, dword [esi + 0x4c]
push ebx
push esi
call eax
mov ecx, dword [esi + 0x48]
add esp, 8
movzx eax, ax
mov dword [esp + 0x20], eax
mov eax, dword [esp + 0x18]
mov eax, dword [eax + 0x50]
mov dword [esp + 0x18], eax
call fcn.00417400
mov dword [esp + 0x10], eax
test eax, eax
jne 0x422b83
mov edx, dword [esp + 0x1c]
lea eax, [esp + 0x10]
push eax
push dword [esp + 0x30]
mov eax, dword [esp + 0x28]
push dword [esp + 0x20]
add eax, 4
push eax
lea eax, [ebx - 4]
mov ebx, dword [esp + 0x24]
push eax
mov ecx, ebx
call fcn.004205d0
add esp, 0x14
jmp 0x422b87
mov ebx, dword [esp + 0x14]
movzx edx, word [esi + 0x16]
lea eax, [esp + 0x10]
push eax
push dword [esp + 0x24]
dec edx
mov ecx, esi
call fcn.004204a0
mov eax, dword [esp + 0x18]
add esp, 8
test eax, eax
jne 0x422c4d
mov ecx, edi
call fcn.004223a0
mov edx, eax
test edx, edx
jne 0x422c4b
movsx ecx, byte [edi + 0x44]
mov esi, dword [esp + 0x24]
cmp ecx, esi
jle 0x422bf8
mov dl, byte [edi + 0x44]
movsx eax, dl
dec dl
mov ecx, dword [edi + eax*4 + 0x74]
mov byte [edi + 0x44], dl
test ecx, ecx
je 0x422be3
mov ecx, dword [ecx + 0x48]
call fcn.00416cd0
movsx eax, byte [edi + 0x44]
cmp eax, esi
jg 0x422bc8
mov ecx, edi
call fcn.004223a0
mov edx, eax
test edx, edx
jne 0x422c4b
cmp dword [esp + 0x28], 0
je 0x422c37
mov byte [edi + 0x42], 2
movzx eax, word [ebx + 0x16]
cmp dword [esp + 0x1c], eax
jb 0x422c27
mov dword [edi + 0x3c], 0xffffffff
mov ax, word [ebx + 0x16]
dec ax
mov word [edi + 0x46], ax
mov eax, edx
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret
mov dword [edi + 0x3c], 1
mov eax, edx
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret
mov ecx, edi
call fcn.0041ec40
cmp byte [esp + 0xf], 0
mov edx, eax
je 0x422c4b
mov byte [edi + 0x42], 3
mov eax, edx
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret