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

Disassembly:
sub esp, 0x6c
mov eax, dword [0x10056b88]
xor eax, esp
mov dword [esp + 0x68], eax
mov eax, dword [esp + 0x78]
mov dword [esp + 0x14], eax
xor eax, eax
cmp dword [0x10055060], eax
push esi
push edi
mov edi, dword [esp + 0x7c]
mov byte [esp + 0x50], 0
mov dword [esp + 0x51], eax
mov dword [esp + 0x55], eax
mov dword [esp + 0x59], eax
mov dword [esp + 0x5d], eax
mov dword [esp + 0x61], eax
mov dword [esp + 0x65], eax
mov dword [esp + 0x69], eax
mov byte [esp + 0x6d], al
je 0x10008610
mov dword [0x10055060], eax
cmp dword [0x10058254], eax
je 0x10008631
mov ecx, dword [0x10058230]
fldz
push ecx
push 0
sub esp, 8
fstp qword [esp]
call fcn.10006230
add esp, 0x10
movzx edx, byte [edi]
movzx ecx, byte [edi + 1]
mov al, byte [edi + 2]
test al, 0x60
mov dword [esp + 0x18], edx
mov dword [esp + 0x24], ecx
mov esi, 3
je 0x1000865b
movzx edx, al
shr edx, 5
and edx, esi
shl edx, 8
add dword [esp + 0x18], edx
test ecx, ecx
jne 0x10008680
push 0x10044eb8
call fcn.10001d60
add esp, 4
pop edi
or eax, 0xffffffff
pop esi
mov ecx, dword [esp + 0x68]
xor ecx, esp
call fcn.10024c3b
add esp, 0x6c
ret
mov ecx, dword [0x10058230]
push ebx
movzx ebx, al
shr ebx, 4
and ebx, 1
and al, 7
cmp al, 4
mov dword [esp + 0x2c], ecx
mov dword [esp + 0x30], ebx
jb 0x100086cc
test ebx, ebx
mov byte [esp + 0x18], 4
je 0x100086e8
movzx edx, byte [edi + 3]
mov al, byte [edi + 4]
mov cl, byte [edi + 5]
mov byte [esp + 0x35], dl
movzx edx, byte [edi + 6]
mov byte [esp + 0x36], al
mov byte [esp + 0x37], cl
mov byte [esp + 0x38], dl
mov esi, 7
jmp 0x100086e8
test ebx, ebx
mov byte [esp + 0x18], 2
je 0x100086e8
mov al, byte [edi + 3]
mov cl, byte [edi + 4]
mov byte [esp + 0x35], al
mov byte [esp + 0x36], cl
mov esi, 5
push ebp
mov ebp, dword [0x100440d0]
call ebp
sub eax, dword [0x100605dc]
cmp eax, dword [0x10058254]
jae 0x10008718
call ebp
mov edx, dword [0x10058254]
mov ecx, dword [0x100605dc]
add ecx, edx
sub ecx, eax
push ecx
call dword [0x100440d8]
test ebx, ebx
mov ebx, dword [esp + 0x1c]
je 0x1000876a
mov dl, byte [edi + esi]
mov ecx, dword [edi + esi + 1]
mov byte [esp + 0x38], dl
mov edx, dword [edi + esi + 5]
add esi, 1
movzx eax, bl
mov dword [esp + eax + 0x39], ecx
mov dword [esp + eax + 0x3d], edx
lea eax, [esp + 0x14]
push eax
lea ecx, [esp + 0x3c]
push ebx
push ecx
add esi, 8
call fcn.100082b0
add esp, 0xc
test eax, eax
jge 0x1000878d
pop ebp
pop ebx
pop edi
pop esi
mov ecx, dword [esp + 0x68]
xor ecx, esp
call fcn.10024c3b
add esp, 0x6c
ret
lea edx, [esp + 0x14]
push edx
lea eax, [edi + esi + 3]
push ebx
push eax
call fcn.100082b0
add esp, 0xc
test eax, eax
jl 0x10008c02
movzx ecx, byte [edi + esi]
lea esi, [esi + ecx + 1]
mov eax, dword [esp + 0x14]
and al, 0xf0
cmp al, 0x10
mov byte [esp + 0x13], ah
mov dword [esp + 0x18], 1
jne 0x10008928
mov edx, dword [esp + 0x30]
push edx
push 2
lea eax, [esp + 0x1c]
push eax
lea ecx, [esp + 0x64]
push ebx
push ecx
call fcn.100083c0
add esp, 0x14
test al, al
je 0x10008b84
mov al, byte [esp + 0x14]
mov dl, al
and dl, 0xf0
cmp dl, 0x30
jne 0x1000890d
and al, 0xf
cmp al, 1
je 0x1000891a
cmp byte [0x1005825f], 0
je 0x100087fd
cmp byte [esp + 0x5a], 0x80
jae 0x1000880b
movzx eax, byte [esp + 0x5a]
push eax
jmp 0x10008805
movzx ecx, byte [0x1005825e]
push ecx
call dword [0x100440d8]
mov cl, byte [esp + 0x59]
test cl, cl
je 0x10008831
cmp cl, 0xff
je 0x10008831
mov eax, dword [esp + 0x20]
sub eax, dword [esp + 0x18]
movzx ecx, cl
cmp eax, ecx
mov ebp, ecx
ja 0x1000882b
mov ebp, eax
add dword [esp + 0x18], ebp
jmp 0x1000884b
mov edx, dword [esp + 0x18]
cmp dword [esp + 0x20], edx
jbe 0x100089aa
mov eax, dword [esp + 0x20]
mov ebp, eax
sub ebp, edx
mov dword [esp + 0x18], eax
test ebp, ebp
mov dword [esp + 0x28], 0
jbe 0x1000891a
jmp 0x10008860
cmp dword [esp + 0x34], 0
je 0x100088a6
mov al, byte [edi + esi]
mov ecx, dword [edi + esi + 1]
mov edx, dword [edi + esi + 5]
mov byte [esp + 0x38], al
movzx eax, byte [esp + 0x1c]
add esi, 1
mov dword [esp + eax + 0x39], ecx
mov dword [esp + eax + 0x3d], edx
lea eax, [esp + 0x14]
push eax
lea ecx, [esp + 0x3c]
push ebx
push ecx
add esi, 8
call fcn.100082b0
add esp, 0xc
test eax, eax
jl 0x10008c02
jmp 0x100088c9
lea edx, [esp + 0x14]
push edx
lea eax, [edi + esi + 3]
push ebx
push eax
call fcn.100082b0
add esp, 0xc
test eax, eax
jl 0x10008c02
movzx ecx, byte [edi + esi]
lea esi, [esi + ecx + 1]
lea edx, [ebp - 1]
cmp dword [esp + 0x28], edx
je 0x100088f8
cmp byte [0x1005825f], 0
je 0x100088ea
cmp byte [esp + 0x5a], 0x80
jae 0x100088f8
movzx eax, byte [esp + 0x5a]
push eax
jmp 0x100088f2
movzx ecx, byte [0x10055032]
push ecx
call dword [0x100440d8]
mov eax, dword [esp + 0x28]
add eax, 1
cmp eax, ebp
mov dword [esp + 0x28], eax
jb 0x10008860
jmp 0x1000891a
push 0x10044ea8
call fcn.10001d60
add esp, 4
mov edx, dword [esp + 0x20]
cmp dword [esp + 0x18], edx
jb 0x100087a7
mov edi, dword [esp + 0x30]
xor eax, eax
mov dword [esp + 0x14], 0
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
mov dword [esp + 0x4c], eax
mov dword [esp + 0x50], eax
mov word [esp + 0x54], ax
push edi
push 1
lea eax, [esp + 0x1c]
push eax
lea ecx, [esp + 0x44]
push ebx
push ecx
call fcn.100083c0
movzx esi, al
add esp, 0x14
test esi, esi
je 0x10008b84
mov eax, dword [esp + 0x14]
mov dl, al
and dl, 0xf0
cmp dl, 0x10
jne 0x100089cd
movzx ecx, byte [esp + 0x13]
movzx edx, byte [esp + 0x17]
add ecx, 0x40
cmp edx, ecx
je 0x10008a45
push 0x10044e98
call fcn.10001d60
add esp, 4
jmp 0x10008957
push 0x10044e84
call fcn.10001d60
add esp, 4
pop ebp
pop ebx
pop edi
or eax, 0xffffffff
pop esi
mov ecx, dword [esp + 0x68]
xor ecx, esp
call fcn.10024c3b
add esp, 0x6c
ret
cmp ah, 0x7f
jne 0x10008a20
cmp byte [esp + 0x16], 0x78
jne 0x10008a00
mov al, byte [esp + 0x13]
cmp byte [esp + 0x17], al
jne 0x100089ee
mov edi, dword [0x1005504c]
jmp 0x10008957
push 0x10044e74
call fcn.10001d60
add esp, 4
jmp 0x10008957
mov cl, byte [esp + 0x13]
cmp byte [esp + 0x17], cl
je 0x10008bbf
push 0x10044e64
call fcn.10001d60
add esp, 4
jmp 0x10008957
movzx edx, byte [esp + 0x13]
movzx eax, ah
add edx, 0x40
cmp eax, edx
je 0x10008bbf
push 0x10044e54
call fcn.10001d60
add esp, 4
jmp 0x10008957
cmp dword [esp + 0x2c], 0xff
jne 0x10008a6a
movzx ecx, al
and ecx, 0xf
shl ecx, 8
movzx edx, ah
movzx eax, byte [esp + 0x1c]
sub ecx, esi
add ecx, edx
lea ebp, [ecx + eax + 7]
jmp 0x10008a79
movzx ecx, byte [esp + 0x1c]
mov edx, dword [esp + 0x2c]
sub ecx, esi
lea ebp, [ecx + edx + 7]
mov edx, dword [esp + 0x24]
lea eax, [esi - 1]
push eax
lea ecx, [esp + 0x3c]
push ecx
add edx, 2
push edx
call fcn.100250c0
add esp, 0xc
cmp ebp, 1
lea edi, [esi + 1]
mov dword [esp + 0x18], 1
jl 0x10008be3
mov byte [esp + 0x13], 1
mov bl, byte [esp + 0x13]
nop
cmp byte [esp + 0x13], 1
jne 0x10008aeb
movzx eax, byte [0x10055033]
push eax
call dword [0x100440d8]
mov edx, dword [esp + 0x1c]
lea ecx, [esp + 0x14]
push ecx
push edx
push 0x10058234
call fcn.100082b0
add esp, 0xc
test eax, eax
jl 0x10008c02
mov byte [esp + 0x13], 0
mov bl, 0x21
mov ecx, dword [esp + 0x1c]
push 0x3e8
push 2
lea eax, [esp + 0x1c]
push eax
push ecx
lea edx, [esp + 0x48]
push edx
call fcn.100083c0
movzx esi, al
add esp, 0x14
test esi, esi
je 0x10008b84
mov al, byte [esp + 0x14]
mov cl, al
and cl, 0xf0
cmp cl, 0x20
jne 0x10008b64
cmp al, bl
jne 0x10008b9c
mov ecx, dword [esp + 0x24]
lea edx, [esi - 1]
push edx
lea eax, [esp + 0x3d]
push eax
add ecx, edi
push ecx
call fcn.100250c0
add dword [esp + 0x24], 1
mov edx, 1
and ebx, 0xf
sub edx, esi
add ebx, 1
add esp, 0xc
add ebp, edx
and ebx, 0x8000000f
lea edi, [edi + esi - 1]
jns 0x10008b5f
dec ebx
or ebx, 0xfffffff0
inc ebx
add bl, 0x20
jmp 0x10008b71
push 0x10044e40
call fcn.10001d60
add esp, 4
test ebp, ebp
jg 0x10008ab0
cmp dword [esp + 0x18], 0
jbe 0x10008be3
add edi, ebp
jmp 0x10008be3
pop ebp
pop ebx
pop edi
mov eax, 0xffffffba
pop esi
mov ecx, dword [esp + 0x68]
xor ecx, esp
call fcn.10024c3b
add esp, 0x6c
ret
push 0x10044e28
call fcn.10001d60
add esp, 4
pop ebp
pop ebx
pop edi
or eax, 0xffffffff
pop esi
mov ecx, dword [esp + 0x68]
xor ecx, esp
call fcn.10024c3b
add esp, 0x6c
ret
mov edx, dword [esp + 0x24]
lea eax, [esi - 1]
push eax
lea ecx, [esp + 0x3c]
push ecx
add edx, 2
push edx
call fcn.100250c0
add esp, 0xc
lea edi, [esi + 1]
mov dword [esp + 0x18], 1
call dword [0x100440d0]
mov ecx, dword [esp + 0x18]
mov dword [0x100605dc], eax
mov eax, dword [esp + 0x24]
mov edx, ecx
shr edx, 8
mov byte [eax], dl
mov byte [eax + 1], cl
mov eax, edi
mov ecx, dword [esp + 0x78]
pop ebp
pop ebx
pop edi
pop esi
xor ecx, esp
call fcn.10024c3b
add esp, 0x6c
ret