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

Disassembly:
sub esp, 0x20
push ebx
mov ebx, dword [esp + 0x30]
push ebp
push esi
push edi
mov edi, ecx
mov ecx, ebx
call fcn.1014abf0
mov ebp, dword [edi + 0x24]
mov esi, dword [ebx + 0x90]
mov ecx, 1
mov dword [esp + 0x28], eax
mov eax, dword [esp + 0x38]
shr ebp, 1
and ebp, ecx
lea edx, [eax + eax*2]
mov eax, dword [edi + 0x78]
mov dword [esp + 0x10], ecx
mov dword [esp + 0x20], ecx
xor ecx, ecx
test edx, edx
mov dword [esp + 0x24], ebp
mov dword [esp + 0x38], edx
mov dword [esp + 0x18], eax
mov dword [esp + 0x14], ecx
jbe 0x101787f2
add eax, 1
shl eax, 0x15
add edx, 1
mov dword [esp + 0x1c], eax
mov dword [esp + 0x20], edx
jmp 0x10178640
test byte [esp + 0x10], 1
je 0x101787d9
cmp ecx, 0x3f
ja 0x1017867b
cmp ecx, dword [edi + 0x90]
jae 0x1017867b
mov edx, dword [edi + 0x8c]
mov eax, ecx
and ecx, 0x1f
mov ebx, 1
shl ebx, cl
shr eax, 5
test dword [edx + eax*4], ebx
setne al
test al, al
jne 0x101787d1
mov eax, dword [esi]
mov ecx, esi
call dword [eax + 4]
mov ecx, dword [esi + 8]
mov edx, dword [esi + 0xc]
mov ebx, dword [esp + 0x14]
and ecx, 0xff7fcf81
mov eax, ebp
and eax, 3
shl eax, 0xc
or eax, ecx
mov ecx, dword [esp + 0x1c]
and ecx, 0x1fe00000
and edx, 0xffe0
or edx, ecx
or eax, 0x600001
mov dword [esi + 8], eax
or edx, 0x2000001e
mov dword [esi + 0xc], edx
mov ecx, dword [edi + 0x44]
mov ebp, dword [edi + 0x50]
add ecx, ebx
mov ecx, dword [ebp + ecx*4]
mov ebp, dword [edi + 0x34]
mov ecx, dword [ebp + ecx*4]
mov dword [esp + 0x10], ecx
movzx ecx, byte [edi + 0x9c]
shl ecx, 0xe
xor ecx, dword [esi + 0x10]
shr eax, 0x15
and ecx, 0x4000
xor dword [esi + 0x10], ecx
movzx ecx, byte [edi + 0x9d]
mov ebp, dword [esi + 0x10]
shl ecx, 0xd
xor ecx, ebp
and ecx, 0x2000
xor ecx, ebp
mov dword [esi + 0x10], ecx
mov ebp, dword [edi + 0x30]
mov ebp, dword [ebp + ebx*4]
and edx, 0xffffffbf
and eax, 7
or edx, 0x3a0
cmp eax, 5
mov dword [esi + 0xc], edx
ja case.0x10178724.0
jmp dword [eax*4 + 0x10178d14]
and ecx, 0xfe45ffff
or ecx, 0x450000
jmp 0x1017875b
and ecx, 0xfe69ffff
or ecx, 0x690000
jmp 0x1017875b
and ecx, 0xfe8dffff
or ecx, 0x8d0000
jmp 0x1017875b
and ecx, 0xfe00ffff
mov eax, dword [esp + 0x10]
mov dword [esi + 0x10], ecx
mov edx, ecx
and eax, 0xff
shl eax, 5
and edx, 0xffff601f
or eax, edx
lea ecx, [ebp*4]
xor ecx, eax
and ecx, 0x1f
xor ecx, eax
mov dword [esi + 0x10], eax
mov dword [esi + 0x10], ecx
mov eax, dword [edi + 0x38]
cmp byte [ebx + eax], 0
je 0x1017879a
and ecx, 0xfe00ffff
mov dword [esi + 0x10], ecx
mov ebx, dword [esp + 0x3c]
cmp dword [ebx + 0x1c], 0
je 0x101787c2
push 0x10
lea eax, [esi + 8]
push eax
lea ecx, [esp + 0x34]
push ecx
mov ecx, ebx
call fcn.100fd200
mov eax, dword [eax]
mov ebp, dword [esp + 0x24]
mov dword [esp + 0x10], eax
jmp 0x101787d5
mov ebp, dword [esp + 0x24]
mov eax, 2
mov dword [esp + 0x10], eax
jmp 0x101787d5
mov ebx, dword [esp + 0x3c]
mov ecx, dword [esp + 0x14]
add dword [esp + 0x1c], 0x200000
add ecx, 1
cmp ecx, dword [esp + 0x38]
mov dword [esp + 0x14], ecx
jb 0x10178640
cmp dword [edi + 0xa8], 0
jne 0x10178929
cmp dword [edi + 0xac], 0
jne 0x10178929
cmp dword [edi + 0xb0], 0
jne 0x10178929
cmp dword [edi + 0xb4], 0xf
jne 0x10178929
test byte [esp + 0x10], 1
je 0x10178c2a
mov eax, dword [edi + 0xa0]
mov edx, dword [ebx]
push eax
mov ecx, ebx
call dword [edx + 0xc]
mov ecx, dword [ebx + 0x84]
mov edx, dword [ecx]
push eax
mov eax, dword [edi + 0xa4]
push eax
mov eax, dword [esp + 0x28]
push 0
push 2
push 4
push eax
call dword [edx + 0x14]
mov edx, dword [esi]
mov ecx, esi
mov dword [esp + 0x3c], eax
call dword [edx + 8]
mov eax, dword [esi + 8]
mov edx, dword [esi]
and eax, 0xff7fffb1
or eax, 0x600031
mov dword [esi + 8], eax
mov eax, dword [esp + 0x18]
push eax
mov ecx, esi
call dword [edx + 0xc]
mov edx, dword [esi]
push 2
mov ecx, esi
call dword [edx + 0x10]
shl ebp, 0xc
xor ebp, dword [esi + 8]
push 0
and ebp, 0x3000
xor dword [esi + 8], ebp
mov eax, dword [edi + 0x4c]
mov ecx, dword [edi + 0x5c]
mov edx, dword [ecx + eax*4]
mov eax, dword [edi + 0x68]
mov ecx, dword [eax + edx*4]
push 0
push ecx
push 1
mov ecx, esi
call fcn.100f2e20
mov edx, dword [edi + 0x30]
mov ebp, dword [esp + 0x38]
mov eax, dword [edx + ebp*4]
mov ecx, dword [edi + 0x44]
mov edx, dword [edi + 0x50]
push 0
push eax
add ecx, ebp
mov eax, dword [edx + ecx*4]
mov ecx, dword [edi + 0x34]
mov edx, dword [ecx + eax*4]
push edx
push 1
push 0
mov ecx, esi
call fcn.100f2ee0
mov eax, dword [edi + 0x38]
cmp byte [eax + ebp], 0
je 0x101788fb
push 0
push 1
push 0
push 0
mov ecx, esi
call fcn.100ea4b0
mov edx, dword [esi + 0xc]
mov ecx, dword [esp + 0x3c]
and dh, 0x8f
or dh, 0xc
lea eax, [esi + 8]
push eax
lea eax, [esp + 0x40]
mov dword [esi + 0x14], ecx
push eax
mov ecx, ebx
mov dword [esi + 0xc], edx
call fcn.10142640
mov ecx, dword [eax]
mov dword [esp + 0x10], ecx
jmp 0x10178c2a
test byte [esp + 0x10], 1
je 0x10178c2a
mov edx, dword [esi]
mov ecx, esi
call dword [edx + 4]
mov eax, dword [esi + 8]
mov ecx, dword [esi + 0xc]
and eax, 0xef7fff81
or eax, 0x600201
mov dword [esi + 8], eax
mov dword [esp + 0x3c], eax
mov eax, dword [esp + 0x18]
and eax, 0xff
and ecx, 0xffe0
shl eax, 0x15
or eax, ecx
or eax, 0x20000002
mov dword [esi + 0xc], eax
mov edx, dword [edi + 0x44]
add edx, dword [esp + 0x38]
mov ecx, dword [edi + 0x50]
mov edx, dword [ecx + edx*4]
mov ecx, dword [edi + 0x34]
mov edx, dword [ecx + edx*4]
mov ecx, dword [edi + 0x30]
mov dword [esp + 0x10], edx
mov edx, dword [esp + 0x38]
mov edx, dword [ecx + edx*4]
mov ecx, dword [esp + 0x3c]
and eax, 0xfffffc3f
or al, 0x20
shr ecx, 0x15
and ecx, 7
cmp ecx, 5
mov dword [esi + 0xc], eax
ja case.0x101789a8.0
jmp dword [ecx*4 + 0x10178d2c]
mov eax, dword [esi + 0x10]
and eax, 0xfe45ffff
or eax, 0x450000
mov dword [esi + 0x10], eax
jmp 0x10178a02
mov ecx, dword [esi + 0x10]
and ecx, 0xfe69ffff
or ecx, 0x690000
mov dword [esi + 0x10], ecx
jmp 0x10178a02
mov eax, dword [esi + 0x10]
and eax, 0xfe8dffff
or eax, 0x8d0000
mov dword [esi + 0x10], eax
jmp 0x10178a02
mov ecx, dword [esi + 0x10]
and ecx, 0xfe8dffff
or ecx, 0x8d0000
mov dword [esi + 0x10], ecx
jmp 0x10178a02
and dword [esi + 0x10], 0xfe00ffff
mov ecx, dword [esp + 0x10]
and ecx, 0xff
lea eax, [edx*4]
mov edx, dword [esi + 0x10]
shl ecx, 5
and eax, 0x1f
or ecx, eax
and edx, 0xffff6000
or ecx, edx
mov dword [esi + 0x10], ecx
mov eax, dword [edi + 0x38]
mov ecx, dword [esp + 0x38]
cmp byte [ecx + eax], 0
je 0x10178a45
push 0
push 1
push 0
push 0
mov ecx, esi
call fcn.100ea4b0
cmp dword [ebx + 0x1c], 0
je 0x10178a61
push 0x10
lea eax, [esi + 8]
push eax
lea edx, [esp + 0x44]
push edx
mov ecx, ebx
call fcn.100fd200
mov eax, dword [eax]
jmp 0x10178a66
mov eax, 2
test al, 1
mov dword [esp + 0x10], eax
je 0x10178c2a
mov ecx, dword [edi + 0xa8]
mov eax, dword [edi + 0xac]
mov edx, dword [edi + 0xb0]
and ecx, 0xf
and eax, 0xf
shl ecx, 4
or eax, ecx
mov ecx, dword [edi + 0xb4]
shl eax, 4
and edx, 0xf
or eax, edx
test cl, 1
mov dword [esp + 0x3c], eax
jne 0x10178aad
or ah, 0x10
mov dword [esp + 0x3c], eax
test cl, 2
jne 0x10178ab9
or ah, 0x20
mov dword [esp + 0x3c], eax
test cl, 4
jne 0x10178ac5
or ah, 0x40
mov dword [esp + 0x3c], eax
test cl, 8
jne 0x10178ad1
or ah, 0x80
mov dword [esp + 0x3c], eax
mov eax, dword [esi]
mov ecx, esi
call dword [eax + 4]
mov ecx, dword [esi + 8]
and ecx, 0xffffff81
or ecx, 1
mov dword [esi + 8], ecx
push 1
mov ecx, esi
call fcn.100ea3e0
mov edx, dword [esi + 8]
mov eax, dword [esp + 0x18]
and edx, 0xefffffff
push 1
or dh, 2
push 2
push eax
push 2
mov ecx, esi
mov dword [esi + 8], edx
call fcn.100f2e20
mov edx, dword [esi + 0xc]
mov ecx, dword [esp + 0x3c]
and dh, 0xfc
or dl, 0xe0
mov dword [esi + 0x14], ecx
mov dword [esi + 0xc], edx
cmp dword [ebx + 0x1c], 0
je 0x10178b3d
push 0x10
lea eax, [esi + 8]
push eax
lea eax, [esp + 0x44]
push eax
mov ecx, ebx
call fcn.100fd200
mov eax, dword [eax]
jmp 0x10178b42
mov eax, 2
test al, 1
mov dword [esp + 0x10], eax
je 0x10178c2a
mov eax, dword [edi + 0xa0]
mov edx, dword [ebx]
push eax
mov ecx, ebx
call dword [edx + 0xc]
mov ecx, dword [ebx + 0x84]
mov edx, dword [ecx]
push eax
mov eax, dword [edi + 0xa4]
push eax
mov eax, dword [esp + 0x28]
push 0
push 2
push 4
push eax
call dword [edx + 0x14]
mov edx, dword [esi]
mov ecx, esi
mov dword [esp + 0x3c], eax
call dword [edx + 8]
mov eax, dword [esi + 8]
mov edx, dword [esi]
and eax, 0xff7fffb1
or eax, 0x600031
mov dword [esi + 8], eax
mov eax, dword [esp + 0x18]
push eax
mov ecx, esi
call dword [edx + 0xc]
mov edx, dword [esi]
push 2
mov ecx, esi
call dword [edx + 0x10]
shl ebp, 0xc
xor ebp, dword [esi + 8]
push 0
and ebp, 0x3000
xor dword [esi + 8], ebp
mov eax, dword [edi + 0x4c]
mov ecx, dword [edi + 0x5c]
mov edx, dword [ecx + eax*4]
mov eax, dword [edi + 0x68]
mov ecx, dword [eax + edx*4]
push 0
push ecx
push 1
mov ecx, esi
call fcn.100f2e20
push 0
push 0
push 0
push 0
call fcn.1006dd40
add esp, 8
push eax
push 0
push 0
mov ecx, esi
call fcn.100f2ee0
mov eax, dword [esi + 0xc]
mov edx, dword [esp + 0x3c]
and ah, 0x8f
or ah, 0xc
mov dword [esi + 0x14], edx
mov dword [esi + 0xc], eax
cmp dword [ebx + 0x1c], 0
je 0x10178c21
push 0x10
lea eax, [esi + 8]
push eax
lea ecx, [esp + 0x44]
push ecx
mov ecx, ebx
call fcn.100fd200
mov eax, dword [eax]
jmp 0x10178c26
mov eax, 2
mov dword [esp + 0x10], eax
mov ecx, dword [esp + 0x10]
test cl, 1
je 0x10178cdb
mov ecx, dword [esp + 0x28]
mov edx, dword [ecx]
call dword [edx + 0xc]
test byte [eax + 0x16], 4
je 0x10178ceb
cmp dword [edi + 0xb4], 0
je 0x10178cff
mov eax, dword [esi]
mov ecx, esi
call dword [eax + 4]
mov ecx, dword [esi + 8]
lea ebp, [esi + 8]
and ecx, 0xff7fff81
or ecx, 0x600001
push 0
push 0
mov dword [ebp], ecx
call fcn.1006dd40
mov edx, dword [esi + 0xc]
and eax, 0xff
shl eax, 0x15
and edx, 0xffe0
or eax, edx
or eax, 0x2000001c
mov dword [esi + 0xc], eax
mov eax, dword [edi + 0x4c]
mov ecx, dword [edi + 0x5c]
mov edx, dword [ecx + eax*4]
mov eax, dword [edi + 0x68]
mov ecx, dword [eax + edx*4 + 0xc]
add esp, 8
push 7
push 0
push ecx
push 1
push 0
mov ecx, esi
call fcn.100f2ee0
push ebp
lea edx, [esp + 0x40]
push edx
mov ecx, ebx
call fcn.10142640
mov eax, dword [eax]
mov ecx, dword [esp + 0x34]
pop edi
pop esi
pop ebp
mov dword [ecx], eax
mov eax, ecx
pop ebx
add esp, 0x20
ret 0xc
mov eax, dword [esp + 0x34]
pop edi
pop esi
pop ebp
mov dword [eax], ecx
pop ebx
add esp, 0x20
ret 0xc
mov eax, dword [esp + 0x34]
mov ecx, dword [esp + 0x10]
pop edi
pop esi
pop ebp
mov dword [eax], ecx
pop ebx
add esp, 0x20
ret 0xc
mov eax, dword [esp + 0x34]
mov edx, dword [esp + 0x10]
pop edi
pop esi
pop ebp
mov dword [eax], edx
pop ebx
add esp, 0x20
ret 0xc