Function at 0x1001b5f0
Capabilities:
Encode data using xor
Resolve function by parsing pe exports

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x4c
mov eax, dword [0x100a23c0]
xor eax, ebp
mov dword [ebp - 4], eax
push ebx
mov ebx, dword [0x100a28d8]
push esi
mov esi, ebx
mov dword [ebp - 0x30], ebx
push edi
mov edi, ecx
mov dword [ebp - 0x38], esi
mov eax, dword [esi + 0x3ea0]
mov dword [edi + 0x84], eax
mov al, byte [edi + 0xa0]
and al, 0xfb
mov dword [edi + 0x7c], 0
cmp dword [edi + 0x18], 0
mov byte [edi + 0xa0], al
mov dword [edi + 0x78], 0
jne 0x1001b71e
call fcn.1001b310
xorps xmm0, xmm0
mov dword [ebp - 0x1c], 0
lea edx, [ebp - 0x24]
movq qword [ebp - 0x24], xmm0
mov ecx, edi
call fcn.1001b2b0
mov ecx, dword [ebp - 0x1c]
xor eax, eax
mov esi, dword [ebp - 0x20]
cmp ecx, 1
mov edx, dword [ebp - 0x24]
cmove eax, esi
mov dword [edi + 0x78], edx
cmp dword [edi + 0x90], 0
mov dword [edi + 0x7c], eax
mov dword [edi + 0x80], ecx
jne 0x1001b695
test esi, esi
je 0x1001b700
mov eax, dword [esi]
mov dword [edi + 0x90], eax
test esi, esi
je 0x1001b700
mov eax, dword [esi + 0x2c]
mov ecx, 1
mov eax, dword [eax]
movups xmm0, xmmword [eax + 0x10]
movups xmmword [edi + 0x50], xmm0
movq xmm0, qword [eax + 0x20]
movq qword [edi + 0x60], xmm0
mov eax, dword [eax + 0x28]
mov dword [edi + 0x68], eax
mov ebx, dword [esi + 0x24]
cmp ebx, ecx
jle 0x1001b700
mov eax, dword [esi + 0x2c]
mov dword [ebp - 0x3c], eax
lea esi, [eax + 4]
nop dword [eax + eax]
mov eax, dword [esi]
cmp byte [eax + 0x29], 0
je 0x1001b6e2
inc ecx
add esi, 4
cmp ecx, ebx
jl 0x1001b6d0
jmp 0x1001b700
mov eax, dword [ebp - 0x3c]
mov eax, dword [eax + ecx*4]
movups xmm0, xmmword [eax + 0x10]
movups xmmword [edi + 0x50], xmm0
movq xmm0, qword [eax + 0x20]
movq qword [edi + 0x60], xmm0
mov eax, dword [eax + 0x28]
mov dword [edi + 0x68], eax
test edx, edx
je 0x1001b712
or byte [edx + 0xa0], 0x20
mov edx, dword [edx + 0x18]
test edx, edx
jne 0x1001b704
mov ebx, dword [0x100a28d8]
mov esi, dword [ebp - 0x38]
mov dword [ebp - 0x30], ebx
cmp dword [edi + 0x30], 0
je 0x1001b73e
mov eax, dword [edi + 0x10]
shr eax, 0xc
test al, 1
je 0x1001b73e
mov ecx, edi
call fcn.1001d9e0
mov ebx, dword [0x100a28d8]
mov dword [ebp - 0x30], ebx
mov edx, dword [edi + 0x18]
xor al, al
mov byte [ebp - 0x29], al
test edx, edx
jne 0x1001b90b
test dword [edi + 0x10], 0x400
jne 0x1001b90b
mov ecx, dword [edi + 0x24]
cmp ecx, 1
jg 0x1001b782
cmp dword [edi + 0x1c], edx
jne 0x1001b782
cmp byte [esi + 0x5a], dl
jne 0x1001b782
test ecx, ecx
je 0x1001b77b
mov eax, dword [edi + 0x2c]
mov eax, dword [eax]
cmp byte [eax + 0x28], dl
jne 0x1001b77f
mov al, 1
jmp 0x1001b782
mov al, byte [ebp - 0x29]
cmp dword [edi + 0x80], 0
je 0x1001b793
test al, al
je 0x1001b90b
cmp ecx, 1
jne 0x1001b826
mov eax, dword [edi + 0x2c]
mov esi, dword [eax]
mov eax, dword [esi + 0x40]
mov ecx, dword [esi + 0x44]
mov dword [edi + 0x34], eax
mov dword [edi + 0x38], ecx
mov eax, dword [esi + 0x50]
mov ecx, dword [esi + 0x54]
mov dword [edi + 0x3c], eax
mov eax, dword [edi + 0x9c]
and eax, 0xfffffebf
mov dword [edi + 0x40], ecx
or eax, 0x80
and eax, 0xffffffd7
or eax, 0x10
and eax, 0xfffffffa
or eax, 2
mov dword [edi + 0x9c], eax
mov eax, dword [edi + 0x70]
test eax, eax
je 0x1001b7fa
mov ecx, dword [ebp - 0x38]
cmp dword [ecx + 0x4120], eax
jne 0x1001b7fa
mov ecx, esi
call fcn.100107f0
mov ebx, dword [0x100a28d8]
mov eax, dword [edi + 0x70]
test eax, eax
je 0x1001b826
mov ecx, dword [eax + 0x2c]
mov dword [esi + 0x2c], ecx
mov eax, dword [edi + 0x70]
mov eax, dword [eax + 0x30]
mov dword [esi + 0x30], eax
mov eax, dword [edi + 0x70]
cmp byte [eax + 0xc2], 0
je 0x1001b826
mov dword [ecx + 0x6c], esi
mov byte [esi + 0xc2], 1
mov eax, dword [edi + 0x70]
test eax, eax
je 0x1001b846
cmp dword [eax + 0x38c], edi
jne 0x1001b83f
mov dword [eax + 0x38c], 0
mov dword [edi + 0x70], 0
cmp dword [edi + 0x24], 1
jne 0x1001b85d
mov ecx, dword [edi + 0x2c]
mov eax, dword [ecx]
mov dword [edi + 0x74], eax
mov eax, dword [ecx]
and byte [eax + 0x36d], 0xfe
cmp dword [edi + 0x30], 0
je 0x1001b870
mov ecx, edi
call fcn.1001d9e0
mov ebx, dword [0x100a28d8]
mov al, byte [edi + 0xa0]
and al, 0xbf
mov dword [edi + 0x14], 1
and al, 0xe7
mov dword [edi + 0x98], 0
test byte [edi + 0xa1], 1
mov byte [edi + 0xa0], al
mov eax, dword [ebp - 0x38]
mov eax, dword [eax + 0x3ea0]
mov dword [edi + 0x88], eax
je 0x1001c219
cmp dword [edi + 0x24], 1
jne 0x1001c219
mov eax, dword [edi + 0x2c]
mov esi, dword [eax]
mov ecx, esi
call fcn.100060f0
movss xmm1, dword [ebx + 0x3628]
movss xmm0, dword [ebx + 0x362c]
subss xmm1, dword [edi + 0x34]
subss xmm0, dword [edi + 0x38]
mov dword [ebx + 0x3f14], esi
movss dword [ebx + 0x3f70], xmm1
movss dword [ebx + 0x3f74], xmm0
and byte [edi + 0xa1], 0xfe
pop edi
pop esi
pop ebx
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.1008ad82
mov esp, ebp
pop ebp
ret
test byte [edi + 0xa0], 1
je 0x1001b993
cmp dword [edi + 0x70], 0
jne 0x1001b993
test edx, edx
jne 0x1001b993
test dword [edi + 0x10], 0x400
jne 0x1001b993
cmp dword [edi + 0x1c], edx
jne 0x1001b993
cmp dword [edi + 0x94], edx
je 0x1001b964
mov esi, dword [edi + 0x24]
xor ecx, ecx
test esi, esi
jle 0x1001b964
mov edx, dword [edi + 0x2c]
mov eax, dword [edx]
mov ebx, dword [edi + 0x94]
cmp dword [eax + 4], ebx
mov ebx, dword [ebp - 0x30]
je 0x1001b95a
inc ecx
add edx, 4
cmp ecx, esi
jl 0x1001b940
jmp 0x1001b964
mov eax, dword [edi + 0x2c]
mov eax, dword [eax + ecx*4]
test eax, eax
jne 0x1001b969
mov eax, dword [edi + 0x2c]
mov eax, dword [eax]
cmp byte [eax + 0xdc], 0
jg 0x1001b97b
cmp byte [eax + 0xdd], 0
jle 0x1001b993
mov dword [edi + 0x14], 2
pop edi
pop esi
pop ebx
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.1008ad82
mov esp, ebp
pop ebp
ret
mov esi, dword [edi + 0x24]
mov ecx, dword [edi + 0x10]
mov dword [ebp - 0x34], ecx
mov dword [ebp - 0x3c], esi
test esi, esi
jle 0x1001b9c1
test ecx, 0x4000
jne 0x1001b9c1
mov al, byte [edi + 0xa0]
mov cl, 0x10
and al, 0xef
or al, cl
and al, 0xf7
mov byte [edi + 0xa0], al
jmp 0x1001b9d9
mov al, byte [edi + 0xa0]
xor dl, dl
and al, 0xef
or al, dl
and al, 0xf7
mov byte [edi + 0xa0], al
test esi, esi
jle 0x1001ba2b
xor ebx, ebx
nop dword [eax + eax]
mov eax, dword [edi + 0x2c]
mov cl, byte [edi + 0xa0]
mov edx, dword [eax + ebx*4]
mov al, byte [edx + 0xcd]
shl al, 3
or al, cl
and cl, 0xf7
and al, 8
xor al, cl
cmp esi, 1
mov byte [edi + 0xa0], al
mov al, byte [edx + 0x36d]
setg cl
and al, 0xfe
inc ebx
or cl, al
mov byte [edx + 0x36d], cl
mov esi, dword [edi + 0x24]
cmp ebx, esi
jl 0x1001b9e0
mov ecx, dword [edi + 0x10]
mov ebx, dword [ebp - 0x30]
mov dword [ebp - 0x3c], esi
test dword [ebp - 0x34], 0x8000
je 0x1001ba3b
and byte [edi + 0xa0], 0xf7
shr ecx, 0xa
xor esi, esi
mov byte [ebp - 0x29], 0
test cl, 1
je 0x1001ba51
mov esi, dword [edi + 0x70]
jmp 0x1001bd0e
mov eax, dword [edi + 0x18]
test eax, eax
jne 0x1001bca4
test byte [edi + 0xa0], 1
je 0x1001bcb4
cmp dword [ebp - 0x3c], esi
jle 0x1001ba75
mov eax, dword [edi + 0x2c]
mov edx, dword [eax]
jmp 0x1001ba77
xor edx, edx
mov eax, dword [edi + 0x9c]
shl eax, 0x1d
sar eax, 0x1d
cmp eax, 2
jne 0x1001ba9b
test edx, edx
je 0x1001bad5
or dword [ebx + 0x3fec], 1
mov eax, dword [edx + 0x40]
mov ecx, dword [edx + 0x44]
jmp 0x1001baac
cmp eax, 1
jne 0x1001bad5
or dword [ebx + 0x3fec], eax
mov eax, dword [edi + 0x34]
mov ecx, dword [edi + 0x38]
mov byte [ebx + 0x4028], 1
mov dword [ebx + 0x3ff0], 1
mov dword [ebx + 0x400c], esi
mov dword [ebx + 0x4008], esi
mov dword [ebx + 0x4004], ecx
mov dword [ebx + 0x4000], eax
mov eax, dword [edi + 0x9c]
shl eax, 0x1a
sar eax, 0x1d
cmp eax, 2
jne 0x1001baf8
test edx, edx
je 0x1001bb20
or dword [ebx + 0x3fec], eax
mov eax, dword [edx + 0x50]
mov ecx, dword [edx + 0x54]
jmp 0x1001bb0a
cmp eax, 1
jne 0x1001bb20
or dword [ebx + 0x3fec], 2
mov eax, dword [edi + 0x3c]
mov ecx, dword [edi + 0x40]
mov dword [ebx + 0x3ff4], 1
mov dword [ebx + 0x4014], ecx
mov dword [ebx + 0x4010], eax
mov eax, dword [edi + 0x9c]
and al, 0x38
cmp al, 0x10
jne 0x1001bb4d
test edx, edx
je 0x1001bb4d
mov al, byte [edx + 0xc6]
or dword [ebx + 0x3fec], 8
mov byte [ebx + 0x4029], al
mov dword [ebx + 0x3ff8], 1
mov eax, dword [edi + 0x9c]
and eax, 0x1c0
cmp eax, 0x80
jne 0x1001bb76
test edx, edx
je 0x1001bb76
mov eax, dword [edx + 0x30]
or dword [ebx + 0x3fec], 0x100
mov dword [ebx + 0x4048], eax
or dword [ebx + 0x3fec], 0x400
movups xmm0, xmmword [edi + 0x50]
movups xmmword [ebx + 0x4050], xmm0
movq xmm0, qword [edi + 0x60]
movq qword [ebx + 0x4060], xmm0
mov eax, dword [edi + 0x68]
mov dword [ebx + 0x4068], eax
lea eax, [ebp - 0x18]
push dword [edi]
push str.DockNode__02X
push 0x14
push eax
call fcn.100033a0
mov esi, dword [0x100a28d8]
lea eax, [ebp - 0x44]
add esp, 0x10
mov dword [ebp - 0x44], 2
or dword [esi + 0x3fec], 0x40
lea ecx, [esi + 0x4080]
mov dword [esi + 0x4044], 0
movss xmm1, dword [esi + 0x385c]
movss xmm0, dword [esi + 0x3860]
push eax
movss dword [ebp - 0x40], xmm1
movss dword [ebp - 0x3c], xmm0
call fcn.10022640
push 0x20081139
xor edx, edx
mov dword [esi + 0x385c], 0
lea ecx, [ebp - 0x18]
mov dword [esi + 0x3860], 0
call fcn.1000d5e0
add esp, 4
call fcn.10003ca0
mov eax, dword [ebp - 0x38]
mov byte [ebp - 0x29], 1
mov esi, dword [eax + 0x3f04]
mov eax, dword [edi + 0x70]
test eax, eax
je 0x1001bc52
cmp eax, esi
je 0x1001bc52
cmp dword [eax + 0x38c], edi
jne 0x1001bc52
mov dword [eax + 0x38c], 0
mov dword [esi + 0x38c], edi
mov dword [edi + 0x70], esi
movss xmm0, dword [esi + 0x40]
movss xmm1, dword [esi + 0x44]
movss dword [esi + 0x108], xmm0
movss dword [esi + 0x10c], xmm1
movss dword [edi + 0x34], xmm0
movss dword [edi + 0x38], xmm1
mov ecx, dword [esi + 0x4c]
mov eax, dword [esi + 0x48]
mov dword [edi + 0x40], ecx
mov ecx, dword [edi + 0x70]
mov dword [edi + 0x3c], eax
cmp byte [ecx + 0xc9], 0
je 0x1001bc9c
call fcn.10010770
mov ebx, dword [0x100a28d8]
jmp 0x1001bcaa
mov esi, dword [eax + 0x70]
mov dword [edi + 0x70], esi
and dword [edi + 0x9c], 0xfffffe00
test byte [edi + 0xa1], 1
je 0x1001bd0e
mov eax, dword [edi + 0x70]
mov dword [ebp - 0x3c], eax
test eax, eax
je 0x1001bd0e
mov ecx, eax
call fcn.100060f0
movss xmm1, dword [ebx + 0x3628]
movss xmm0, dword [ebx + 0x362c]
subss xmm1, dword [edi + 0x34]
subss xmm0, dword [edi + 0x38]
mov eax, dword [ebp - 0x3c]
mov dword [ebx + 0x3f14], eax
movss dword [ebx + 0x3f70], xmm1
movss dword [ebx + 0x3f74], xmm0
and byte [edi + 0xa1], 0xfe
mov ebx, dword [0x100a28d8]
mov ecx, dword [edi + 0x18]
test ecx, ecx
jne 0x1001bd4a
mov eax, dword [ebp - 0x38]
mov eax, dword [eax + 0x4120]
test eax, eax
je 0x1001bd4a
mov eax, dword [eax + 0x324]
mov edx, dword [eax + 0x388]
test edx, edx
je 0x1001bd4a
cmp dword [eax + 0x31c], esi
jne 0x1001bd4a
mov eax, dword [edx]
mov edx, dword [edi + 0x78]
mov dword [edi + 0x90], eax
mov dword [ebp - 0x30], edx
jmp 0x1001bd58
mov edx, dword [edi + 0x78]
mov dword [ebp - 0x30], edx
test ecx, ecx
jne 0x1001bf09
test esi, esi
je 0x1001bf09
test byte [ebp - 0x34], 8
je 0x1001bf09
test edx, edx
je 0x1001bf09
cmp dword [edx + 0x1c], 0
jne 0x1001bf09
cmp dword [edx + 0x24], 0
jne 0x1001bf09
xor ecx, ecx
mov byte [ebp - 0x2a], 1
cmp byte [ebx + 0x4290], cl
lea eax, [ebx + 0x42a0]
cmove eax, ecx
mov dword [ebp - 0x3c], eax
test eax, eax
je 0x1001bdf2
cmp dword [eax + 0x10], 0xffffffff
je 0x1001bdf2
lea ecx, [eax + 0x14]
mov eax, str._IMWINDOW
mov dl, byte [eax]
cmp dl, byte [ecx]
jne 0x1001bdd0
test dl, dl
je 0x1001bdcc
mov dl, byte [eax + 1]
cmp dl, byte [ecx + 1]
jne 0x1001bdd0
add eax, 2
add ecx, 2
test dl, dl
jne 0x1001bdb0
xor eax, eax
jmp 0x1001bdd5
sbb eax, eax
or eax, 1
test eax, eax
jne 0x1001bdef
mov edx, dword [ebp - 0x3c]
mov ecx, esi
mov edx, dword [edx]
mov edx, dword [edx]
call fcn.1001db40
test al, al
jne 0x1001bf0d
mov edx, dword [ebp - 0x30]
mov eax, dword [edx + 0x18]
mov ecx, edx
test eax, eax
je 0x1001be09
nop dword [eax + eax]
mov ecx, eax
mov eax, dword [ecx + 0x18]
test eax, eax
jne 0x1001be00
movss xmm2, dword [edx + 0x34]
comiss xmm2, dword [ecx + 0x34]
movss xmm7, dword [ecx + 0x38]
movaps xmm4, xmm2
movss xmm1, dword [edx + 0x38]
movaps xmm6, xmm7
movss xmm5, dword [ecx + 0x34]
movaps xmm3, xmm1
addss xmm5, dword [ecx + 0x3c]
addss xmm6, dword [ecx + 0x40]
addss xmm4, dword [edx + 0x3c]
addss xmm3, dword [edx + 0x40]
movss xmm0, dword [0x1009efd0]
jbe 0x1001be4c
addss xmm2, xmm0
comiss xmm5, xmm4
jbe 0x1001be55
subss xmm4, xmm0
comiss xmm1, xmm7
jbe 0x1001be5e
addss xmm1, xmm0
comiss xmm6, xmm3
jbe 0x1001be67
subss xmm3, xmm0
comiss xmm2, xmm4
ja 0x1001bf0d
comiss xmm1, xmm3
ja 0x1001bf0d
subss xmm4, xmm2
mov ecx, dword [esi + 0x31c]
subss xmm3, xmm1
movaps xmm0, xmm2
cvttss2si eax, xmm4
mov word [ebp - 0x3c], ax
movzx edx, ax
cvttss2si eax, xmm3
mov word [ebp - 0x3a], ax
movzx ebx, ax
mov eax, dword [ebp - 0x3c]
mov dword [esi + 0x24c], eax
subss xmm0, dword [esi + 0x40]
cvttss2si eax, xmm0
movaps xmm0, xmm1
mov word [ebp - 0x3c], ax
subss xmm0, dword [esi + 0x44]
cvttss2si eax, xmm0
mov word [ebp - 0x3a], ax
mov eax, dword [ebp - 0x3c]
mov dword [esi + 0x250], eax
test ecx, ecx
je 0x1001bf0d
mov word [ebp - 0x3c], dx
mov word [ebp - 0x3a], bx
mov eax, dword [ebp - 0x3c]
mov dword [ecx + 0x24c], eax
subss xmm2, dword [ecx + 0x40]
subss xmm1, dword [ecx + 0x44]
cvttss2si eax, xmm2
mov word [ebp - 0x3c], ax
cvttss2si eax, xmm1
mov word [ebp - 0x3a], ax
mov eax, dword [ebp - 0x3c]
mov dword [ecx + 0x250], eax
jmp 0x1001bf0d
mov byte [ebp - 0x2a], 0
cmp dword [edi + 0x18], 0
jne 0x1001bf4d
test esi, esi
je 0x1001bffc
mov ecx, dword [esi + 0x288]
push 1
push ecx
add ecx, 0x78
call fcn.1002dee0
push dword [esi + 0x4c]
xor edx, edx
mov ecx, edi
push dword [esi + 0x48]
push dword [esi + 0x44]
push dword [esi + 0x40]
call fcn.1001f440
add esp, 0x10
mov ecx, edi
call fcn.1001f7c0
jmp 0x1001bf55
test esi, esi
je 0x1001bffc
cmp dword [edi + 0x1c], 0
jne 0x1001bffc
cmp dword [edi + 0x24], 0
jne 0x1001bffc
test byte [edi + 0xa0], 1
je 0x1001bffc
mov ecx, dword [esi + 0x288]
push 0
push ecx
add ecx, 0x78
call fcn.1002dee0
mov ebx, dword [ebp - 0x34]
test bl, 8
je 0x1001bf9f
or byte [edi + 0xa0], 4
mov dword [edi + 0x6c], 0
jmp 0x1001bfff
movss xmm1, dword [0x1009ef88]
mov ecx, 0x27
call fcn.10003a80
mov dword [edi + 0x6c], eax
test eax, eax
je 0x1001bff3
movss xmm0, dword [edi + 0x3c]
lea ecx, [edi + 0x34]
addss xmm0, dword [ecx]
push 0
push ecx
mov dword [esp], 0
push eax
movss dword [ebp - 0x40], xmm0
lea eax, [ebp - 0x40]
movss xmm0, dword [edi + 0x40]
addss xmm0, dword [ecx + 4]
push eax
push ecx
mov ecx, dword [esi + 0x288]
movss dword [ebp - 0x3c], xmm0
call fcn.1002d4a0
or byte [edi + 0xa0], 4
jmp 0x1001bfff
mov ebx, dword [ebp - 0x34]
test esi, esi
je 0x1001c13b
cmp dword [edi + 0x18], 0
jne 0x1001c119
test bl, 8
je 0x1001c119
test byte [edi + 0xa0], 1
je 0x1001c119
mov ecx, dword [esi + 0x288]
push 0
push ecx
add ecx, 0x78
call fcn.1002dee0
cmp byte [ebp - 0x2a], 0
lea edx, [edi + 0x34]
je 0x1001c0cf
mov eax, dword [ebp - 0x30]
sub esp, 8
movss xmm2, dword [edx]
mov ecx, 2
movss dword [ebp - 0x48], xmm2
addss xmm2, dword [edi + 0x3c]
movss xmm0, dword [eax + 0x38]
movss xmm1, dword [eax + 0x34]
movss dword [ebp - 0x24], xmm0
addss xmm0, dword [eax + 0x40]
movss dword [ebp - 0x28], xmm1
addss xmm1, dword [eax + 0x3c]
movss dword [ebp - 0x40], xmm2
mov dword [esp + 4], 0
movss dword [ebp - 0x1c], xmm0
movss xmm0, dword [edi + 0x38]
movss dword [ebp - 0x44], xmm0
addss xmm0, dword [edi + 0x40]
movss dword [ebp - 0x20], xmm1
movss xmm1, dword [0x1009ef88]
movss dword [ebp - 0x3c], xmm0
call fcn.10003a80
mov ecx, dword [esi + 0x288]
lea edx, [ebp - 0x48]
add esp, 4
push eax
lea eax, [ebp - 0x28]
push eax
call fcn.10031cc0
add esp, 0xc
jmp 0x1001c119
movss xmm0, dword [edx]
addss xmm0, dword [edi + 0x3c]
movss xmm1, dword [0x1009ef88]
push 0
push ecx
mov ecx, 2
mov dword [esp], 0
movss dword [ebp - 0x40], xmm0
movss xmm0, dword [edi + 0x40]
addss xmm0, dword [edx + 4]
movss dword [ebp - 0x3c], xmm0
call fcn.10003a80
mov ecx, dword [esi + 0x288]
push eax
lea eax, [ebp - 0x40]
push eax
push edx
call fcn.1002d4a0
mov ecx, dword [esi + 0x288]
push 1
push ecx
add ecx, 0x78
call fcn.1002dee0
cmp dword [edi + 0x24], 0
jle 0x1001c13b
mov edx, esi
mov ecx, edi
call fcn.1001c450
jmp 0x1001c155
mov al, byte [edi + 0xa0]
and al, 0xbf
mov dword [edi + 0x98], 0
and al, 0xfd
mov byte [edi + 0xa0], al
mov eax, dword [edi + 0x30]
test eax, eax
je 0x1001c163
mov eax, dword [eax + 0x14]
test eax, eax
jne 0x1001c171
cmp dword [edi + 0x24], 0
jle 0x1001c177
mov eax, dword [edi + 0x2c]
mov eax, dword [eax]
mov eax, dword [eax + 4]
mov dword [edi + 0x94], eax
test esi, esi
je 0x1001c1b4
test byte [edi + 0xa0], 1
je 0x1001c1b4
cmp dword [edi + 0x18], 0
jne 0x1001c1b4
mov ebx, dword [ebp - 0x38]
mov eax, dword [ebx + 0x3f14]
test eax, eax
je 0x1001c19f
cmp dword [eax + 0x32c], esi
je 0x1001c1b4
mov ecx, esi
call fcn.100208e0
mov eax, dword [ebx + 0x3ea0]
mov dword [edi + 0x88], eax
jmp 0x1001c1c7
mov eax, dword [ebp - 0x38]
mov eax, dword [eax + 0x3ea0]
mov dword [edi + 0x88], eax
test esi, esi
je 0x1001c20e
mov ecx, dword [edi + 0x1c]
test ecx, ecx
je 0x1001c1d3
call fcn.1001b5f0
mov ecx, dword [edi + 0x20]
test ecx, ecx
je 0x1001c1df
call fcn.1001b5f0
cmp dword [edi + 0x18], 0
jne 0x1001c1fd
mov ecx, dword [esi + 0x288]
push 1
push ecx
add ecx, 0x78
call fcn.1002dee0
mov ecx, esi
call fcn.1000c240
mov ecx, dword [esi + 0x288]
push 0
push ecx
add ecx, 0x78
call fcn.1002dee0
cmp byte [ebp - 0x29], 0
je 0x1001c219
call fcn.10010530
mov ecx, dword [ebp - 4]
pop edi
pop esi
xor ecx, ebp
pop ebx
call fcn.1008ad82
mov esp, ebp
pop ebp
ret