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

Disassembly:
sub esp, 0x14
push ebx
mov ebx, dword [esp + 0x24]
push ebp
xor edx, edx
push esi
mov esi, ecx
mov ebp, dword [esi + 0x24]
mov eax, dword [esi + 0xc]
mov dword [esp + 0xc], edx
mov dword [esp + 0x14], edx
mov edx, ebp
mov ecx, 1
shr edx, 2
test cl, dl
push edi
mov edi, dword [ebx + 0x94]
mov dword [esp + 0x20], ecx
mov dword [esp + 0x1c], eax
je 0x1018d7c1
mov dword [esp + 0x10], 2
mov edx, ebp
shr edx, 3
test dl, 1
je 0x1018d7d3
mov dword [esp + 0x10], 1
cmp eax, 4
je 0x1018d7e8
cmp eax, 8
je 0x1018d7e8
mov ecx, 2
mov dword [esp + 0x20], ecx
jmp 0x1018d7f6
mov eax, ebp
shr eax, 1
movzx eax, al
and eax, 1
mov dword [esp + 0x18], eax
test cl, 1
je 0x1018d9b1
mov edx, dword [esi + 0x1c]
test edx, edx
je 0x1018d9b1
mov eax, dword [esi + 0x44]
sub eax, edx
add eax, dword [esi + 0x40]
mov edx, dword [esi + 0x2c]
add eax, eax
add eax, eax
cmp dword [eax + edx], 0
je 0x1018d9b1
mov edx, dword [esi + 0x5c]
mov ecx, dword [esi + 0x4c]
mov ecx, dword [edx + ecx*4]
mov ebp, dword [esi + 0x50]
mov edx, dword [esi + 0x68]
mov eax, dword [eax + ebp]
mov ebp, dword [esi + 0x34]
mov ecx, dword [edx + ecx*4]
cmp ecx, dword [ebp + eax*4]
je 0x1018d9ad
mov edx, dword [edi]
mov ecx, edi
call dword [edx + 4]
mov eax, dword [edi + 8]
lea ebp, [edi + 8]
and al, 0x81
or al, 1
mov dword [ebp], eax
mov ecx, dword [esi + 0x44]
sub ecx, dword [esi + 0x1c]
mov edx, dword [esi + 0x2c]
add ecx, dword [esi + 0x40]
mov eax, 8
cmp dword [edx + ecx*4], 2
je 0x1018d874
mov eax, dword [esp + 0x1c]
push eax
mov ecx, edi
call fcn.100ea3e0
mov eax, dword [esp + 0x10]
mov edx, dword [esp + 0x18]
mov ecx, eax
sar ecx, 1
and ecx, 1
shl ecx, 0x10
and edx, 3
or ecx, edx
add ecx, ecx
add ecx, ecx
add ecx, ecx
and eax, 1
or ecx, eax
mov eax, dword [ebp]
shl ecx, 9
and eax, 0xefffcdff
or ecx, eax
mov dword [ebp], ecx
mov ecx, dword [esi + 0x4c]
mov edx, dword [esi + 0x5c]
mov eax, dword [edx + ecx*4]
mov ecx, dword [esi + 0x68]
mov eax, dword [ecx + eax*4]
mov edx, dword [ebx]
push eax
mov ecx, ebx
mov dword [esp + 0x18], eax
call dword [edx + 0x1c]
mov ecx, dword [esp + 0x14]
mov dword [esp + 0x30], eax
mov eax, dword [ebx]
push ecx
mov ecx, ebx
call dword [eax + 0x18]
mov ecx, dword [esp + 0x30]
mov edx, dword [edi + 0xc]
and eax, 0xff
add ecx, ecx
shl eax, 5
add ecx, ecx
and ecx, 0x10
or eax, ecx
shl eax, 0x10
and edx, 0x600fffe0
or eax, edx
or al, 0x1d
mov dword [edi + 0xc], eax
mov eax, dword [esi + 0x48]
add eax, dword [esi + 0x20]
mov ecx, dword [esi + 0x60]
add eax, dword [esi + 0x4c]
mov eax, dword [ecx + eax*4]
mov edx, eax
shr edx, 3
and dl, 1
mov ecx, eax
shr ecx, 2
and cl, 1
push edx
mov edx, eax
shr edx, 1
and dl, 1
and al, 1
push ecx
mov ecx, edi
push edx
push eax
call fcn.101899a0
mov eax, dword [esi + 0x44]
sub eax, dword [esi + 0x1c]
mov ecx, dword [esi + 0x50]
add eax, dword [esi + 0x40]
mov edx, dword [ecx + eax*4]
mov eax, dword [esi + 0x34]
mov eax, dword [eax + edx*4]
mov edx, dword [ebx]
mov dword [esp + 0x14], eax
push eax
mov ecx, ebx
call dword [edx + 0x1c]
mov ecx, dword [esp + 0x14]
mov dword [esp + 0x30], eax
mov eax, dword [ebx]
push ecx
mov ecx, ebx
call dword [eax + 0x18]
mov edx, dword [edi + 0xc]
mov ecx, dword [esp + 0x30]
and edx, 0xffffffbf
and eax, 0xff
or edx, 0x3a0
or eax, 0x30000
mov dword [edi + 0xc], edx
mov edx, dword [edi + 0x10]
add ecx, ecx
shl eax, 5
add ecx, ecx
and edx, 0xfe7f600f
or eax, edx
and ecx, 0x10
or eax, ecx
mov dword [edi + 0x10], eax
push ebp
lea eax, [esp + 0x34]
push eax
mov ecx, ebx
call fcn.10142640
mov ecx, dword [eax]
jmp 0x1018d9b1
mov ecx, dword [esp + 0x20]
cmp dword [esi + 0x74], 0
je 0x1018dc14
test cl, 1
je 0x1018df88
mov edx, dword [edi]
mov ecx, edi
call dword [edx + 4]
mov eax, dword [edi + 8]
xor eax, dword [esp + 0x2c]
mov ecx, dword [esp + 0x1c]
lea ebp, [edi + 8]
and eax, 0x7f
xor dword [ebp], eax
push ecx
mov ecx, edi
mov dword [esp + 0x24], ebp
call fcn.100ea3e0
mov ecx, dword [esp + 0x10]
mov edx, dword [esp + 0x18]
mov eax, ecx
sar eax, 1
and eax, 1
shl eax, 0x10
and edx, 3
or eax, edx
mov edx, dword [ebp]
add eax, eax
add eax, eax
and ecx, 1
add eax, eax
or eax, ecx
shl eax, 9
and edx, 0xefffcdff
or eax, edx
mov dword [ebp], eax
movzx ecx, byte [esi + 0xa2]
shl ecx, 0x1f
and eax, 0x7fffffff
or ecx, eax
mov dword [ebp], ecx
mov ebp, dword [esi + 0x78]
mov edx, dword [ebx]
push ebp
mov ecx, ebx
call dword [edx + 0x1c]
mov dword [esp + 0x30], eax
mov eax, dword [ebx]
push ebp
mov ecx, ebx
call dword [eax + 0x18]
mov ecx, dword [esp + 0x30]
push 7
push ecx
push eax
push 2
mov ecx, edi
call fcn.10142680
mov ebp, dword [esi + 0x4c]
mov ecx, dword [esi + 0x64]
mov eax, dword [ecx + ebp*4]
mov ecx, dword [ecx + ebp*4]
mov edx, dword [esi + 0x60]
and ecx, dword [edx + ebp*4]
and eax, dword [edx + ebp*4]
mov dword [esp + 0x2c], ecx
mov ecx, dword [esi + 0x64]
mov ecx, dword [ecx + ebp*4]
and ecx, dword [edx + ebp*4]
shr eax, 3
mov dword [esp + 0x30], ecx
mov ecx, dword [esi + 0x64]
mov ecx, dword [ecx + ebp*4]
and ecx, dword [edx + ebp*4]
mov edx, dword [esp + 0x2c]
and eax, 1
shr edx, 2
and edx, 1
add eax, eax
or eax, edx
mov edx, dword [esp + 0x30]
shr edx, 1
add eax, eax
and edx, 1
or eax, edx
add eax, eax
mov edx, dword [edi + 0xc]
and ecx, 1
or eax, ecx
shl eax, 0x10
and edx, 0xfff0ffff
or eax, edx
mov dword [edi + 0xc], eax
mov eax, dword [esi + 0x44]
mov ecx, dword [esi + 0x50]
mov edx, dword [ecx + eax*4]
mov eax, dword [esi + 0x34]
mov ebp, dword [eax + edx*4]
mov ecx, dword [esi + 0x30]
mov edx, dword [ecx]
mov eax, dword [ebx]
push ebp
mov ecx, ebx
mov dword [esp + 0x30], edx
call dword [eax + 0x1c]
add eax, dword [esp + 0x2c]
mov edx, dword [ebx]
push ebp
mov ecx, ebx
mov dword [esp + 0x34], eax
call dword [edx + 0x18]
movzx ecx, byte [esi + 0x9a]
shl ecx, 0xe
xor ecx, dword [edi + 0x10]
mov ebp, dword [edi + 0xc]
and ecx, 0x4000
xor dword [edi + 0x10], ecx
mov cl, byte [esi + 0x9e]
mov edx, dword [edi + 0x10]
and ebp, 0xffffffbf
and eax, 0xff
or ebp, 0x3a0
mov dword [edi + 0xc], ebp
and edx, 0xfe7f401f
and ecx, 1
or ch, 3
shl ecx, 8
or ecx, eax
shl ecx, 5
mov ebp, ecx
or ebp, edx
mov edx, dword [esp + 0x30]
push edx
push 7
mov dword [edi + 0x10], ebp
call fcn.100ea390
xor eax, ebp
and eax, 0x10
mov edx, eax
xor edx, ebp
mov dword [edi + 0x10], edx
mov eax, dword [esi + 0x44]
mov ecx, dword [esi + 0x54]
mov ecx, dword [ecx + eax*4]
mov ebp, ecx
shr ebp, 4
and ebp, 3
mov ebp, dword [ebp*4 + 0x10214474]
mov eax, ecx
shr eax, 6
mov dword [esp + 0x34], ebp
and eax, 3
mov eax, dword [eax*4 + 0x10214474]
mov ebp, ecx
and ecx, 3
mov ecx, dword [ecx*4 + 0x10214474]
and eax, 3
shr ebp, 2
mov dword [esp + 0x38], ecx
mov ecx, dword [esp + 0x34]
add eax, eax
and ebp, 3
mov ebp, dword [ebp*4 + 0x10214474]
add eax, eax
and ecx, 3
add esp, 8
or eax, ecx
mov ecx, dword [esp + 0x30]
shl eax, 0xe
and ebp, 3
or eax, ebp
add eax, eax
add eax, eax
and ecx, 3
and edx, 0xfff0fff0
or eax, ecx
or eax, edx
mov dword [edi + 0x10], eax
mov edx, dword [esi + 0x3c]
cmp byte [edx], 0
je 0x1018dbe3
and eax, 0xfe1fffff
mov dword [edi + 0x10], eax
cmp dword [ebx + 0x1c], 0
je 0x1018df71
mov eax, dword [esp + 0x20]
push 0x10
push eax
lea ecx, [esp + 0x34]
push ecx
mov ecx, ebx
call fcn.100fd200
mov eax, dword [eax]
mov ecx, dword [esp + 0x28]
pop edi
pop esi
pop ebp
mov dword [ecx], eax
mov eax, ecx
pop ebx
add esp, 0x14
ret 0xc
test cl, 1
je 0x1018df88
mov edx, dword [edi]
mov ecx, edi
call dword [edx + 4]
mov eax, dword [edi + 8]
xor eax, dword [esp + 0x2c]
mov ecx, dword [esp + 0x1c]
lea ebp, [edi + 8]
and eax, 0x7f
xor dword [ebp], eax
push ecx
mov ecx, edi
mov dword [esp + 0x24], ebp
call fcn.100ea3e0
mov ecx, dword [esp + 0x10]
mov edx, dword [esp + 0x18]
mov eax, ecx
sar eax, 1
and eax, 1
shl eax, 0x10
and edx, 3
or eax, edx
mov edx, dword [ebp]
add eax, eax
add eax, eax
add eax, eax
and ecx, 1
or eax, ecx
shl eax, 9
and edx, 0xefffcdff
or eax, edx
mov dword [ebp], eax
cmp byte [esi + 0x98], 0
je 0x1018dd38
mov ecx, dword [esi + 0x54]
mov edx, dword [ecx]
movzx ecx, byte [esi + 0x99]
shl ecx, 0x14
xor ecx, eax
and ecx, 0x100000
xor ecx, eax
mov dword [esp + 0x2c], ecx
mov dword [ebp], ecx
lea ecx, [esp + 0x30]
mov dword [esp + 0x30], edx
call fcn.10056ca0
test al, al
je 0x1018dd08
mov eax, dword [esp + 0x30]
and eax, 3
cmp eax, 3
ja case.default.0x1018dcc1
jmp dword [eax*4 + 0x1018df98]
mov eax, dword [esp + 0x2c]
and eax, 0xfff2ffff
or eax, 0x20000
jmp 0x1018dd16
mov eax, dword [esp + 0x2c]
and eax, 0xfff3ffff
or eax, 0x30000
jmp 0x1018dd16
mov eax, dword [esp + 0x2c]
and eax, 0xfff4ffff
or eax, 0x40000
jmp 0x1018dd16
mov eax, dword [esp + 0x2c]
and eax, 0xfff5ffff
or eax, 0x50000
jmp 0x1018dd16
mov eax, dword [esp + 0x2c]
and eax, 0xfff1ffff
or eax, 0x10000
mov dword [ebp], eax
mov eax, dword [esi + 0x50]
mov ecx, dword [eax]
mov edx, dword [esi + 0x34]
mov eax, dword [edx + ecx*4]
sub eax, 0
je 0x1018dd34
sub eax, 1
jne 0x1018dd38
or byte [edi + 0x13], 2
jmp 0x1018dd38
and byte [edi + 0x13], 0xfd
mov eax, dword [esi + 0x5c]
mov ecx, dword [eax]
mov edx, dword [esi + 0x68]
mov eax, dword [edx + ecx*4]
sub eax, 0
je 0x1018dd53
sub eax, 1
jne 0x1018dd57
or byte [edi + 0x13], 2
jmp 0x1018dd57
and byte [edi + 0x13], 0xfd
mov eax, dword [ebp]
and eax, 0xf7ffffff
or eax, 0x7000000
mov dword [ebp], eax
mov ecx, dword [esi + 0x4c]
mov edx, dword [esi + 0x5c]
mov eax, dword [edx + ecx*4]
mov ecx, dword [esi + 0x68]
mov eax, dword [ecx + eax*4]
mov edx, dword [ebx]
push eax
mov ecx, ebx
mov dword [esp + 0x18], eax
call dword [edx + 0x1c]
mov ecx, dword [esp + 0x14]
mov dword [esp + 0x30], eax
mov eax, dword [ebx]
push ecx
mov ecx, ebx
call dword [eax + 0x18]
movzx edx, byte [esi + 0xa2]
mov ecx, dword [ebp]
shl edx, 0x1f
and ecx, 0x7fffffff
or edx, ecx
push 7
mov dword [ebp], edx
mov edx, dword [esp + 0x34]
push edx
push eax
push 1
mov ecx, edi
call fcn.10142680
mov ebp, dword [esi + 0x4c]
mov ecx, dword [esi + 0x64]
mov eax, dword [ecx + ebp*4]
mov ecx, dword [ecx + ebp*4]
mov edx, dword [esi + 0x60]
and ecx, dword [edx + ebp*4]
and eax, dword [edx + ebp*4]
mov dword [esp + 0x2c], ecx
mov ecx, dword [esi + 0x64]
mov ecx, dword [ecx + ebp*4]
and ecx, dword [edx + ebp*4]
shr eax, 3
mov dword [esp + 0x30], ecx
mov ecx, dword [esi + 0x64]
mov ecx, dword [ecx + ebp*4]
and ecx, dword [edx + ebp*4]
mov edx, dword [esp + 0x2c]
and eax, 1
add eax, eax
shr edx, 2
and edx, 1
or eax, edx
mov edx, dword [esp + 0x30]
add eax, eax
shr edx, 1
and edx, 1
or eax, edx
and ecx, 1
add eax, eax
or eax, ecx
mov ecx, dword [edi + 0xc]
and ecx, 0xfff0ffff
shl eax, 0x10
or eax, ecx
mov dword [edi + 0xc], eax
mov edx, dword [esi + 0x44]
mov eax, dword [esi + 0x50]
mov ecx, dword [eax + edx*4]
mov edx, dword [esi + 0x34]
mov ebp, dword [edx + ecx*4]
mov eax, dword [esi + 0x30]
mov ecx, dword [eax]
mov edx, dword [ebx]
mov dword [esp + 0x2c], ecx
push ebp
mov ecx, ebx
call dword [edx + 0x1c]
add eax, dword [esp + 0x2c]
mov dword [esp + 0x30], eax
mov eax, dword [ebx]
push ebp
mov ecx, ebx
call dword [eax + 0x18]
movzx ecx, byte [esi + 0x9a]
shl ecx, 0xe
xor ecx, dword [edi + 0x10]
mov ebp, dword [edi + 0xc]
and ecx, 0x4000
xor dword [edi + 0x10], ecx
mov cl, byte [esi + 0x9e]
mov edx, dword [edi + 0x10]
and ebp, 0xffffffbf
and eax, 0xff
or ebp, 0x3a0
mov dword [edi + 0xc], ebp
and edx, 0xfe7f401f
and ecx, 1
or ch, 3
shl ecx, 8
or ecx, eax
shl ecx, 5
mov ebp, ecx
or ebp, edx
mov edx, dword [esp + 0x30]
push edx
push 7
mov dword [edi + 0x10], ebp
call fcn.100ea390
mov ecx, ebp
xor ecx, eax
and ecx, 0x10
xor ecx, ebp
mov dword [edi + 0x10], ecx
mov eax, dword [esi + 0x44]
mov edx, dword [esi + 0x54]
mov edx, dword [edx + eax*4]
mov ebp, edx
shr ebp, 4
and ebp, 3
mov ebp, dword [ebp*4 + 0x10214474]
mov eax, edx
shr eax, 6
and eax, 3
mov eax, dword [eax*4 + 0x10214474]
mov dword [esp + 0x34], ebp
and eax, 3
mov ebp, edx
and edx, 3
mov edx, dword [edx*4 + 0x10214474]
add eax, eax
add eax, eax
shr ebp, 2
mov dword [esp + 0x38], edx
mov edx, dword [esp + 0x34]
and ebp, 3
mov ebp, dword [ebp*4 + 0x10214474]
and edx, 3
or eax, edx
shl eax, 0xe
and ebp, 3
or eax, ebp
add eax, eax
and ecx, 0xfff0fff0
add eax, eax
or eax, ecx
mov ecx, dword [esp + 0x38]
and ecx, 3
or eax, ecx
mov dword [edi + 0x10], eax
mov ecx, dword [esi + 0x3c]
add esp, 8
cmp byte [ecx], 0
je 0x1018df44
and eax, 0xfe1fffff
mov dword [edi + 0x10], eax
cmp dword [ebx + 0x1c], 0
je 0x1018df71
mov edx, dword [esp + 0x20]
push 0x10
push edx
lea eax, [esp + 0x34]
push eax
mov ecx, ebx
call fcn.100fd200
mov eax, dword [eax]
mov ecx, dword [esp + 0x28]
pop edi
pop esi
pop ebp
mov dword [ecx], eax
mov eax, ecx
pop ebx
add esp, 0x14
ret 0xc
mov ecx, dword [esp + 0x28]
pop edi
pop esi
mov eax, 2
pop ebp
mov dword [ecx], eax
mov eax, ecx
pop ebx
add esp, 0x14
ret 0xc
mov eax, dword [esp + 0x28]
pop edi
pop esi
pop ebp
mov dword [eax], ecx
pop ebx
add esp, 0x14
ret 0xc