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

Disassembly:
push ebp
mov ebp, esp
and esp, 0xfffffff8
sub esp, 0x2c
push ebx
push esi
mov esi, ecx
mov dword [esp + 0x24], edx
push edi
mov dword [esp + 0x24], 0
mov edi, dword [esi]
movsx edx, byte [esi + 0x44]
mov dword [esp + 0x20], edx
mov eax, dword [edi + 4]
mov ebx, dword [esi + edx*4 + 0x78]
mov dword [esp + 0x14], eax
lea eax, [esi + 0x50]
movzx ecx, word [eax + edx*2]
lea eax, [eax + edx*2]
mov dword [esp + 0x34], eax
mov eax, dword [ebx + 0x40]
mov dword [esp + 0x18], ecx
mov dword [esp + 0x1c], ebx
mov ax, word [eax + ecx*2]
mov ch, al
mov cl, ah
movzx eax, word [ebx + 0x14]
movzx ecx, cx
and ecx, eax
add ecx, dword [ebx + 0x38]
cmp byte [ebx + 5], 0
mov dword [esp + 0x10], ecx
jne 0x6221af
and byte [esi + 0x40], 0xf1
xor eax, eax
cmp byte [esi + 0x42], 1
mov dword [esp + 0xc], 0
mov word [esi + 0x24], ax
jne 0x62219c
movzx ecx, word [esi + edx*2 + 0x50]
test cx, cx
je 0x62219c
mov eax, dword [esi + edx*4 + 0x78]
cmp byte [eax + 5], 0
je 0x62219c
lea eax, [ecx - 1]
mov word [esi + edx*2 + 0x50], ax
jmp 0x6221af
lea edx, [esp + 0xc]
mov ecx, esi
call fcn.00625c10
test eax, eax
jne 0x622458
mov al, byte [esi + 0x40]
test al, 0x20
je 0x6221e5
mov ecx, dword [esp + 0x14]
mov edx, dword [esi + 0x34]
mov ecx, dword [ecx + 8]
test ecx, ecx
je 0x6221e0
cmp ecx, esi
je 0x6221d9
test edx, edx
je 0x62226a
cmp dword [ecx + 0x34], edx
je 0x62226a
mov ecx, dword [ecx + 8]
test ecx, ecx
jne 0x6221c4
and al, 0xdf
mov byte [esi + 0x40], al
cmp dword [esi + 0x48], 0
jne 0x622224
cmp byte [edi + 0xb], 0
mov ecx, dword [esi + 0x10]
mov edx, dword [esi + 0x14]
je 0x622224
mov eax, dword [edi + 4]
mov byte [edi + 0xb], 0
mov eax, dword [eax + 8]
test eax, eax
je 0x622224
test byte [eax + 0x40], 0x10
je 0x62221d
mov byte [edi + 0xb], 1
cmp dword [eax + 0x10], ecx
jne 0x62221d
cmp dword [eax + 0x14], edx
jne 0x62221d
mov byte [eax + 0x42], 0
mov eax, dword [eax + 8]
test eax, eax
jne 0x622205
cmp dword [esp + 0x28], 0
je 0x622299
cmp byte [ebx + 5], 0
je 0x62228a
push dword [esp + 0x10]
push ebx
call fcn.0062a460
movzx edi, word [ebx + 0x10]
add esp, 8
movzx ecx, ax
add edi, 2
mov eax, dword [esp + 0x14]
add edi, ecx
mov ecx, dword [eax + 0x24]
mov eax, 0xaaaaaaab
add ecx, ecx
mul ecx
shr edx, 1
cmp edi, edx
jg 0x62228a
mov dword [esp + 0x24], 1
jmp 0x622299
test ecx, ecx
je 0x6221e0
push esi
call fcn.0062ac60
add esp, 4
test eax, eax
je 0x6221e5
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret
mov ecx, esi
call fcn.0062adc0
test eax, eax
jne 0x622458
mov ecx, dword [ebx + 0x48]
call fcn.0062f0f0
test eax, eax
jne 0x622458
mov edx, dword [esp + 0x10]
lea eax, [esp + 0xc]
push eax
mov ecx, ebx
call fcn.006251b0
mov edx, dword [esp + 0x1c]
add esp, 4
mov dword [esp + 0x10], eax
mov ecx, ebx
lea eax, [esp + 0x10]
push eax
movzx eax, word [esp + 0x10]
push eax
call fcn.00624cd0
mov eax, dword [esp + 0x18]
add esp, 8
test eax, eax
jne 0x622458
cmp byte [ebx + 5], al
jne 0x6223b3
movsx eax, byte [esi + 0x44]
mov ebx, dword [esi + eax*4 + 0x78]
mov eax, dword [esp + 0x20]
mov dword [esp + 0xc], ebx
movzx ecx, word [ebx + 0x12]
mov eax, dword [esi + eax*4 + 0x7c]
mov edx, dword [ebx + 0x38]
mov eax, dword [eax + 0x54]
mov dword [esp + 0x2c], eax
mov eax, dword [ebx + 0x40]
mov ax, word [eax + ecx*2 - 2]
mov ch, al
mov cl, ah
movzx eax, word [ebx + 0x14]
movzx ecx, cx
and ecx, eax
lea eax, [edx + 4]
add ecx, edx
mov dword [esp + 0x30], ecx
cmp ecx, eax
jae 0x622343
mov ecx, 0xf2b1
call fcn.005c0b30
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret
mov eax, dword [ebx + 0x4c]
push ecx
push ebx
call eax
mov ecx, dword [esp + 0x14]
movzx ebx, ax
mov eax, dword [esp + 0x1c]
mov ecx, dword [ecx + 0x48]
mov edi, dword [eax + 0x50]
call fcn.0062f0f0
mov edx, dword [esp + 0x20]
mov ecx, dword [esp + 0x24]
mov dword [esp + 0x18], eax
lea eax, [esp + 0x18]
push eax
push dword [esp + 0x38]
lea eax, [ebx + 4]
push edi
push eax
mov eax, dword [esp + 0x48]
add eax, 0xfffffffc
push eax
call fcn.00624b80
add esp, 0x1c
lea eax, [esp + 0x10]
push eax
mov eax, dword [esp + 0x10]
mov ecx, eax
push ebx
movzx edx, word [eax + 0x12]
dec edx
call fcn.00624cd0
mov eax, dword [esp + 0x18]
add esp, 8
test eax, eax
jne 0x622458
mov ebx, dword [esp + 0x1c]
mov ecx, esi
call fcn.00622690
mov edx, eax
test edx, edx
jne 0x622456
movsx ecx, byte [esi + 0x44]
mov edi, dword [esp + 0x20]
cmp ecx, edi
jle 0x622400
mov dl, byte [esi + 0x44]
movsx eax, dl
dec dl
mov ecx, dword [esi + eax*4 + 0x78]
mov byte [esi + 0x44], dl
test ecx, ecx
je 0x6223eb
mov ecx, dword [ecx + 0x48]
call fcn.0062f820
movsx eax, byte [esi + 0x44]
cmp eax, edi
jg 0x6223d0
mov ecx, esi
call fcn.00622690
mov edx, eax
test edx, edx
jne 0x622456
cmp dword [esp + 0x24], 0
je 0x622442
mov byte [esi + 0x42], 2
movzx eax, word [ebx + 0x12]
cmp dword [esp + 0x18], eax
jb 0x622432
mov ecx, dword [esp + 0x34]
mov dword [esi + 0x3c], 0xffffffff
mov ax, word [ebx + 0x12]
dec ax
mov word [ecx], ax
mov eax, edx
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret
mov dword [esi + 0x3c], 1
mov eax, edx
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret
mov ecx, esi
call fcn.00626670
cmp dword [esp + 0x28], 0
mov edx, eax
je 0x622456
mov byte [esi + 0x42], 3
mov eax, edx
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret