Function at 0x10022260
Capabilities:
Allocate or change rwx memory
Encode data using xor
Execute shellcode via indirect call

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x1008d236
mov eax, dword fs:[0]
push eax
sub esp, 0x80
mov eax, dword [0x100a4040]
xor eax, ebp
mov dword [ebp - 0x10], eax
push esi
push edi
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov eax, dword [0x100bfbe0]
cmp byte [eax], 0
je 0x100222d3
mov ecx, dword [0x100bea1c]
push str.sv_skyname
mov eax, dword [ecx]
mov eax, dword [eax + 0x44]
call eax
push dword [0x100bfc04]
lea ecx, [eax + 0x18]
mov eax, dword [ecx]
call dword [eax + 0xc]
mov ecx, dword [0x100bea1c]
push str.r_3dsky
mov eax, dword [ecx]
mov eax, dword [eax + 0x44]
call eax
push 0
lea ecx, [eax + 0x18]
mov eax, dword [ecx]
call dword [eax + 4]
mov eax, dword [0x100bfb08]
cmp byte [eax], 0
je 0x100228e3
movss xmm1, dword [0x1009a1b4]
mov ecx, str.fog_enable
call fcn.10076240
movss xmm1, dword [0x1009a1b4]
mov ecx, str.fog_enableskybox
call fcn.10076240
movss xmm1, dword [0x1009a1b4]
mov ecx, str.fog_override
call fcn.10076240
mov ecx, dword [0x100bea1c]
push str.fog_color
mov eax, dword [ecx]
mov eax, dword [eax + 0x44]
call eax
mov edi, eax
lea ecx, [ebp - 0x34]
push 0
xorps xmm0, xmm0
push 0x10091711
mov eax, dword [edi + 0x18]
movups xmmword [ebp - 0x34], xmm0
mov dword [ebp - 0x24], 0
mov dword [ebp - 0x20], 0
mov eax, dword [eax + 0xc]
mov dword [ebp - 0x18], eax
call fcn.1000bcd0
mov dword [ebp - 4], 0
lea ecx, [ebp - 0x4c]
mov eax, dword [0x100bfb2c]
movss xmm1, dword [eax]
mulss xmm1, dword [0x1009a300]
call fcn.1000d230
push eax
lea ecx, [ebp - 0x34]
mov byte [ebp - 4], 1
call fcn.100259c0
mov esi, eax
mov edx, dword [esi + 0x14]
mov eax, edx
mov ecx, dword [esi + 0x10]
sub eax, ecx
cmp eax, 1
jb 0x100223ad
lea eax, [ecx + 1]
mov dword [esi + 0x10], eax
mov eax, esi
cmp edx, 0xf
jbe 0x100223a5
mov eax, dword [esi]
mov word [eax + ecx], 0x20
jmp 0x100223c6
push 1
push 0x100977a8
mov byte [ebp - 0x14], 0
mov ecx, esi
push dword [ebp - 0x14]
push 1
call fcn.10026d90
mov esi, eax
mov ecx, dword [0x100bfb2c]
movss xmm1, dword [ecx + 4]
lea ecx, [ebp - 0x88]
mulss xmm1, dword [0x1009a300]
call fcn.1000d230
push eax
mov ecx, esi
mov byte [ebp - 4], 2
call fcn.100259c0
mov esi, eax
mov edx, dword [esi + 0x14]
mov eax, edx
mov ecx, dword [esi + 0x10]
sub eax, ecx
cmp eax, 1
jb 0x10022418
lea eax, [ecx + 1]
mov dword [esi + 0x10], eax
mov eax, esi
cmp edx, 0xf
jbe 0x10022410
mov eax, dword [esi]
mov word [eax + ecx], 0x20
jmp 0x10022431
push 1
push 0x100977a8
mov byte [ebp - 0x14], 0
mov ecx, esi
push dword [ebp - 0x14]
push 1
call fcn.10026d90
mov esi, eax
mov ecx, dword [0x100bfb2c]
movss xmm1, dword [ecx + 8]
lea ecx, [ebp - 0x70]
mulss xmm1, dword [0x1009a300]
call fcn.1000d230
push eax
mov ecx, esi
mov byte [ebp - 4], 3
call fcn.100259c0
mov ecx, eax
mov esi, dword [ecx + 0x14]
mov eax, esi
mov edx, dword [ecx + 0x10]
sub eax, edx
cmp eax, 1
jb 0x10022480
lea eax, [edx + 1]
mov dword [ecx + 0x10], eax
mov eax, ecx
cmp esi, 0xf
jbe 0x10022478
mov eax, dword [ecx]
mov word [eax + edx], 0x20
jmp 0x10022497
push 1
push 0x100977a8
mov byte [ebp - 0x14], 0
push dword [ebp - 0x14]
push 1
call fcn.10026d90
mov ecx, eax
cmp dword [ecx + 0x14], 0xf
jbe 0x1002249f
mov ecx, dword [ecx]
push ecx
lea ecx, [edi + 0x18]
call dword [ebp - 0x18]
mov byte [ebp - 4], 2
mov ecx, dword [ebp - 0x5c]
cmp ecx, 0xf
jbe 0x100224de
mov edx, dword [ebp - 0x70]
inc ecx
mov eax, edx
cmp ecx, 0x1000
jb 0x100224d4
mov edx, dword [eax - 4]
add ecx, 0x23
sub eax, edx
add eax, 0xfffffffc
cmp eax, 0x1f
ja 0x100225b3
push ecx
push edx
call fcn.1008a5c0
add esp, 8
mov byte [ebp - 4], 1
mov ecx, dword [ebp - 0x74]
mov dword [ebp - 0x60], 0
mov dword [ebp - 0x5c], 0xf
mov byte [ebp - 0x70], 0
cmp ecx, 0xf
jbe 0x1002252b
mov edx, dword [ebp - 0x88]
inc ecx
mov eax, edx
cmp ecx, 0x1000
jb 0x10022521
mov edx, dword [eax - 4]
add ecx, 0x23
sub eax, edx
add eax, 0xfffffffc
cmp eax, 0x1f
ja 0x100225b3
push ecx
push edx
call fcn.1008a5c0
add esp, 8
mov byte [ebp - 4], 0
mov ecx, dword [ebp - 0x38]
mov dword [ebp - 0x78], 0
mov dword [ebp - 0x74], 0xf
mov byte [ebp - 0x88], 0
cmp ecx, 0xf
jbe 0x10022574
mov edx, dword [ebp - 0x4c]
inc ecx
mov eax, edx
cmp ecx, 0x1000
jb 0x1002256a
mov edx, dword [eax - 4]
add ecx, 0x23
sub eax, edx
add eax, 0xfffffffc
cmp eax, 0x1f
ja 0x100225b3
push ecx
push edx
call fcn.1008a5c0
add esp, 8
mov dword [ebp - 4], 0xffffffff
mov ecx, dword [ebp - 0x20]
mov dword [ebp - 0x3c], 0
mov dword [ebp - 0x38], 0xf
mov byte [ebp - 0x4c], 0
cmp ecx, 0xf
jbe 0x100225c3
mov edx, dword [ebp - 0x34]
inc ecx
mov eax, edx
cmp ecx, 0x1000
jb 0x100225b9
mov edx, dword [eax - 4]
add ecx, 0x23
sub eax, edx
add eax, 0xfffffffc
cmp eax, 0x1f
jbe 0x100225b9
call dword [sym.imp.api_ms_win_crt_runtime_l1_1_0.dll__invalid_parameter_noinfo_noreturn]
push ecx
push edx
call fcn.1008a5c0
add esp, 8
mov ecx, dword [0x100bea1c]
push str.fog_colorskybox
mov eax, dword [ecx]
mov eax, dword [eax + 0x44]
call eax
mov edi, eax
lea ecx, [ebp - 0x34]
push 0
xorps xmm0, xmm0
push 0x10091711
mov eax, dword [edi + 0x18]
movups xmmword [ebp - 0x34], xmm0
mov dword [ebp - 0x24], 0
mov dword [ebp - 0x20], 0
mov eax, dword [eax + 0xc]
mov dword [ebp - 0x18], eax
call fcn.1000bcd0
mov dword [ebp - 4], 4
lea ecx, [ebp - 0x70]
mov eax, dword [0x100bfb2c]
movss xmm1, dword [eax]
mulss xmm1, dword [0x1009a300]
call fcn.1000d230
push eax
lea ecx, [ebp - 0x34]
mov byte [ebp - 4], 5
call fcn.100259c0
mov esi, eax
mov edx, dword [esi + 0x14]
mov eax, edx
mov ecx, dword [esi + 0x10]
sub eax, ecx
cmp eax, 1
jb 0x10022659
lea eax, [ecx + 1]
mov dword [esi + 0x10], eax
mov eax, esi
cmp edx, 0xf
jbe 0x10022651
mov eax, dword [esi]
mov word [eax + ecx], 0x20
jmp 0x10022672
push 1
push 0x100977a8
mov byte [ebp - 0x14], 0
mov ecx, esi
push dword [ebp - 0x14]
push 1
call fcn.10026d90
mov esi, eax
mov ecx, dword [0x100bfb2c]
movss xmm1, dword [ecx + 4]
lea ecx, [ebp - 0x88]
mulss xmm1, dword [0x1009a300]
call fcn.1000d230
push eax
mov ecx, esi
mov byte [ebp - 4], 6
call fcn.100259c0
mov esi, eax
mov edx, dword [esi + 0x14]
mov eax, edx
mov ecx, dword [esi + 0x10]
sub eax, ecx
cmp eax, 1
jb 0x100226c4
lea eax, [ecx + 1]
mov dword [esi + 0x10], eax
mov eax, esi
cmp edx, 0xf
jbe 0x100226bc
mov eax, dword [esi]
mov word [eax + ecx], 0x20
jmp 0x100226dd
push 1
push 0x100977a8
mov byte [ebp - 0x14], 0
mov ecx, esi
push dword [ebp - 0x14]
push 1
call fcn.10026d90
mov esi, eax
mov ecx, dword [0x100bfb2c]
movss xmm1, dword [ecx + 8]
lea ecx, [ebp - 0x4c]
mulss xmm1, dword [0x1009a300]
call fcn.1000d230
push eax
mov ecx, esi
mov byte [ebp - 4], 7
call fcn.100259c0
mov ecx, eax
mov esi, dword [ecx + 0x14]
mov eax, esi
mov edx, dword [ecx + 0x10]
sub eax, edx
cmp eax, 1
jb 0x1002272c
lea eax, [edx + 1]
mov dword [ecx + 0x10], eax
mov eax, ecx
cmp esi, 0xf
jbe 0x10022724
mov eax, dword [ecx]
mov word [eax + edx], 0x20
jmp 0x10022743
push 1
push 0x100977a8
mov byte [ebp - 0x14], 0
push dword [ebp - 0x14]
push 1
call fcn.10026d90
mov ecx, eax
cmp dword [ecx + 0x14], 0xf
jbe 0x1002274b
mov ecx, dword [ecx]
push ecx
lea ecx, [edi + 0x18]
call dword [ebp - 0x18]
mov byte [ebp - 4], 6
mov ecx, dword [ebp - 0x38]
cmp ecx, 0xf
jbe 0x1002278a
mov edx, dword [ebp - 0x4c]
inc ecx
mov eax, edx
cmp ecx, 0x1000
jb 0x10022780
mov edx, dword [eax - 4]
add ecx, 0x23
sub eax, edx
add eax, 0xfffffffc
cmp eax, 0x1f
ja 0x1002285f
push ecx
push edx
call fcn.1008a5c0
add esp, 8
mov byte [ebp - 4], 5
mov ecx, dword [ebp - 0x74]
mov dword [ebp - 0x3c], 0
mov dword [ebp - 0x38], 0xf
mov byte [ebp - 0x4c], 0
cmp ecx, 0xf
jbe 0x100227d7
mov edx, dword [ebp - 0x88]
inc ecx
mov eax, edx
cmp ecx, 0x1000
jb 0x100227cd
mov edx, dword [eax - 4]
add ecx, 0x23
sub eax, edx
add eax, 0xfffffffc
cmp eax, 0x1f
ja 0x1002285f
push ecx
push edx
call fcn.1008a5c0
add esp, 8
mov byte [ebp - 4], 4
mov ecx, dword [ebp - 0x5c]
mov dword [ebp - 0x78], 0
mov dword [ebp - 0x74], 0xf
mov byte [ebp - 0x88], 0
cmp ecx, 0xf
jbe 0x10022820
mov edx, dword [ebp - 0x70]
inc ecx
mov eax, edx
cmp ecx, 0x1000
jb 0x10022816
mov edx, dword [eax - 4]
add ecx, 0x23
sub eax, edx
add eax, 0xfffffffc
cmp eax, 0x1f
ja 0x1002285f
push ecx
push edx
call fcn.1008a5c0
add esp, 8
mov dword [ebp - 4], 0xffffffff
mov ecx, dword [ebp - 0x20]
mov dword [ebp - 0x60], 0
mov dword [ebp - 0x5c], 0xf
mov byte [ebp - 0x70], 0
cmp ecx, 0xf
jbe 0x1002286f
mov edx, dword [ebp - 0x34]
inc ecx
mov eax, edx
cmp ecx, 0x1000
jb 0x10022865
mov edx, dword [eax - 4]
add ecx, 0x23
sub eax, edx
add eax, 0xfffffffc
cmp eax, 0x1f
jbe 0x10022865
call dword [sym.imp.api_ms_win_crt_runtime_l1_1_0.dll__invalid_parameter_noinfo_noreturn]
push ecx
push edx
call fcn.1008a5c0
add esp, 8
mov eax, dword [0x100bfb50]
mov ecx, str.fog_maxdensity
movss xmm1, dword [eax]
call fcn.10076240
mov eax, dword [0x100bfb50]
mov ecx, str.fog_maxdensityskybox
movss xmm1, dword [eax]
call fcn.10076240
mov eax, dword [0x100bfb74]
mov ecx, str.fog_start
movss xmm1, dword [eax]
call fcn.10076240
mov eax, dword [0x100bfb74]
mov ecx, str.fog_startskybox
movss xmm1, dword [eax]
call fcn.10076240
mov eax, dword [0x100bfb98]
mov ecx, str.fog_end
movss xmm1, dword [eax]
call fcn.10076240
mov eax, dword [0x100bfb98]
mov ecx, str.fog_endskybox
movss xmm1, dword [eax]
call fcn.10076240
jmp 0x100228ff
mov ecx, dword [0x100bea1c]
push str.fog_override
mov eax, dword [ecx]
mov eax, dword [eax + 0x44]
call eax
push 0
lea ecx, [eax + 0x18]
mov eax, dword [ecx]
call dword [eax + 4]
mov ecx, dword [0x100bea1c]
push str.r_rainlength
mov eax, dword [ecx]
mov eax, dword [eax + 0x44]
call eax
lea ecx, [eax + 0x18]
mov eax, dword [ecx]
push ecx
mov edx, dword [eax + 8]
mov eax, dword [0x100bfcb8]
movss xmm0, dword [eax]
movss dword [esp], xmm0
call edx
mov ecx, dword [0x100bea1c]
push str.r_rainspeed
mov eax, dword [ecx]
mov eax, dword [eax + 0x44]
call eax
lea ecx, [eax + 0x18]
mov eax, dword [ecx]
push ecx
mov edx, dword [eax + 8]
mov eax, dword [0x100bfd48]
movss xmm0, dword [eax]
movss dword [esp], xmm0
call edx
mov ecx, dword [0x100bea1c]
push str.r_rainradius
mov eax, dword [ecx]
mov eax, dword [eax + 0x44]
call eax
lea ecx, [eax + 0x18]
mov eax, dword [ecx]
push ecx
mov edx, dword [eax + 8]
mov eax, dword [0x100bfd24]
movss xmm0, dword [eax]
movss dword [esp], xmm0
call edx
mov ecx, dword [0x100bea1c]
push str.cl_windspeed
mov eax, dword [ecx]
mov eax, dword [eax + 0x44]
call eax
lea ecx, [eax + 0x18]
mov eax, dword [ecx]
push ecx
mov edx, dword [eax + 8]
mov eax, dword [0x100bfc70]
movss xmm0, dword [eax]
movss dword [esp], xmm0
call edx
mov ecx, dword [0x100bea1c]
push str.r_rainwidth
mov eax, dword [ecx]
mov eax, dword [eax + 0x44]
call eax
lea ecx, [eax + 0x18]
mov eax, dword [ecx]
push ecx
mov edx, dword [eax + 8]
mov eax, dword [0x100bfcdc]
movss xmm0, dword [eax]
movss dword [esp], xmm0
call edx
mov ecx, dword [0x100bea1c]
push str.r_RainSideVel
mov eax, dword [ecx]
mov eax, dword [eax + 0x44]
call eax
lea ecx, [eax + 0x18]
mov eax, dword [ecx]
push ecx
mov edx, dword [eax + 8]
mov eax, dword [0x100bfd00]
movss xmm0, dword [eax]
movss dword [esp], xmm0
call edx
mov ecx, dword [0x100bea1c]
mov eax, dword [ecx]
mov eax, dword [eax + 0x44]
push str.r_rainalpha
call eax
lea ecx, [eax + 0x18]
mov eax, dword [ecx]
push ecx
mov edx, dword [eax + 8]
mov eax, dword [0x100bfc94]
movss xmm0, dword [eax]
movss dword [esp], xmm0
call edx
mov eax, dword [0x100bfbbc]
mov ecx, str.mat_force_tonemap_scale
movss xmm1, dword [eax]
call fcn.10076240
mov eax, dword [0x100c0408]
mov ecx, str.r_aspectratio
movss xmm1, dword [eax]
call fcn.10076240
mov ecx, dword [0x100bea1c]
push str.mat_postprocess_enable
mov eax, dword [ecx]
mov eax, dword [eax + 0x44]
call eax
xor edx, edx
lea ecx, [eax + 0x18]
mov eax, dword [ecx]
mov esi, dword [eax + 4]
mov eax, dword [0x100c027c]
cmp byte [eax], dl
sete dl
push edx
call esi
mov ecx, dword [0x100bea1c]
push str.cl_csm_enabled
mov eax, dword [ecx]
mov eax, dword [eax + 0x44]
call eax
xor edx, edx
lea ecx, [eax + 0x18]
mov eax, dword [ecx]
mov esi, dword [eax + 4]
mov eax, dword [0x100c042c]
cmp byte [eax], dl
sete dl
push edx
call esi
mov ecx, dword [0x100bea1c]
push str.cl_ragdoll_gravity
mov eax, dword [ecx]
mov eax, dword [eax + 0x44]
call eax
lea ecx, [eax + 0x18]
mov eax, dword [ecx]
push ecx
mov edx, dword [eax + 8]
mov eax, dword [0x100c0450]
movss xmm0, dword [eax]
movss dword [esp], xmm0
call edx
mov eax, dword [0x100c0474]
mov ecx, str.cl_phys_timescale
movss xmm1, dword [eax]
call fcn.10076240
mov eax, dword [0x100c02c4]
mov ecx, str.viewmodel_fov
movss xmm1, dword [eax]
call fcn.10076240
mov eax, dword [0x100c02e8]
mov ecx, str.viewmodel_offset_x
movss xmm1, dword [eax]
call fcn.10076240
mov eax, dword [0x100c030c]
mov ecx, str.viewmodel_offset_y
movss xmm1, dword [eax]
call fcn.10076240
mov eax, dword [0x100c0330]
mov ecx, str.viewmodel_offset_z
movss xmm1, dword [eax]
call fcn.10076240
mov eax, dword [0x100c03e4]
cmp byte [eax], 0
je 0x10022b86
xorps xmm1, xmm1
mov ecx, str.cl_viewmodel_shift_left_amt
call fcn.10076240
xorps xmm1, xmm1
mov ecx, str.cl_viewmodel_shift_right_amt
call fcn.10076240
xorps xmm1, xmm1
mov ecx, str.cl_bob_lower_amt
call fcn.10076240
xorps xmm1, xmm1
mov ecx, str.cl_bobamt_lat
call fcn.10076240
xorps xmm1, xmm1
mov ecx, str.cl_bobamt_vert
call fcn.10076240
xorps xmm1, xmm1
mov ecx, str.cl_wpn_sway_scale
call fcn.10076240
mov eax, dword [0x100c0498]
mov ecx, str.mat_fullbright
movd xmm1, dword [eax]
cvtdq2ps xmm1, xmm1
call fcn.10076240
mov eax, dword [0x100c04bc]
mov ecx, str.mat_drawgray
movzx eax, byte [eax]
movd xmm1, eax
cvtdq2ps xmm1, xmm1
call fcn.10076240
mov eax, dword [0x100c04e0]
mov ecx, str.mat_showlowresimage
movzx eax, byte [eax]
movd xmm1, eax
cvtdq2ps xmm1, xmm1
call fcn.10076240
mov eax, dword [0x100c06fc]
cmp byte [eax], 0
je 0x10022be5
xorps xmm1, xmm1
mov ecx, str.view_recoil_tracking
call fcn.10076240
mov eax, dword [0x100c0744]
mov edi, dword [sym.imp.KERNEL32.dll_VirtualProtect]
cmp byte [eax], 0
je 0x10022c2e
lea eax, [ebp - 0x14]
mov dword [ebp - 0x14], 0
push eax
push 0x40
push 2
push dword [0x100beae8]
call edi
mov ecx, dword [0x100beae8]
push 0
mov word [ebp - 0x18], 0x9090
mov ax, word [ebp - 0x18]
mov word [ecx], ax
push dword [ebp - 0x14]
push 2
push dword [0x100beae8]
call edi
mov eax, dword [0x100c081c]
cmp byte [eax], 0
je 0x10022d8b
movaps xmm0, xmmword [0x1009a8a0]
xor ecx, ecx
movups xmmword [ebp - 0x58], xmm0
mov dword [ebp - 0x38], 0x303553
movaps xmm0, xmmword [0x1009a8d0]
movups xmmword [ebp - 0x48], xmm0
nop dword [eax + eax]
mov al, byte [ebp - 0x58]
xor byte [ebp + ecx - 0x57], al
inc ecx
cmp ecx, 0x22
jb 0x10022c60
sub esp, 0x18
mov byte [ebp - 0x35], 0
mov edx, esp
mov dword [ebp - 0x8c], esp
xorps xmm0, xmm0
lea ecx, [ebp - 0x57]
lea esi, [ecx + 1]
movups xmmword [edx], xmm0
mov dword [edx + 0x10], 0
mov dword [edx + 0x14], 0
mov al, byte [ecx]
inc ecx
test al, al
jne 0x10022c96
sub ecx, esi
lea eax, [ebp - 0x57]
push ecx
push eax
mov ecx, edx
call fcn.1000bcd0
mov dword [ebp - 4], 8
mov cl, 0x67
mov al, 0x6c
mov byte [ebp - 0x28], 9
mov dh, al
mov byte [ebp - 0x19], 0x27
xor al, byte [ebp - 0x28]
mov ch, cl
xor cl, byte [ebp - 0x28]
mov dl, 0x6e
mov byte [ebp - 0x27], al
mov ah, 0x60
mov al, byte [ebp - 0x19]
xorps xmm0, xmm0
mov byte [ebp - 0x26], cl
mov cl, byte [ebp - 0x28]
xor al, cl
mov byte [ebp - 0x1a], 0x6d
mov byte [ebp - 0x21], al
xor dl, cl
mov al, byte [ebp - 0x1a]
xor dh, cl
xor al, cl
mov byte [ebp - 0x1b], 0x65
mov byte [ebp - 0x20], al
xor ah, cl
mov al, byte [ebp - 0x1b]
xor ch, cl
xor al, cl
mov byte [ebp - 0x15], 0x65
mov byte [ebp - 0x1f], al
mov al, byte [ebp - 0x15]
xor al, cl
mov byte [ebp - 0x25], dl
sub esp, 0x18
mov byte [ebp - 0x22], dh
mov edx, esp
mov byte [ebp - 0x23], ch
lea ecx, [ebp - 0x27]
mov byte [ebp - 0x1d], 0
mov byte [ebp - 0x24], ah
lea esi, [ecx + 1]
mov byte [ebp - 0x1e], al
movups xmmword [edx], xmm0
mov byte [ebp - 0x1d], 0
mov dword [edx + 0x10], 0
mov dword [edx + 0x14], 0
nop dword [eax]
mov al, byte [ecx]
inc ecx
test al, al
jne 0x10022d40
sub ecx, esi
lea eax, [ebp - 0x27]
push ecx
push eax
mov ecx, edx
call fcn.1000bcd0
mov dword [ebp - 4], 0xffffffff
call fcn.1007a170
add esp, 0x30
mov dword [ebp - 0x14], 0
lea esi, [eax + 1]
lea eax, [ebp - 0x14]
push eax
push 0x40
push 4
push esi
call edi
lea eax, [ebp - 0x14]
mov dword [esi], 0x3e
push eax
push dword [ebp - 0x14]
push 4
push esi
call edi
mov cl, 1
call fcn.10016ed0
mov eax, dword [0x100c078c]
cmp byte [eax], 0
je 0x10022da3
mov cl, 1
call fcn.10016df0
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
mov ecx, dword [ebp - 0x10]
xor ecx, ebp
call fcn.1008a073
mov esp, ebp
pop ebp
ret