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

Disassembly:
push ebp
mov ebp, esp
and esp, 0xfffffff8
sub esp, 0x9c
mov eax, dword [ebp + 0xc]
mov dword [esp + 0x40], edx
mov dword [esp + 8], ecx
push ebx
push esi
push edi
cmp eax, 3
ja case.0x6637df.1
jmp dword [eax*4 + 0x663b08]
mov dword [esp + 0x20], 0x663520
jmp 0x66380c
mov dword [esp + 0x20], 0x663500
jmp 0x66380c
mov dword [esp + 0x20], 0x663540
jmp 0x66380c
mov dword [esp + 0x20], 0x6634e0
push edx
lea ecx, [esp + 0x7c]
call fcn.00661a30
push dword [ebp + 8]
lea ecx, [esp + 0x94]
call fcn.00661a30
mov cl, byte [esp + 0x8c]
mov eax, dword [esp + 0x88]
mov ebx, dword [esp + 0x84]
mov edi, dword [esp + 0x9c]
mov byte [esp + 0x12], cl
mov ecx, dword [esp + 0x80]
mov dword [esp + 0x24], ecx
mov ecx, dword [esp + 0x78]
mov dword [esp + 0x30], ecx
mov cl, byte [esp + 0xa4]
mov byte [esp + 0x13], cl
mov ecx, dword [esp + 0x98]
mov dword [esp + 0x18], eax
mov dword [esp + 0x34], eax
mov eax, dword [esp + 0xa0]
mov dword [esp + 0x28], ecx
mov ecx, dword [esp + 0x90]
mov dword [esp + 0x2c], ebx
mov dword [esp + 0x1c], eax
mov dword [esp + 0x40], eax
mov dword [esp + 0x3c], ecx
xor edx, edx
xor ecx, ecx
cmp ebx, edi
jge 0x6638b2
mov eax, dword [esp + 0x18]
mov esi, ebx
cmp eax, edi
cmovg ebx, edi
cmp eax, edi
mov dword [esp + 0x2c], ebx
cmovg eax, edi
jmp 0x6638db
mov ecx, dword [esp + 0x28]
jle 0x6638c8
cmp eax, ebx
mov esi, edi
cmovg edi, ebx
cmp dword [esp + 0x1c], ebx
cmovg eax, ebx
jmp 0x6638df
cmp dword [esp + 0x18], eax
mov edi, eax
mov esi, ebx
cmovle edi, dword [esp + 0x18]
mov dword [esp + 0x2c], edi
mov eax, edi
mov edx, dword [esp + 0x24]
mov ebx, dword [esp + 0x14]
mov ebx, dword [ebx + 0xc]
cmp esi, ebx
jge 0x663b00
cmp eax, ebx
cmovle ebx, eax
mov dword [esp + 0x38], ebx
test edx, edx
jne 0x663973
test ecx, ecx
jne 0x663973
mov ecx, dword [esp + 0x14]
sub ebx, dword [ecx + 4]
mov eax, dword [ecx + 8]
dec ebx
sub eax, dword [ecx]
mov esi, dword [ecx + 0x1c]
mov dword [esp + 0x48], eax
cmp ebx, dword [ecx + 0x20]
je 0x663934
push 1
mov dword [ecx + 0x20], ebx
call fcn.00662aa0
mov esi, eax
mov eax, dword [esp + 0x14]
mov dword [esi], ebx
mov dword [esi + 4], 0
mov dword [eax + 0x1c], esi
mov ebx, dword [esi + 4]
neg ebx
mov eax, dword [esi + 8]
mov dword [esp + 0x44], eax
je 0x663956
push ebx
xor edx, edx
mov ecx, eax
call fcn.00662d40
mov eax, dword [esp + 0x48]
add esp, 4
add dword [esi + 4], ebx
mov ebx, dword [esp + 0x48]
xor edx, edx
push ebx
mov ecx, eax
call fcn.00662d40
add esp, 4
add dword [esi + 4], ebx
mov ebx, dword [esp + 0x38]
jmp 0x663a25
mov eax, dword [esp + 0x14]
cmp esi, dword [eax + 4]
jl 0x663a25
mov eax, dword [esp + 0x4c]
test edx, edx
mov dword [esp + 0x64], edx
cmove eax, dword [esp + 0x14]
mov esi, dword [eax]
mov eax, dword [eax + 8]
mov dword [esp + 0x68], esi
mov dword [esp + 0x70], eax
je 0x6639b5
movzx eax, byte [edx]
add eax, esi
mov byte [esp + 0x74], 0
mov dword [esp + 0x6c], eax
mov al, byte [edx + 1]
mov byte [esp + 0x75], al
jmp 0x6639c4
mov word [esp + 0x74], 1
mov dword [esp + 0x6c], 0x7fffffff
mov eax, dword [ebp + 8]
test ecx, ecx
mov esi, dword [esp + 0x14]
cmove eax, esi
mov dword [esp + 0x50], ecx
mov edx, dword [eax]
mov eax, dword [eax + 8]
mov dword [esp + 0x54], edx
mov dword [esp + 0x5c], eax
je 0x6639fa
movzx eax, byte [ecx]
add eax, edx
mov byte [esp + 0x60], 0
mov dword [esp + 0x58], eax
mov al, byte [ecx + 1]
mov byte [esp + 0x61], al
jmp 0x663a09
mov word [esp + 0x60], 1
mov dword [esp + 0x58], 0x7fffffff
push esi
push dword [esp + 0x24]
lea eax, [esp + 0x58]
mov ecx, esi
push eax
lea eax, [esp + 0x70]
push eax
lea edx, [ebx - 1]
call fcn.00663570
add esp, 0x10
mov esi, dword [esp + 0x18]
cmp ebx, esi
jne 0x663a8b
cmp byte [esp + 0x12], 0
jne 0x663a7d
mov edx, dword [esp + 0x30]
lea ecx, [edx + 8]
cmp ecx, dword [esp + 0x7c]
jb 0x663a65
mov ebx, dword [esp + 0x34]
mov esi, 0x7fffffff
mov byte [esp + 0x12], 1
mov dword [esp + 0x24], 0
mov dword [esp + 0x18], esi
mov dword [esp + 0x2c], ebx
mov dword [esp + 0x34], esi
jmp 0x663a8f
mov eax, dword [ecx]
sub eax, dword [edx]
add esi, eax
mov dword [esp + 0x30], ecx
mov eax, dword [ecx + 4]
sub eax, dword [edx + 4]
add dword [esp + 0x24], eax
mov dword [esp + 0x18], esi
mov ebx, dword [esp + 0x34]
mov dword [esp + 0x2c], ebx
mov dword [esp + 0x34], esi
jmp 0x663a8f
mov ebx, dword [esp + 0x2c]
mov eax, dword [esp + 0x1c]
cmp dword [esp + 0x38], eax
jne 0x663aea
cmp byte [esp + 0x13], 0
jne 0x663ae2
mov edx, dword [esp + 0x3c]
lea ecx, [edx + 8]
cmp ecx, dword [esp + 0x94]
jb 0x663ac8
mov eax, 0x7fffffff
mov byte [esp + 0x13], 1
mov dword [esp + 0x1c], eax
mov dword [esp + 0x28], 0
jmp 0x663ae2
mov eax, dword [ecx]
sub eax, dword [edx]
add dword [esp + 0x1c], eax
mov eax, dword [ecx + 4]
sub eax, dword [edx + 4]
add dword [esp + 0x28], eax
mov eax, dword [esp + 0x1c]
mov dword [esp + 0x3c], ecx
mov edi, dword [esp + 0x40]
mov dword [esp + 0x40], eax
cmp byte [esp + 0x12], 0
je 0x663894
cmp byte [esp + 0x13], 0
je 0x663894
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret