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

Disassembly:
sub esp, 0x70
mov eax, dword [0x9c48d0]
xor eax, esp
mov dword [esp + 0x6c], eax
cmp byte [esp + 0x88], 0
push ebx
mov ebx, dword [esp + 0x7c]
push ebp
mov ebp, dword [esp + 0x7c]
mov eax, dword [ebp]
push esi
mov esi, dword [esp + 0x88]
push edi
mov edi, dword [esp + 0x90]
mov dword [esp + 0x1c], ebp
mov dword [esp + 0x34], edi
mov dword [esp + 0x20], eax
jne 0x636618
mov ecx, dword [ebp + 4]
cmp byte [ecx + 0xc], 0
jne 0x636618
mov edx, dword [edi]
xor eax, eax
push 1
mov dword [esp + 0x64], eax
mov dword [esp + 0x68], eax
mov dword [esp + 0x6c], eax
mov dword [esp + 0x70], eax
mov dword [esp + 0x74], eax
mov dword [esp + 0x78], eax
mov dword [esp + 0x7c], eax
mov eax, dword [esp + 0x98]
push eax
mov dword [esp + 0x68], edx
lea edx, [esp + 0x68]
push edx
push esi
push ebx
push ecx
call fcn.00636590
add esp, 0x18
cmp byte [edi + 4], 0
jne 0x636635
mov esi, dword [esi + 0x14]
add esi, dword [ebx + 0x14]
mov eax, edi
call fcn.00635270
cmp byte [edi + 4], 0
je 0x636bb9
mov edx, dword [esp + 0x20]
xor eax, eax
mov dword [ebp + 0x14], eax
mov dword [ebp + 0x18], eax
mov esi, edi
mov ecx, 7
lea edi, [esp + 0x60]
rep movsd dword es:[edi], dword [esi]
cmp byte [edx + 0xcd], 0
mov ecx, dword [ebx + 0x14]
lea eax, [esp + 0x70]
mov dword [esp + 0x18], eax
mov dword [esp + 0x2c], ecx
je 0x6366a3
xor eax, eax
mov dword [esp + 0x4c], eax
mov dword [esp + 0x50], eax
mov dword [esp + 0x54], eax
mov dword [esp + 0x58], eax
mov dword [esp + 0x5c], eax
lea eax, [esp + 0x4c]
mov edi, edx
push eax
lea eax, [edi + 0xf4]
mov esi, ebp
call fcn.006345b0
add edi, 0xe0
push edi
lea eax, [esp + 0x54]
call fcn.006345b0
add esp, 8
xor edi, edi
mov byte [esp + 0x13], 0x80
cmp dword [esp + 0x2c], edi
jbe 0x636862
mov ecx, dword [esp + 0x18]
mov dl, byte [esp + 0x13]
test byte [ecx], dl
je 0x63683e
mov ebp, dword [esp + 0x1c]
mov eax, dword [ebp + 0x10]
mov ecx, dword [esp + 0x94]
mov edx, dword [esp + 0x20]
push eax
push ecx
push edx
push edi
mov al, 1
mov ecx, ebx
lea esi, [esp + 0x5c]
call fcn.00636140
mov eax, dword [ebp + 0x10]
mov dword [esp + 0x34], eax
xor eax, eax
add esp, 0x10
mov dword [esp + 0x38], eax
mov dword [esp + 0x3c], eax
mov edx, eax
mov dword [esp + 0x44], eax
mov dword [esp + 0x48], eax
mov ecx, edi
cmp edi, dword [ebx + 0x14]
jb 0x63671f
mov eax, dword [ebx + 4]
test eax, eax
je 0x63671d
cmp dword [eax], edx
jne 0x63671d
mov dword [eax], 0x82
xor ecx, ecx
mov eax, dword [ebx + 8]
imul eax, ecx
add eax, dword [ebx + 0x1c]
mov ebp, dword [eax + 8]
mov esi, dword [eax + 4]
mov ecx, ebp
sub ecx, esi
cmp ecx, 0xffeb0000
jne 0x63673e
xor esi, esi
jmp 0x63675a
mov edx, esi
cmp ecx, 0xffec0000
jne 0x63674f
mov esi, 2
jmp 0x63675a
test ecx, ecx
js 0x636755
mov edx, ebp
mov esi, 8
mov ecx, esi
and ecx, 0xa
mov dword [esp + 0x38], esi
je 0x636772
mov ebp, dword [esp + 0x20]
mov ebp, dword [ebp + 0xbc]
lea edx, [edx + ebp*2]
add edx, dword [esp + 0x94]
mov ebp, dword [esp + 0x24]
mov dword [esp + 0x40], edx
mov dword [esp + 0x48], ebp
mov dword [esp + 0x3c], edi
test esi, esi
je 0x6367b6
cmp byte [eax], 0
je 0x6367b6
test ecx, ecx
je 0x6367a6
mov ecx, dword [eax + 0x10]
or esi, 0x10
mov dword [esp + 0x44], ecx
mov dword [esp + 0x38], esi
jmp 0x6367e8
mov edx, dword [eax + 0xc]
or esi, 0x10
mov dword [esp + 0x44], edx
mov dword [esp + 0x38], esi
jmp 0x6367e8
mov dword [esp + 0x28], edx
mov eax, dword [esp + 0x28]
mov edx, dword [esp + 0x24]
imul edx
mov ecx, edx
sar ecx, 0x1f
add ecx, 0x8000
add eax, ecx
adc edx, 0
shr eax, 0x10
shl edx, 0x10
add eax, edx
mov dword [esp + 0x14], eax
mov eax, dword [esp + 0x14]
mov dword [esp + 0x44], eax
mov ecx, dword [esp + 0x4c]
shr ecx, 4
test cl, 1
jne 0x63681d
mov edx, esi
shr edx, 4
test dl, 1
jne 0x63681d
lea eax, [esp + 0x38]
push eax
mov eax, dword [esp + 0x24]
lea ecx, [esp + 0x50]
push ecx
add eax, 0xc4
call fcn.00635d50
add esp, 8
test al, al
je 0x63683e
mov esi, dword [esp + 0x1c]
lea edx, [esp + 0x38]
push edx
lea eax, [esp + 0x50]
call fcn.006345b0
mov cl, byte [esp + 0x17]
mov eax, dword [esp + 0x1c]
not cl
add esp, 4
and byte [eax], cl
mov edx, edi
and edx, 7
cmp dl, 7
jne 0x636853
inc dword [esp + 0x18]
mov byte [esp + 0x13], 0x80
jmp 0x636857
shr byte [esp + 0x13], 1
inc edi
cmp edi, dword [esp + 0x2c]
jb 0x6366b4
cmp byte [esp + 0x98], 0
je 0x6368da
mov esi, dword [esp + 0x1c]
mov eax, dword [esi + 0x14]
test eax, eax
je 0x63688b
cmp dword [esi + 0x24], 0
jg 0x63688b
lea eax, [eax + eax*4]
cmp dword [esi + eax*4 + 0x10], 0
jge 0x636b45
mov ecx, dword [esi + 0x10]
xor eax, eax
mov dword [esp + 0x4c], eax
mov dword [esp + 0x5c], eax
lea edx, [esp + 0x38]
mov dword [esp + 0x50], eax
mov dword [esp + 0x54], eax
mov dword [esp + 0x58], eax
mov dword [esp + 0x38], eax
mov dword [esp + 0x3c], eax
mov dword [esp + 0x40], eax
mov dword [esp + 0x44], eax
mov dword [esp + 0x48], eax
push edx
lea eax, [esp + 0x50]
mov dword [esp + 0x50], 0x31
mov dword [esp + 0x60], ecx
call fcn.006345b0
add esp, 4
jmp 0x636b45
xor ebp, ebp
lea eax, [esp + 0x70]
mov dword [esp + 0x18], eax
mov byte [esp + 0x13], 0x80
cmp dword [esp + 0x2c], ebp
jbe 0x636b41
mov cl, byte [esp + 0x13]
mov edx, dword [esp + 0x18]
test byte [edx], cl
je 0x636b1e
mov eax, dword [esp + 0x1c]
mov ecx, dword [eax + 0x10]
xor eax, eax
mov dword [esp + 0x14], ecx
mov dword [esp + 0x4c], eax
mov dword [esp + 0x50], eax
mov esi, eax
mov dword [esp + 0x58], eax
mov dword [esp + 0x5c], eax
mov ecx, ebp
cmp ebp, dword [ebx + 0x14]
jb 0x63693c
mov eax, dword [ebx + 4]
test eax, eax
je 0x63693a
cmp dword [eax], esi
jne 0x63693a
mov dword [eax], 0x82
xor ecx, ecx
mov eax, dword [ebx + 8]
imul eax, ecx
add eax, dword [ebx + 0x1c]
mov edx, dword [eax + 8]
mov edi, dword [eax + 4]
mov ecx, edx
sub ecx, edi
cmp ecx, 0xffeb0000
jne 0x636960
mov esi, edx
mov ecx, 1
jmp 0x636979
cmp ecx, 0xffec0000
jne 0x63696c
xor ecx, ecx
jmp 0x636979
test ecx, ecx
mov ecx, 4
mov esi, edx
js 0x636979
mov esi, edi
mov edx, ecx
and edx, 0xa
mov dword [esp + 0x4c], ecx
je 0x636991
mov edi, dword [esp + 0x20]
mov edi, dword [edi + 0xbc]
lea esi, [esi + edi*2]
add esi, dword [esp + 0x94]
mov edi, dword [esp + 0x14]
mov dword [esp + 0x54], esi
mov dword [esp + 0x5c], edi
mov dword [esp + 0x50], ebp
test ecx, ecx
je 0x6369d5
cmp byte [eax], 0
je 0x6369d5
test edx, edx
je 0x6369c5
mov edx, dword [eax + 0x10]
or ecx, 0x10
mov dword [esp + 0x58], edx
mov dword [esp + 0x4c], ecx
jmp 0x636a07
mov eax, dword [eax + 0xc]
or ecx, 0x10
mov dword [esp + 0x58], eax
mov dword [esp + 0x4c], ecx
jmp 0x636a07
mov dword [esp + 0x30], esi
mov eax, dword [esp + 0x30]
mov edx, dword [esp + 0x14]
imul edx
mov ecx, edx
sar ecx, 0x1f
add ecx, 0x8000
add eax, ecx
adc edx, 0
shr eax, 0x10
shl edx, 0x10
add eax, edx
mov dword [esp + 0x24], eax
mov ecx, dword [esp + 0x24]
mov dword [esp + 0x58], ecx
mov edx, dword [esp + 0x1c]
mov eax, dword [edx + 0x10]
mov dword [esp + 0x14], eax
xor eax, eax
mov dword [esp + 0x38], eax
mov dword [esp + 0x3c], eax
mov esi, eax
mov dword [esp + 0x44], eax
mov dword [esp + 0x48], eax
mov ecx, ebp
cmp ebp, dword [ebx + 0x14]
jb 0x636a40
mov eax, dword [ebx + 4]
test eax, eax
je 0x636a3e
cmp dword [eax], esi
jne 0x636a3e
mov dword [eax], 0x82
xor ecx, ecx
mov eax, dword [ebx + 8]
imul eax, ecx
add eax, dword [ebx + 0x1c]
mov edi, dword [eax + 8]
mov edx, dword [eax + 4]
mov ecx, edi
sub ecx, edx
cmp ecx, 0xffeb0000
jne 0x636a5f
xor ecx, ecx
jmp 0x636a7b
mov esi, edx
cmp ecx, 0xffec0000
jne 0x636a70
mov ecx, 2
jmp 0x636a7b
test ecx, ecx
mov ecx, 8
js 0x636a7b
mov esi, edi
mov edx, ecx
and edx, 0xa
mov dword [esp + 0x38], ecx
je 0x636a93
mov edi, dword [esp + 0x20]
mov edi, dword [edi + 0xbc]
lea esi, [esi + edi*2]
add esi, dword [esp + 0x94]
mov edi, dword [esp + 0x14]
mov dword [esp + 0x40], esi
mov dword [esp + 0x48], edi
mov dword [esp + 0x3c], ebp
test ecx, ecx
je 0x636ad7
cmp byte [eax], 0
je 0x636ad7
test edx, edx
je 0x636ac7
mov edx, dword [eax + 0x10]
or ecx, 0x10
mov dword [esp + 0x44], edx
mov dword [esp + 0x38], ecx
jmp 0x636b09
mov eax, dword [eax + 0xc]
or ecx, 0x10
mov dword [esp + 0x44], eax
mov dword [esp + 0x38], ecx
jmp 0x636b09
mov dword [esp + 0x30], esi
mov eax, dword [esp + 0x30]
mov edx, dword [esp + 0x14]
imul edx
mov ecx, edx
sar ecx, 0x1f
add ecx, 0x8000
add eax, ecx
adc edx, 0
shr eax, 0x10
shl edx, 0x10
add eax, edx
mov dword [esp + 0x28], eax
mov ecx, dword [esp + 0x28]
mov dword [esp + 0x44], ecx
mov esi, dword [esp + 0x1c]
lea edx, [esp + 0x38]
push edx
lea eax, [esp + 0x50]
call fcn.006345b0
add esp, 4
mov eax, ebp
and eax, 7
cmp al, 7
jne 0x636b32
inc dword [esp + 0x18]
mov byte [esp + 0x13], 0x80
jmp 0x636b36
shr byte [esp + 0x13], 1
inc ebp
cmp ebp, dword [esp + 0x2c]
jb 0x6368f3
mov esi, dword [esp + 0x1c]
push esi
call fcn.00636280
add esp, 4
cmp byte [esp + 0x98], 0
jne 0x636bad
xor edi, edi
cmp dword [esi + 0x14], edi
jbe 0x636bad
lea ecx, [esi + 0x1c]
mov edx, dword [ecx]
shr edx, 5
test dl, 1
jne 0x636ba4
mov edx, dword [ecx + 4]
cmp edx, dword [ebx + 0x14]
jb 0x636b88
mov eax, dword [ebx + 4]
test eax, eax
je 0x636b86
cmp dword [eax], 0
jne 0x636b86
mov dword [eax], 0x82
xor edx, edx
mov eax, dword [ebx + 8]
imul eax, edx
add eax, dword [ebx + 0x1c]
test byte [ecx], 0xa
mov edx, dword [ecx + 0xc]
je 0x636b9e
mov dword [eax + 0x10], edx
jmp 0x636ba1
mov dword [eax + 0xc], edx
mov byte [eax], 1
inc edi
add ecx, 0x14
cmp edi, dword [esi + 0x14]
jb 0x636b62
mov eax, dword [esp + 0x34]
mov byte [esi + 0xc], 1
mov byte [eax + 5], 0
mov ecx, dword [esp + 0x7c]
pop edi
pop esi
pop ebp
pop ebx
xor ecx, esp
call fcn.0065865c
add esp, 0x70
ret