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

Disassembly:
mov ecx, dword [0x63aa7440]
mov ecx, dword fs:[ecx]
mov ecx, dword [ecx]
cmp esp, dword [ecx + 8]
jbe 0x6388c2dc
sub esp, 0x5c
mov eax, dword [esp + 0x68]
cmp eax, 0xc
jl 0x6388c119
mov eax, dword [esp + 0x60]
mov ecx, dword [eax + 8]
mov edx, dword [eax + 0xc]
mov ecx, dword [ecx + 0x20]
mov dword [esp], edx
mov edx, dword [esp + 0x6c]
lea ebx, [edx - 2]
mov ebp, dword [esp + 0x64]
lea esi, [ebp + 2]
mov dword [esp + 4], esi
mov dword [esp + 8], 2
mov dword [esp + 0xc], ebx
call ecx
movzx eax, word [esp + 0x10]
movzx ecx, ax
lea edx, [ecx - 1]
cmp edx, 5
jae 0x6388c0e6
mov word [esp + 0x2e], ax
mov dword [esp + 0x40], ecx
mov eax, dword [esp + 0x60]
mov ecx, dword [eax + 8]
mov edx, dword [eax + 0xc]
mov ecx, dword [ecx + 0x24]
mov dword [esp], edx
mov edx, dword [esp + 0x6c]
lea ebx, [edx - 4]
mov ebp, dword [esp + 0x64]
lea esi, [ebp + 4]
mov dword [esp + 4], esi
mov dword [esp + 8], 4
mov dword [esp + 0xc], ebx
call ecx
mov eax, dword [esp + 0x40]
lea ecx, [0x638c6e40]
mov eax, dword [ecx + eax*4]
test eax, eax
je 0x6388c2d6
mov edx, dword [esp + 0x10]
mov dword [esp + 0x48], edx
mov ecx, eax
mov eax, 0x7fffffff
xor edx, edx
div ecx
mov edx, dword [esp + 0x48]
cmp edx, eax
ja 0x6388c0b3
imul ecx, edx
cmp ecx, 4
ja 0x6388bf48
lea ebx, [ecx + 8]
mov ebp, dword [esp + 0x6c]
cmp ebp, ebx
jb 0x6388c2cd
cmp ebx, 8
jb 0x6388c2c1
lea eax, [ebp - 8]
mov ebx, dword [esp + 0x64]
add ebx, 8
xor ebp, ebp
xor esi, esi
jmp 0x6388bfcf
mov dword [esp + 0x44], ecx
mov eax, dword [esp + 0x60]
mov ecx, dword [eax + 8]
mov edx, dword [eax + 0xc]
mov ecx, dword [ecx + 0x24]
mov dword [esp], edx
mov edx, dword [esp + 0x6c]
add edx, 0xfffffff8
mov ebx, dword [esp + 0x64]
add ebx, 8
mov dword [esp + 4], ebx
mov dword [esp + 8], 4
mov dword [esp + 0xc], edx
call ecx
mov eax, dword [esp + 0x60]
mov ecx, dword [eax]
mov edx, dword [eax + 4]
mov ebx, dword [esp + 0x10]
mov dword [esp], ecx
mov dword [esp + 4], edx
mov ecx, dword [esp + 0x44]
mov dword [esp + 8], ecx
mov dword [esp + 0xc], 0
mov dword [esp + 0x10], ebx
mov dword [esp + 0x14], 0
call fcn.6388ba50
mov ebx, dword [esp + 0x18]
mov eax, dword [esp + 0x24]
mov ecx, dword [esp + 0x1c]
mov edx, dword [esp + 0x20]
mov ebp, dword [esp + 0x28]
mov esi, ebp
mov ebp, eax
mov eax, edx
mov edx, dword [esp + 0x48]
test ebp, ebp
jne 0x6388c08c
mov dword [esp + 0x54], ebx
mov dword [esp + 0x30], ecx
mov dword [esp + 0x34], eax
lea eax, [0x6390c820]
mov dword [esp], eax
mov dword [esp + 4], edx
mov dword [esp + 8], edx
call fcn.63790510
mov eax, dword [esp + 0xc]
movzx ecx, word [esp + 0x2e]
cmp cx, 1
jne 0x6388c01b
mov ecx, dword [esp + 0x48]
mov edx, dword [esp + 0x54]
mov ebx, dword [esp + 0x30]
xor ebp, ebp
jmp 0x6388c298
mov dword [esp + 0x58], eax
cmp cx, 3
jne 0x6388c03c
mov edx, dword [esp + 0x34]
mov ebx, dword [esp + 0x48]
mov ebp, dword [esp + 0x60]
mov esi, dword [esp + 0x54]
xor ecx, ecx
jmp 0x6388c229
cmp cx, 4
jne 0x6388c059
mov edx, dword [esp + 0x34]
mov ebx, dword [esp + 0x48]
mov ebp, dword [esp + 0x60]
mov esi, dword [esp + 0x54]
xor ecx, ecx
jmp 0x6388c171
mov dword [esp + 0x70], 0
mov dword [esp + 0x74], 0
mov dword [esp + 0x78], 0
lea eax, [0x6397c530]
mov dword [esp + 0x7c], eax
lea eax, [0x6397bc70]
mov dword [esp + 0x80], eax
add esp, 0x5c
ret
mov dword [esp + 0x70], 0
mov dword [esp + 0x74], 0
mov dword [esp + 0x78], 0
mov dword [esp + 0x7c], ebp
mov dword [esp + 0x80], esi
add esp, 0x5c
ret
mov dword [esp + 0x70], 0
mov dword [esp + 0x74], 0
mov dword [esp + 0x78], 0
lea eax, [0x6397c4f4]
mov dword [esp + 0x7c], eax
lea eax, [0x6397bc68]
mov dword [esp + 0x80], eax
add esp, 0x5c
ret
mov dword [esp + 0x70], 0
mov dword [esp + 0x74], 0
mov dword [esp + 0x78], 0
lea eax, [0x6397c530]
mov dword [esp + 0x7c], eax
lea eax, [0x6397bc60]
mov dword [esp + 0x80], eax
add esp, 0x5c
ret
mov dword [esp + 0x70], 0
mov dword [esp + 0x74], 0
mov dword [esp + 0x78], 0
lea eax, [0x6397c4f4]
mov dword [esp + 0x7c], eax
lea eax, [0x6397bc58]
mov dword [esp + 0x80], eax
add esp, 0x5c
ret
mov edi, dword [esp + 0x10]
mov edx, dword [esp + 0x58]
mov dword [edx + eax*4], edi
mov edi, dword [esp + 0x34]
mov ebp, dword [esp + 0x60]
mov esi, dword [esp + 0x54]
mov eax, dword [esp + 0x50]
mov eax, edx
mov edx, edi
mov ebx, ecx
mov ecx, dword [esp + 0x50]
cmp ecx, ebx
jae 0x6388c1cb
lea edi, [ecx + 1]
mov dword [esp + 0x50], edi
shl edi, 2
cmp edx, edi
jb 0x6388c1fc
mov dword [esp + 0x38], ecx
shl ecx, 2
cmp edi, ecx
jb 0x6388c1f3
mov eax, dword [ebp + 8]
mov ebx, dword [ebp + 0xc]
mov eax, dword [eax + 0x24]
mov dword [esp], ebx
sub edx, ecx
mov dword [esp + 0x4c], edx
sub edi, ecx
neg edx
sar edx, 0x1f
and ecx, edx
add ecx, esi
mov dword [esp + 4], ecx
mov dword [esp + 8], edi
mov ecx, dword [esp + 0x4c]
mov dword [esp + 0xc], ecx
call eax
mov eax, dword [esp + 0x38]
mov ecx, dword [esp + 0x48]
cmp eax, ecx
jb 0x6388c14c
jmp 0x6388c1ee
mov dword [esp + 0x70], eax
mov dword [esp + 0x74], ebx
mov dword [esp + 0x78], ebx
mov dword [esp + 0x7c], 0
mov dword [esp + 0x80], 0
add esp, 0x5c
ret
call fcn.637ac150
mov eax, ecx
mov ecx, edi
call fcn.637ac1b0
mov ecx, edi
call fcn.637ac190
movzx edi, word [esp + 0x10]
mov edx, dword [esp + 0x58]
mov dword [edx + eax*4], edi
mov edi, dword [esp + 0x34]
mov ebp, dword [esp + 0x60]
mov esi, dword [esp + 0x54]
mov eax, dword [esp + 0x50]
mov eax, edx
mov edx, edi
mov ebx, ecx
mov ecx, dword [esp + 0x50]
cmp ecx, ebx
jae 0x6388c1cb
lea edi, [ecx + 1]
mov dword [esp + 0x50], edi
shl edi, 1
cmp edx, edi
jb 0x6388c28d
mov dword [esp + 0x3c], ecx
shl ecx, 1
cmp edi, ecx
jb 0x6388c284
mov eax, dword [ebp + 8]
mov ebx, dword [ebp + 0xc]
mov eax, dword [eax + 0x20]
mov dword [esp], ebx
sub edx, ecx
mov dword [esp + 0x4c], edx
sub edi, ecx
neg edx
sar edx, 0x1f
and ecx, edx
add ecx, esi
mov dword [esp + 4], ecx
mov dword [esp + 8], edi
mov ecx, dword [esp + 0x4c]
mov dword [esp + 0xc], ecx
call eax
mov eax, dword [esp + 0x3c]
mov ecx, dword [esp + 0x48]
cmp eax, ecx
jb 0x6388c203
call fcn.637ac150
mov eax, ecx
mov ecx, edi
call fcn.637ac1b0
mov ecx, edi
call fcn.637ac190
mov dword [eax + ebp*4], esi
inc ebp
cmp ebp, ecx
jae 0x6388c2aa
cmp ebx, ebp
jbe 0x6388c2b8
movzx esi, byte [edx + ebp]
cmp ebp, ecx
jb 0x6388c294
jmp 0x6388c2b1
mov ebx, ecx
jmp 0x6388c1cb
mov eax, ebp
call fcn.637ac150
mov eax, ebp
mov ecx, ebx
call fcn.637ac150
mov eax, 8
mov ecx, ebx
call fcn.637ac1a0
mov ecx, ebx
mov edx, ebp
call fcn.637ac190
call fcn.63778ba0
nop
call fcn.637aaca0
jmp fcn.6388be40