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

Disassembly:
sub esp, 0x84
mov eax, dword [esp + 0x8c]
mov edx, ecx
mov ecx, dword [eax + 8]
mov dword [esp + 0xc], ecx
mov ecx, dword [eax + 0xc]
mov dword [esp + 0x10], ecx
mov ecx, dword [eax + 0x14]
push ebx
mov ebx, dword [eax]
push ebp
mov ebp, dword [eax + 4]
mov dword [esp + 0x20], ecx
mov ecx, dword [eax + 0x10]
add eax, 0x1c
push esi
mov esi, eax
mov eax, dword [esp + 0x18]
test eax, eax
push edi
mov dword [esp + 0x2c], ecx
mov ecx, 0xf
lea edi, [esp + 0x30]
mov dword [esp + 0x24], edx
mov dword [esp + 0x14], ebx
mov dword [esp + 0x18], ebp
rep movsd dword es:[edi], dword [esi]
jge 0x633e84
add ebx, eax
neg eax
mov dword [esp + 0x14], ebx
mov dword [esp + 0x1c], eax
mov eax, dword [esp + 0x20]
test eax, eax
jge 0x633e98
add ebp, eax
neg eax
mov dword [esp + 0x18], ebp
mov dword [esp + 0x20], eax
mov eax, dword [esp + 0x98]
test eax, eax
jne 0x633eb5
mov eax, dword [edx + 0x14]
mov ecx, dword [edx + 0x10]
mov esi, dword [edx + 0x18]
mov edi, dword [edx + 0x1c]
mov dword [esp + 0x78], eax
jmp 0x633edb
mov esi, dword [eax + 0x18]
sub ebx, dword [eax + 0xc]
mov ecx, dword [eax + 0x14]
sub ebp, dword [eax + 0x10]
mov edi, dword [eax + 0x20]
mov dword [esp + 0x78], esi
mov esi, dword [eax + 0x1c]
mov eax, dword [esp + 0x78]
add ebx, ecx
add ebp, eax
mov dword [esp + 0x14], ebx
mov dword [esp + 0x18], ebp
mov dword [esp + 0x80], edi
mov edi, dword [esp + 0x1c]
mov dword [esp + 0x8c], edi
mov edi, dword [esp + 0x20]
mov dword [esp + 0x90], edi
lea edi, [esi + ecx]
cmp ebx, edi
mov dword [esp + 0x7c], esi
mov dword [esp + 0x74], ecx
mov dword [esp + 0x84], ebx
mov dword [esp + 0x88], ebp
jge 0x634441
mov esi, dword [esp + 0x1c]
add esi, ebx
cmp esi, ecx
jle 0x634441
mov esi, dword [esp + 0x80]
add esi, eax
cmp ebp, esi
mov dword [esp + 0x10], esi
jge 0x634441
mov esi, dword [esp + 0x20]
add esi, ebp
cmp esi, eax
jle 0x634441
cmp ebx, ecx
mov dword [esp + 0x70], 0
mov dword [esp + 0x6c], 0
jl 0x633f78
mov ecx, dword [esp + 0x1c]
add ecx, ebx
cmp ecx, edi
jg 0x633f78
cmp ebp, eax
jl 0x633f78
mov eax, dword [esp + 0x20]
add eax, ebp
cmp eax, dword [esp + 0x10]
jle 0x633f97
lea ecx, [esp + 0x6c]
push ecx
lea edx, [esp + 0x18]
push edx
lea ecx, [esp + 0x7c]
call fcn.00408012
mov ebp, dword [esp + 0x18]
mov ebx, dword [esp + 0x14]
mov edx, dword [esp + 0x24]
mov eax, 1
cmp dword [esp + 0x28], eax
je 0x6341c6
cmp dword [esp + 0x6c], eax
mov esi, dword [esp + 0x54]
mov edi, dword [esp + 0x48]
mov eax, dword [esp + 0x3c]
mov ecx, dword [esp + 0x30]
jne 0x634014
mov ebx, dword [esp + 0x34]
shl ebx, 0x10
movzx edx, cx
add edx, ebx
mov dword [esp + 0x34], edx
mov edx, dword [esp + 0x40]
shl edx, 0x10
movzx ebx, ax
add ebx, edx
mov edx, dword [esp + 0x4c]
movzx edi, di
shl edx, 0x10
add edx, edi
mov edi, dword [esp + 0x58]
movzx esi, si
shl edi, 0x10
add edi, esi
mov esi, dword [esp + 0x64]
mov dword [esp + 0x58], edi
movzx edi, word [esp + 0x60]
shl esi, 0x10
add esi, edi
mov edi, dword [esp + 0x48]
mov dword [esp + 0x40], ebx
mov dword [esp + 0x4c], edx
mov dword [esp + 0x64], esi
jmp 0x634041
cmp dword [esp + 0x6c], 2
jl 0x634039
mov dword [esp + 0x58], esi
mov esi, dword [esp + 0x60]
mov ebx, eax
mov edx, edi
mov dword [esp + 0x34], ecx
mov dword [esp + 0x40], ebx
mov dword [esp + 0x4c], edx
mov dword [esp + 0x64], esi
jmp 0x634041
mov edx, dword [esp + 0x4c]
mov ebx, dword [esp + 0x40]
cmp dword [esp + 0x70], 1
mov esi, dword [esp + 0x50]
jne 0x63406e
mov ecx, eax
mov eax, edi
mov edi, dword [esp + 0x44]
mov dword [esp + 0x30], ecx
mov dword [esp + 0x3c], eax
mov dword [esp + 0x34], ebx
mov dword [esp + 0x40], edx
mov dword [esp + 0x38], edi
mov dword [esp + 0x44], esi
jmp 0x634097
cmp dword [esp + 0x70], 2
jl 0x634093
mov eax, edi
mov ecx, edi
mov dword [esp + 0x3c], eax
mov dword [esp + 0x30], ecx
mov dword [esp + 0x40], edx
mov dword [esp + 0x34], edx
mov dword [esp + 0x44], esi
mov dword [esp + 0x38], esi
jmp 0x634097
mov esi, dword [esp + 0x44]
mov ebx, dword [esp + 0x84]
mov edi, dword [esp + 0x8c]
add edi, ebx
mov ebx, dword [esp + 0x14]
mov dword [esp + 0x10], edi
mov edi, dword [esp + 0x1c]
lea ebx, [edi + ebx + 1]
mov edi, dword [esp + 0x10]
cmp edi, ebx
jne 0x634128
mov edi, dword [esp + 0x38]
mov ebx, dword [esp + 0x68]
and eax, 0xffff0000
shr esi, 0x10
add esi, eax
shr edi, 0x10
and ecx, 0xffff0000
add edi, ecx
mov ecx, dword [esp + 0x50]
mov dword [esp + 0x44], esi
mov esi, dword [esp + 0x48]
mov eax, esi
and eax, 0xffff0000
mov dword [esp + 0x38], edi
mov edi, dword [esp + 0x54]
shr ecx, 0x10
add ecx, eax
mov eax, dword [esp + 0x5c]
and edi, 0xffff0000
shr eax, 0x10
add eax, edi
mov edi, dword [esp + 0x60]
shr ebx, 0x10
and edi, 0xffff0000
add ebx, edi
mov dword [esp + 0x50], ecx
mov dword [esp + 0x5c], eax
mov dword [esp + 0x68], ebx
jmp 0x634164
mov esi, dword [esp + 0x14]
mov ebx, dword [esp + 0x1c]
lea esi, [ebx + esi + 2]
cmp edi, esi
mov esi, dword [esp + 0x48]
jl 0x63415c
mov edi, dword [esp + 0x60]
mov dword [esp + 0x38], ecx
mov dword [esp + 0x44], eax
mov eax, dword [esp + 0x54]
mov ecx, esi
mov dword [esp + 0x50], ecx
mov dword [esp + 0x5c], eax
mov dword [esp + 0x68], edi
jmp 0x634164
mov eax, dword [esp + 0x5c]
mov ecx, dword [esp + 0x50]
mov ebx, dword [esp + 0x88]
mov edi, dword [esp + 0x90]
add edi, ebx
mov ebx, dword [esp + 0x20]
lea ebx, [ebx + ebp + 1]
cmp edi, ebx
jne 0x63419a
mov edi, dword [esp + 0x54]
mov dword [esp + 0x54], esi
mov esi, dword [esp + 0x58]
mov dword [esp + 0x60], edi
mov dword [esp + 0x64], esi
mov dword [esp + 0x68], eax
jmp 0x6341b6
mov eax, dword [esp + 0x20]
lea eax, [eax + ebp + 2]
cmp edi, eax
jl 0x6341be
mov dword [esp + 0x54], esi
mov dword [esp + 0x60], esi
mov dword [esp + 0x64], edx
mov dword [esp + 0x68], ecx
mov dword [esp + 0x5c], ecx
mov dword [esp + 0x58], edx
mov ebx, dword [esp + 0x14]
mov edx, dword [esp + 0x24]
mov ecx, dword [esp + 0x1c]
cmp ecx, 5
mov eax, dword [esp + 0x20]
mov dword [esp + 0x10], eax
jl 0x634266
cmp eax, 5
jl 0x634266
mov eax, dword [edx]
mov ecx, edx
mov edx, dword [eax + 0x24]
call edx
mov ecx, dword [esp + 0x24]
mov edx, dword [ecx]
mov esi, eax
mov eax, dword [0x7b72e4]
mov edi, dword [eax + 0x24]
mov eax, dword [edx + 0x1c]
call eax
imul ebp, esi
xor ecx, ecx
add ebp, ebx
cmp dword [esp + 0x28], 1
lea ebp, [eax + ebp*2]
mov eax, dword [esp + 0x1c]
sete cl
sub esi, eax
imul esi, edi
mov dword [0x7d2b50], ecx
mov ecx, dword [esp + 0x20]
add ecx, 0xfffffffc
shl ecx, 0x10
add ecx, eax
test byte [esp + 0x2c], 1
lea edx, [esp + 0x30]
mov dword [0x7d2b70], edx
mov dword [0x7d2b78], ebp
mov dword [0x7d2b98], esi
mov dword [0x7d2b7c], ecx
je 0x63425c
call fcn.00649c1c
jmp 0x634436
call fcn.00649b60
jmp 0x634436
test ecx, ecx
jle 0x634441
test eax, eax
jle 0x634441
mov eax, dword [edx]
mov ecx, edx
mov edx, dword [eax + 0x24]
call edx
mov ecx, dword [esp + 0x24]
mov esi, eax
mov eax, dword [ecx]
mov edx, dword [eax + 0x1c]
call edx
imul ebp, esi
add ebp, ebx
test byte [esp + 0x2c], 1
lea edi, [eax + ebp*2]
je 0x63430b
mov eax, dword [esp + 0x1c]
mov edx, dword [esp + 0x54]
mov ebp, eax
shr edx, 1
sar eax, 1
and ebp, 1
and edx, 0x7bef7bef
mov ebx, eax
add esi, esi
sub dword [esp + 0x10], 1
mov eax, edi
add edi, esi
test ebx, ebx
mov ecx, ebx
mov dword [esp + 0x2c], edi
je 0x6342ec
lea esp, [esp]
mov edi, dword [eax]
shr edi, 1
and edi, 0x7bef7bef
add edi, edx
sub ecx, 1
mov dword [eax], edi
add eax, 4
test ecx, ecx
jne 0x6342d0
mov edi, dword [esp + 0x2c]
test ebp, ebp
je 0x6342ff
mov ecx, dword [eax]
shr ecx, 1
and ecx, 0x7bef
add ecx, edx
mov word [eax], cx
cmp dword [esp + 0x10], 0
jne 0x6342b6
jmp 0x634436
mov eax, dword [esp + 0x20]
add eax, 0xffffffff
cmp eax, 4
jbe 0x63431c
mov eax, 4
mov ebp, dword [esp + 0x1c]
lea eax, [eax + eax*4]
lea edx, [esi + esi]
lea ecx, [eax*4 + 0x772eb8]
xor ebx, ebx
mov dword [esp + 0x2c], edx
mov dword [esp + 0x28], ecx
jmp 0x634340
mov ecx, 1
sub dword [esp + 0x10], ecx
mov eax, edi
add edi, dword [esp + 0x2c]
cmp ebx, 2
jl 0x63435a
cmp dword [esp + 0x10], ecx
jge 0x634361
add ebx, ecx
add dword [esp + 0x28], 4
mov edx, dword [esp + 0x28]
mov ecx, dword [edx]
lea edx, [ebp - 1]
cmp edx, 3
ja case.default.0x63436f
jmp dword [edx*4 + 0x634450]
lea ecx, [ecx + ecx*2]
add ecx, ecx
add ecx, ecx
mov edx, dword [esp + ecx + 0x34]
mov dword [eax], edx
mov ecx, dword [esp + ecx + 0x38]
mov dword [eax + 4], ecx
jmp 0x63442b
lea ecx, [ecx + ecx*2]
add ecx, ecx
add ecx, ecx
movzx edx, word [esp + ecx + 0x34]
mov word [eax], dx
movzx edx, word [esp + ecx + 0x30]
mov word [eax + 2], dx
mov cx, word [esp + ecx + 0x3a]
mov word [eax + 4], cx
jmp 0x63442b
lea ecx, [ecx + ecx*2]
add ecx, ecx
add ecx, ecx
mov edx, dword [esp + ecx + 0x38]
mov ecx, dword [esp + ecx + 0x34]
xor ecx, edx
and ecx, 0xffff
xor ecx, edx
jmp 0x634429
lea edx, [ecx + ecx*2]
mov cx, word [esp + edx*4 + 0x30]
mov word [eax], cx
jmp 0x63442b
lea esi, [ecx + ecx*2]
add esi, esi
add esi, esi
mov ecx, dword [esp + esi + 0x34]
lea edx, [ebp - 6]
mov dword [eax], ecx
add eax, 4
test edx, edx
jle 0x634415
lea ecx, [edx - 1]
shr ecx, 1
add ecx, 1
mov ebp, ecx
neg ebp
lea edx, [edx + ebp*2]
mov ebp, dword [esp + esi + 0x30]
mov dword [eax], ebp
add eax, 4
sub ecx, 1
jne 0x634403
mov ebp, dword [esp + 0x1c]
test dl, 1
je 0x634425
mov dx, word [esp + esi + 0x30]
mov word [eax], dx
add eax, 2
mov ecx, dword [esp + esi + 0x38]
mov dword [eax], ecx
cmp dword [esp + 0x10], 0
jne 0x634340
mov ecx, dword [esp + 0x24]
mov edx, dword [ecx]
mov eax, dword [edx + 0x20]
call eax
pop edi
pop esi
pop ebp
pop ebx
add esp, 0x84
ret 8