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

Disassembly:
push ebp
mov ebp, esp
and esp, 0xfffffff8
sub esp, 0x2c
mov eax, dword [0x6cd05c]
xor eax, esp
mov dword [esp + 0x28], eax
push ebx
mov ebx, ecx
push esi
push edi
xor edi, edi
mov eax, dword [ebx + 4]
mov edx, dword [eax + 0x24]
mov eax, 0xaaaaaaab
add edx, edx
mul edx
shr edx, 1
xor ecx, ecx
mov dword [esp + 0x1c], edx
mov dword [esp + 0x18], ecx
nop word [eax + eax]
movsx ecx, byte [ebx + 0x44]
mov dword [esp + 0x20], ecx
mov esi, dword [ebx + ecx*4 + 0x78]
test ecx, ecx
jne 0x62270a
cmp byte [esi + 1], cl
je 0x6228a3
lea edx, [ebx + 0x7c]
mov ecx, esi
call fcn.006228d0
mov edi, eax
test edi, edi
jne 0x6228a3
mov edx, dword [esp + 0x1c]
mov byte [ebx + 0x44], 1
mov dword [ebx + 0x50], eax
jmp 0x6226d0
cmp byte [esi + 1], 0
jne 0x62271c
movzx eax, word [esi + 0x10]
cmp eax, edx
jle 0x6228a3
mov edx, dword [ebx + ecx*4 + 0x74]
movzx eax, word [ebx + ecx*2 + 0x4e]
mov dword [esp + 0x14], edx
mov dword [esp + 0x10], eax
mov edi, dword [edx + 0x48]
test byte [edi + 0x18], 4
mov ecx, dword [edi + 0x10]
je 0x622767
mov eax, dword [ecx + 0x18]
cmp eax, dword [edi + 0x14]
jb 0x622767
cmp dword [ecx + 0x60], 0
je 0x622793
mov ecx, edi
call fcn.006336f0
test eax, eax
je 0x62275f
mov ecx, edi
call fcn.00630740
mov dword [esp + 0xc], eax
jmp 0x622787
xor eax, eax
mov dword [esp + 0xc], eax
jmp 0x622787
mov eax, dword [ecx + 0x94]
cmp eax, dword [ecx + 0x98]
mov ecx, edi
jbe 0x62277e
call fcn.0062f160
jmp 0x622783
call fcn.0062f440
mov dword [esp + 0xc], eax
test eax, eax
jne 0x62281a
mov edx, dword [esp + 0x14]
cmp byte [esi + 3], 0
je 0x6227d2
cmp byte [esi + 1], 1
jne 0x6227d2
mov ax, word [esi + 0x16]
cmp ax, word [esi + 0x12]
jne 0x6227d2
cmp dword [edx + 0x54], 1
je 0x6227d2
movzx eax, word [edx + 0x12]
cmp eax, dword [esp + 0x10]
jne 0x6227d2
mov ecx, dword [esp + 0x14]
lea eax, [esp + 0x24]
push eax
mov edx, esi
call fcn.006240f0
add esp, 4
mov dword [esp + 0xc], eax
jmp 0x62281a
mov eax, dword [ebx + 4]
mov ecx, dword [eax + 0x20]
call fcn.00634b50
movzx ecx, byte [ebx + 0x43]
mov edi, eax
mov edx, dword [esp + 0x10]
and ecx, 1
push ecx
xor ecx, ecx
cmp dword [esp + 0x24], 1
sete cl
push ecx
mov ecx, dword [esp + 0x1c]
push edi
call fcn.00622a30
mov dword [esp + 0x18], eax
add esp, 0xc
mov eax, dword [esp + 0x18]
test eax, eax
je 0x622816
mov ecx, eax
call fcn.00634a90
mov dword [esp + 0x18], edi
mov ecx, dword [esi + 0x48]
mov byte [esi + 1], 0
test byte [ecx + 0x18], 0x40
mov esi, dword [ecx + 0x10]
mov dword [esp + 0x10], esi
je 0x622872
dec dword [esi + 0x78]
mov eax, dword [esi + 0x88]
mov dword [ecx + 0xc], eax
mov eax, dword [esp + 0x10]
mov dword [esi + 0x88], ecx
push dword [ecx + 4]
mov ecx, dword [ecx + 0x14]
mov eax, dword [eax + 0x98]
dec ecx
mov esi, dword [esi + 0x3c]
cdq
push edx
push eax
mov edi, dword [esi]
push 0
push ecx
call fcn.00584790
push edx
push eax
mov eax, dword [edi + 0x48]
push esi
call eax
mov esi, dword [esp + 0x20]
add esp, 0x10
jmp 0x622877
call fcn.006354d0
cmp dword [esi + 0x78], 0
jne 0x622890
mov eax, dword [esi + 0xcc]
cmp dword [eax + 0xc], 0
jne 0x622890
mov ecx, esi
call fcn.00632620
dec byte [ebx + 0x44]
mov edi, dword [esp + 0xc]
mov edx, dword [esp + 0x1c]
test edi, edi
je 0x6226d0
mov ecx, dword [esp + 0x18]
test ecx, ecx
je 0x6228b0
call fcn.00634a90
mov ecx, dword [esp + 0x34]
mov eax, edi
pop edi
pop esi
pop ebx
xor ecx, esp
call fcn.00583e60
mov esp, ebp
pop ebp
ret