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

Disassembly:
sub esp, 0x6c
mov eax, dword [esp + 0x70]
mov edx, dword [esp + 0x80]
push ebx
mov ebx, dword [esp + 0x88]
mov ecx, dword [ebx + 0x1c]
push ebp
mov bp, word [ecx + eax*2]
mov ecx, dword [ebx + 0x20]
push esi
push edi
xor esi, esi
mov si, word [ecx + eax*2]
lea eax, [esp + 0x5c]
push eax
mov eax, dword [esp + 0x90]
lea ecx, [esp + 0x58]
push ecx
mov ecx, dword [esp + 0x8c]
sub si, bp
push edx
push eax
xor edi, edi
push ecx
mov dword [esp + 0x24], edi
inc esi
call fcn.00637780
mov dword [esp + 0x40], edi
mov edi, dword [esp + 0x9c]
sub edi, ebp
movsx eax, di
mov dword [esp + 0x9c], eax
movsx ecx, si
lea eax, [ecx + eax - 1]
cdq
idiv ecx
movsx ecx, bp
mov dword [esp + 0x3c], ecx
add esp, 0x14
movsx eax, dx
mov edx, dword [ebx + 0x10]
add eax, ecx
shl eax, 2
mov ebp, dword [edx + eax]
mov dword [esp + 0x64], ebp
mov ebp, dword [esp + 0x88]
add ecx, ebp
shl ecx, 2
mov ebp, dword [ecx + edx]
mov edx, dword [ebx + 0x14]
mov eax, dword [edx + eax]
mov ecx, dword [edx + ecx]
mov dword [esp + 0x68], eax
mov eax, dword [esp + 0x64]
mov edx, ebp
sub edx, eax
mov eax, ecx
mov dword [esp + 0x70], ecx
sub eax, dword [esp + 0x68]
test si, si
mov ecx, edx
mov dword [esp + 0x48], eax
mov dword [esp + 0x88], 0
jle 0x63854e
jmp 0x638490
mov eax, dword [esp + 0x10]
test ax, ax
jne 0x638537
movsx eax, di
inc eax
cdq
movsx edi, si
idiv edi
mov edi, dword [ebx + 0x14]
mov eax, edx
mov edx, dword [esp + 0x28]
mov dword [esp + 0x20], eax
add eax, edx
mov edx, dword [ebx + 0x10]
shl eax, 2
mov edx, dword [eax + edx]
cmp ebp, edx
mov edi, dword [eax + edi]
mov dword [esp + 0x78], edi
jne 0x6384d0
cmp dword [esp + 0x70], edi
je 0x638519
mov eax, edx
sub eax, ebp
sub edi, dword [esp + 0x70]
mov ebp, dword [esp + 0x48]
imul ecx, edi
imul ebp, eax
sub ecx, ebp
mov dword [esp + 0x24], ebp
mov dword [esp + 0x4c], eax
mov dword [esp + 0x50], edi
mov ebp, ecx
jns 0x6384fe
mov dword [esp + 0x10], 0xffffffff
jmp 0x638509
xor ecx, ecx
test ebp, ebp
setg cl
mov dword [esp + 0x10], ecx
mov ebp, edx
mov edx, dword [esp + 0x78]
mov dword [esp + 0x70], edx
mov ecx, eax
mov dword [esp + 0x48], edi
mov eax, dword [esp + 0x88]
mov edi, dword [esp + 0x20]
inc eax
cmp ax, si
mov dword [esp + 0x88], eax
jl 0x638490
jmp 0x63854e
cmp word [esp + 0x88], si
jge 0x63854e
test ax, ax
jle 0x63854e
mov dword [esp + 0x2c], 2
mov cx, word [ebx + 0x28]
xor eax, eax
cmp cx, ax
mov dword [esp + 0x88], eax
jle 0x638834
mov esi, dword [ebx + 0x1c]
mov dword [esp + 0x18], eax
mov eax, dword [ebx + 0x20]
mov edx, eax
sub esi, eax
movzx eax, cx
mov dword [esp + 0x24], edx
mov dword [esp + 0x38], esi
mov dword [esp + 0x28], eax
mov ecx, dword [esp + 0x18]
cmp ecx, dword [esp + 0x80]
je 0x638815
mov ecx, dword [ebx + 0x14]
mov ebp, dword [ebx + 0x10]
mov ebx, dword [ebx + 0x18]
xor eax, eax
mov ax, word [esi + edx]
movsx edx, word [edx]
mov dword [esp + 0x1c], ecx
mov dword [esp + 0x34], edx
mov dword [esp + 0x30], ebp
mov dword [esp + 0x14], eax
movsx eax, ax
mov edi, dword [ecx + eax*4]
movzx ecx, byte [ebx + eax]
mov esi, dword [ebp + eax*4]
shl esi, 1
shl edi, 1
test ecx, ecx
mov dword [esp + 0x20], ebx
jne 0x638608
mov ebx, dword [esp + 0x1c]
movsx eax, dx
mov ebx, dword [ebx + eax*4]
mov edx, dword [ebp + eax*4]
shl ebx, 1
mov dword [esp + 0x68], ebx
mov ebx, dword [esp + 0x20]
movzx eax, byte [eax + ebx]
shl edx, 1
test eax, eax
mov dword [esp + 0x64], edx
jne 0x638608
mov eax, dword [esp + 0x68]
add edx, esi
add eax, edi
sar edx, 1
sar eax, 1
mov dword [esp + 0x64], edx
mov dword [esp + 0x68], eax
mov eax, dword [esp + 0x14]
mov dword [esp + 0x10], eax
jmp 0x638616
mov ebp, dword [esp + 0x30]
cmp ax, word [esp + 0x34]
jne 0x638624
movsx eax, word [esp + 0x14]
jmp 0x638625
inc eax
mov edx, dword [esp + 0x1c]
mov dword [esp + 0x10], eax
movsx eax, ax
mov ebx, dword [ebp + eax*4]
mov ebp, dword [edx + eax*4]
mov edx, dword [esp + 0x20]
movzx edx, byte [edx + eax]
lea eax, [ecx + ecx]
or eax, edx
shl ebx, 1
shl ebp, 1
cmp eax, 3
mov dword [esp + 0x4c], edx
ja case.default.0x638655
jmp dword [eax*4 + 0x638858]
cmp esi, ebx
jne 0x638668
cmp edi, ebp
je case.default.0x638655
mov eax, dword [esp + 0x84]
mov ecx, dword [esp + 0x58]
mov edx, dword [esp + 0x54]
push eax
push ebp
push ebx
push edi
push esi
push ecx
push edx
call fcn.00638300
add esp, 0x1c
test eax, eax
je case.default.0x638655
mov eax, dword [esp + 0x60]
mov ecx, dword [esp + 0x5c]
mov edx, dword [esp + 0x58]
push ebp
push ebx
push edi
push esi
push eax
mov eax, dword [esp + 0x68]
push ecx
push edx
push eax
call fcn.00636e80
mov ecx, dword [esp + 0xa8]
add esp, 0x20
add ecx, eax
mov dword [esp + 0x88], ecx
jmp case.default.0x638655
mov dword [esp + 0x64], esi
mov dword [esp + 0x68], edi
jmp case.default.0x638655
mov eax, dword [esp + 0x64]
cmp eax, ebx
jne 0x6386e2
cmp dword [esp + 0x68], ebp
je case.default.0x638655
mov ecx, dword [esp + 0x84]
mov edx, dword [esp + 0x68]
push ecx
mov ecx, dword [esp + 0x58]
push ebp
push ebx
push edi
push esi
push edx
push eax
mov eax, dword [esp + 0x74]
push eax
push ecx
call fcn.00638220
add esp, 0x24
test eax, eax
je case.default.0x638655
mov edx, dword [esp + 0x68]
mov eax, dword [esp + 0x64]
mov ecx, dword [esp + 0x60]
push ebp
push ebx
push edi
push esi
push edx
mov edx, dword [esp + 0x70]
push eax
mov eax, dword [esp + 0x70]
push ecx
mov ecx, dword [esp + 0x70]
push edx
push eax
push ecx
call fcn.006370d0
mov ecx, dword [esp + 0xb0]
add esp, 0x28
add ecx, eax
mov dword [esp + 0x88], ecx
jmp case.default.0x638655
mov edx, dword [esp + 0x64]
lea eax, [ebx + esi]
lea ecx, [edi + ebp]
sar eax, 1
sar ecx, 1
cmp edx, eax
mov dword [esp + 0x3c], eax
mov dword [esp + 0x40], ecx
jne 0x63876d
cmp dword [esp + 0x68], ecx
je 0x6387e3
mov edx, dword [esp + 0x84]
mov ecx, dword [esp + 0x40]
push edx
mov edx, dword [esp + 0x6c]
push ecx
mov ecx, dword [esp + 0x60]
push eax
mov eax, dword [esp + 0x70]
push edi
push esi
push edx
mov edx, dword [esp + 0x6c]
push eax
push ecx
push edx
call fcn.00638220
add esp, 0x24
test eax, eax
je 0x6387df
mov eax, dword [esp + 0x40]
mov ecx, dword [esp + 0x3c]
mov edx, dword [esp + 0x68]
push eax
mov eax, dword [esp + 0x68]
push ecx
mov ecx, dword [esp + 0x68]
push edi
push esi
push edx
mov edx, dword [esp + 0x70]
push eax
mov eax, dword [esp + 0x70]
push ecx
mov ecx, dword [esp + 0x70]
push edx
push eax
push ecx
call fcn.006370d0
mov ecx, dword [esp + 0xb0]
add esp, 0x28
add ecx, eax
mov dword [esp + 0x88], ecx
mov eax, dword [esp + 0x3c]
mov edx, dword [esp + 0x40]
mov dword [esp + 0x64], eax
mov dword [esp + 0x68], edx
mov eax, dword [esp + 0x10]
cmp ax, word [esp + 0x14]
mov ecx, dword [esp + 0x4c]
mov esi, ebx
mov edi, ebp
jne 0x638612
mov ebx, dword [esp + 0x94]
mov edx, dword [esp + 0x24]
mov esi, dword [esp + 0x38]
mov edi, dword [esp + 0x18]
mov eax, dword [esp + 0x28]
inc edi
add edx, 2
dec eax
mov dword [esp + 0x18], edi
mov dword [esp + 0x24], edx
mov dword [esp + 0x28], eax
jne 0x638581
mov eax, dword [esp + 0x88]
mov esi, dword [esp + 0x2c]
add eax, eax
not eax
and eax, 2
sub eax, esi
pop edi
neg eax
pop esi
sbb eax, eax
pop ebp
inc eax
pop ebx
add esp, 0x6c
ret