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

Disassembly:
push ebx
mov ebx, esp
sub esp, 8
and esp, 0xfffffff8
add esp, 4
push ebp
mov ebp, dword [ebx + 4]
mov dword [esp + 4], ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x10056f16
mov eax, dword fs:[0]
push eax
push ebx
sub esp, 0x1d0
mov eax, dword [0x1007e0c0]
xor eax, ebp
mov dword [ebp - 0x14], eax
push esi
push edi
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov esi, ecx
mov dword [ebp - 0x154], esi
cmp dword [esi + 0x458], 0
jge 0x10034df1
test byte [esi + 4], 2
lea eax, [ebp - 0x180]
mov dword [ebp - 0x17c], 0xffffffff
lea ecx, [esi + 0x40]
mov dword [ebp - 0x178], 0
mov dword [ebp - 0x174], 0
mov dword [ebp - 0x170], 0
mov dword [ebp - 0x16c], 0
mov dword [ebp - 0x168], 0
push eax
mov dword [ebp - 0x180], 0x1b00d9
je 0x10034de2
mov dword [ebp - 0x180], 0x20002
call fcn.1000e5f0
mov eax, dword [esi + 0x40]
dec eax
mov dword [esi + 0x458], eax
cmp dword [esi + 0x45c], 0
jge 0x10034e5f
test byte [esi + 4], 4
jne 0x10034e5f
lea eax, [ebp - 0x180]
mov dword [ebp - 0x17c], 0xffffffff
push eax
lea ecx, [esi + 0x40]
mov dword [ebp - 0x178], 0
mov dword [ebp - 0x174], 0
mov dword [ebp - 0x170], 0
mov dword [ebp - 0x16c], 0
mov dword [ebp - 0x168], 0
mov dword [ebp - 0x180], 0x400041
call fcn.1000e5f0
mov eax, dword [esi + 0x40]
dec eax
mov dword [esi + 0x45c], eax
mov ecx, dword [esi + 0x14]
mov edx, dword [sym.imp.api_ms_win_crt_heap_l1_1_0.dll_free]
mov dword [esi + 8], 0
mov dword [esi + 0x20], 0
mov dword [esi + 0x1c], 0
mov dword [esi + 0x24], 0
mov dword [esi + 0x28], 0
mov dword [esi + 0x2c], 0
mov dword [esi + 0x30], 0
mov dword [ebp - 0x148], edx
test ecx, ecx
je 0x10034ebe
mov eax, dword [0x1007f11c]
test eax, eax
je 0x10034eb2
dec dword [eax + 0x370]
push ecx
call edx
mov edx, dword [ebp - 0x148]
add esp, 4
mov ecx, dword [esi + 0x18]
test ecx, ecx
je 0x10034eda
mov eax, dword [0x1007f11c]
test eax, eax
je 0x10034ed4
dec dword [eax + 0x370]
push ecx
call edx
add esp, 4
xor eax, eax
mov dword [esi + 0x14], 0
mov dword [esi + 0x18], 0
mov dword [ebp - 0x1c4], 0
mov dword [ebp - 0x15c], eax
mov dword [ebp - 0x1c0], eax
mov dword [ebp - 4], eax
xor edi, edi
mov dword [ebp - 0x19c], eax
mov dword [ebp - 0x158], edi
mov dword [ebp - 0x198], edi
mov byte [ebp - 4], 1
mov ecx, dword [esi + 0x4c]
mov edx, dword [sym.imp.api_ms_win_crt_heap_l1_1_0.dll_malloc]
mov dword [ebp - 0x150], ecx
mov dword [ebp - 0x120], 8
mov dword [ebp - 0x124], edx
test ecx, ecx
jle 0x10034f94
cmp ecx, 8
mov eax, ecx
cmovl eax, dword [ebp - 0x120]
mov dword [ebp - 0x11c], eax
test eax, eax
jle 0x10034f94
mov ecx, dword [0x1007f11c]
test ecx, ecx
je 0x10034f64
inc dword [ecx + 0x370]
imul eax, eax, 0xc4
push eax
call edx
mov ecx, dword [ebp - 0x11c]
add esp, 4
mov edx, dword [ebp - 0x124]
mov dword [ebp - 0x1c4], ecx
mov ecx, dword [ebp - 0x150]
mov dword [ebp - 0x15c], eax
mov dword [ebp - 0x1c0], eax
mov dword [ebp - 0x1c8], ecx
mov ecx, dword [esi + 0x34]
mov dword [ebp - 0x130], ecx
test ecx, ecx
jle 0x10034ff9
cmp ecx, 8
mov eax, ecx
cmovl eax, dword [ebp - 0x120]
mov dword [ebp - 0x11c], eax
test eax, eax
jle 0x10034ff9
mov ecx, dword [0x1007f11c]
test ecx, ecx
je 0x10034fcd
inc dword [ecx + 0x370]
lea eax, [eax + eax*2]
shl eax, 3
push eax
call edx
mov ecx, dword [ebp - 0x130]
mov edi, eax
mov eax, dword [ebp - 0x11c]
add esp, 4
mov dword [ebp - 0x158], edi
mov dword [ebp - 0x198], edi
mov dword [ebp - 0x19c], eax
mov dword [ebp - 0x1a0], ecx
imul ecx, dword [ebp - 0x150], 0xc4
push ecx
push 0
push dword [ebp - 0x15c]
call sub.VCRUNTIME140.dll_memset
mov eax, dword [ebp - 0x130]
add esp, 0xc
lea eax, [eax + eax*2]
shl eax, 3
push eax
push 0
push edi
call sub.VCRUNTIME140.dll_memset
add esp, 0xc
mov dword [ebp - 0x138], 0
cmp dword [esi + 0x4c], 0
jle 0x10035279
mov eax, dword [ebp - 0x15c]
xor edx, edx
add eax, 0xa4
mov dword [ebp - 0x128], edx
mov dword [ebp - 0x140], eax
nop
mov ecx, dword [esi + 0x54]
add ecx, edx
mov dword [eax - 4], 0xffffffff
xor edx, edx
mov dword [ebp - 0x14c], ecx
cmp dword [esi + 0x34], edx
jle 0x100352ec
mov edi, dword [ebp - 0x154]
or esi, 0xffffffff
mov eax, esi
cmp esi, 0xffffffff
jne 0x100350b3
mov eax, dword [ebp - 0x14c]
or esi, esi
mov ecx, dword [edi + 0x3c]
mov eax, dword [eax + 0x74]
cmp eax, dword [ecx + edx*4]
jne 0x100350ab
mov eax, dword [ebp - 0x140]
mov esi, edx
mov dword [eax - 4], edx
inc edx
mov eax, esi
cmp edx, dword [edi + 0x34]
jl 0x10035086
mov edi, dword [ebp - 0x158]
cmp eax, 0xffffffff
je 0x100352ec
mov eax, dword [ebp - 0x14c]
mov esi, dword [eax]
mov ecx, dword [eax + 0xc]
mov dword [ebp - 0x11c], ecx
mov al, byte [esi]
cmp al, 0x31
jne 0x100350df
cmp byte [esi + 1], 0
jmp 0x10035124
cmp al, 0x74
jne 0x10035107
cmp byte [esi + 1], 0x79
jne 0x100350f5
cmp byte [esi + 2], 0x70
jne 0x10035138
cmp byte [esi + 3], 0x31
jmp 0x10035130
cmp byte [esi + 1], 0x72
jne 0x10035138
cmp byte [esi + 2], 0x75
jne 0x10035138
cmp byte [esi + 3], 0x65
jmp 0x10035130
cmp al, 0x4f
jne 0x1003511c
cmp byte [esi + 1], 0x54
jne 0x10035138
cmp byte [esi + 2], 0x54
jne 0x10035138
cmp byte [esi + 3], al
jmp 0x10035130
test al, al
jne 0x10035138
cmp byte [esi + 1], 1
jne 0x10035138
cmp byte [esi + 2], 0
jne 0x10035138
cmp byte [esi + 3], 0
jne 0x10035138
neg ecx
sbb ecx, ecx
jmp 0x100351a6
cmp al, 0x74
jne 0x100351a3
cmp byte [esi + 1], al
jne 0x100351a3
cmp byte [esi + 2], 0x63
jne 0x100351a3
cmp byte [esi + 3], 0x66
jne 0x100351a3
lea ecx, [esi + 4]
call fcn.1003fd00
cmp eax, 0x10000
je 0x1003516b
lea ecx, [esi + 4]
call fcn.1003fd00
cmp eax, 0x20000
jne 0x100351a3
movzx ecx, byte [esi + 8]
movzx eax, byte [esi + 9]
shl ecx, 8
add ecx, eax
movzx eax, byte [esi + 0xa]
shl ecx, 8
add ecx, eax
movzx eax, byte [esi + 0xb]
shl ecx, 8
add ecx, eax
mov eax, dword [ebp - 0x11c]
cmp eax, ecx
jge 0x100351a3
add eax, 3
lea ecx, [esi + eax*4]
call fcn.1003fd00
mov ecx, eax
jmp 0x100351a6
or ecx, 0xffffffff
mov eax, dword [ebp - 0x140]
mov edx, esi
add eax, 0xffffff5c
push ecx
mov ecx, eax
mov dword [ebp - 0x11c], eax
call fcn.1003f430
add esp, 4
test eax, eax
je 0x100352ec
mov eax, dword [ebp - 0x11c]
mov edx, 0x10076888
mov esi, dword [ebp - 0x140]
mov eax, dword [eax + 0xa0]
lea ecx, [eax + eax*2]
mov eax, dword [ebp - 0x14c]
mov dword [ebp - 0x120], ecx
mov eax, dword [eax + 0x30]
test eax, eax
cmovne edx, eax
mov dword [esi - 8], edx
cmp word [edx], 0
je 0x10035224
movzx eax, word [edx + 2]
test ax, ax
je 0x1003521e
mov ecx, eax
cmp dword [esi], ecx
cmovge ecx, dword [esi]
add edx, 4
mov dword [esi], ecx
cmp word [edx], 0
jne 0x10035203
mov ecx, dword [ebp - 0x120]
mov edx, dword [ebp - 0x120]
inc dword [edi + ecx*8]
mov ecx, dword [esi]
mov eax, dword [ebp - 0x138]
cmp dword [edi + edx*8 + 4], ecx
cmovge ecx, dword [edi + edx*8 + 4]
add esi, 0xc4
mov dword [ebp - 0x140], esi
inc eax
mov esi, dword [ebp - 0x154]
mov dword [edi + edx*8 + 4], ecx
mov edx, dword [ebp - 0x128]
add edx, 0x78
mov dword [ebp - 0x138], eax
cmp eax, dword [esi + 0x4c]
mov eax, dword [ebp - 0x140]
mov dword [ebp - 0x128], edx
jl 0x10035060
mov eax, dword [ebp - 0x150]
xor esi, esi
mov dword [ebp - 0x140], esi
test eax, eax
jle 0x100356a4
mov edx, dword [ebp - 0x15c]
add edx, 0xa8
mov dword [ebp - 0x128], eax
mov dword [ebp - 0x12c], edx
mov eax, dword [edx - 8]
mov ecx, dword [edx - 4]
add ecx, 0x20
sar ecx, 5
lea esi, [eax + eax*2]
mov dword [ebp - 0x134], ecx
mov eax, dword [edx + 8]
mov dword [ebp - 0x14c], esi
mov dword [ebp - 0x11c], eax
cmp ecx, eax
jle 0x1003533a
test eax, eax
je 0x100352f8
cdq
sub eax, edx
mov edx, dword [ebp - 0x12c]
sar eax, 1
add eax, dword [ebp - 0x11c]
mov dword [ebp - 0x120], eax
jmp 0x10035302
mov byte [ebp - 0x141], 0
jmp 0x10036612
mov dword [ebp - 0x120], 8
cmp dword [ebp - 0x120], ecx
lea eax, [edx + 4]
mov dword [ebp - 0x138], eax
mov eax, ecx
cmovg eax, dword [ebp - 0x120]
mov ecx, dword [ebp - 0x138]
push eax
call fcn.1000dfa0
mov edx, dword [ebp - 0x12c]
mov ecx, dword [ebp - 0x134]
mov eax, dword [ebp - 0x138]
jmp 0x1003533d
lea eax, [edx + 4]
mov dword [eax], ecx
lea eax, [ecx*4]
push eax
push 0
push dword [edx + 0xc]
call sub.VCRUNTIME140.dll_memset
lea ecx, [esi*8 + 0xc]
add esp, 0xc
add ecx, edi
mov dword [ebp - 0x120], ecx
cmp dword [ecx], 0
jne 0x100353c7
mov esi, dword [edi + esi*8 + 4]
mov eax, dword [ecx + 4]
add esi, 0x20
sar esi, 5
mov dword [ebp - 0x11c], eax
cmp esi, eax
jle 0x100353b0
test eax, eax
je 0x10035392
cdq
sub eax, edx
mov ecx, eax
sar ecx, 1
add ecx, dword [ebp - 0x11c]
jmp 0x10035397
mov ecx, 8
cmp ecx, esi
mov eax, esi
cmovg eax, ecx
mov ecx, dword [ebp - 0x120]
push eax
call fcn.1000dfa0
mov ecx, dword [ebp - 0x120]
lea eax, [esi*4]
mov dword [ecx], esi
push eax
push 0
push dword [ecx + 8]
call sub.VCRUNTIME140.dll_memset
add esp, 0xc
mov edx, dword [ebp - 0x12c]
mov eax, dword [edx - 0xc]
mov dword [ebp - 0x13c], eax
cmp word [eax], 0
je 0x100354b8
movzx ecx, word [eax + 2]
test cx, cx
je 0x100354b2
movzx edi, word [eax]
cmp edi, ecx
ja 0x10035499
nop dword [eax + eax]
mov eax, dword [ebp - 0x14c]
mov ecx, edi
and ecx, 0x1f
mov edx, 1
shl edx, cl
mov esi, edi
mov ecx, dword [ebp - 0x158]
sar esi, 5
mov dword [ebp - 0x11c], edx
mov eax, dword [ecx + eax*8 + 0x14]
test dword [eax + esi*4], edx
jne 0x10035480
mov ecx, dword [ebp - 0x12c]
mov edx, edi
add ecx, 0xffffff58
call fcn.1003f100
mov edx, dword [ebp - 0x12c]
test eax, eax
je 0x10035486
inc dword [edx]
mov eax, dword [ebp - 0x14c]
mov ecx, dword [ebp - 0x158]
inc dword [ecx + eax*8 + 8]
mov eax, dword [edx + 0xc]
mov ecx, dword [ebp - 0x11c]
mov edx, dword [ebp - 0x158]
or dword [eax + esi*4], ecx
mov eax, dword [ebp - 0x14c]
mov eax, dword [edx + eax*8 + 0x14]
or dword [eax + esi*4], ecx
inc dword [ebp - 0x140]
mov edx, dword [ebp - 0x12c]
mov eax, dword [ebp - 0x13c]
inc edi
movzx eax, word [eax + 2]
cmp edi, eax
jbe 0x10035400
mov eax, dword [ebp - 0x13c]
add eax, 4
mov dword [ebp - 0x13c], eax
cmp word [eax], 0
jne 0x100353e0
mov edi, dword [ebp - 0x158]
add edx, 0xc4
sub dword [ebp - 0x128], 1
mov dword [ebp - 0x12c], edx
jne 0x100352a7
mov esi, dword [ebp - 0x15c]
mov eax, dword [ebp - 0x150]
add esi, 0xb8
mov dword [ebp - 0x13c], eax
nop dword [eax]
mov edi, dword [esi - 0x10]
cmp edi, dword [esi + 4]
jle 0x10035561
mov eax, dword [0x1007f11c]
test eax, eax
je 0x10035507
inc dword [eax + 0x370]
lea eax, [edi*4]
push eax
call dword [ebp - 0x124]
mov edx, dword [esi + 8]
add esp, 4
mov dword [ebp - 0x11c], eax
test edx, edx
je 0x1003555b
mov ecx, dword [esi]
shl ecx, 2
push ecx
push edx
push eax
call sub.VCRUNTIME140.dll_memcpy
mov ecx, dword [esi + 8]
add esp, 0xc
test ecx, ecx
je 0x1003554b
mov eax, dword [0x1007f11c]
test eax, eax
je 0x1003554b
dec dword [eax + 0x370]
push ecx
call dword [ebp - 0x148]
mov eax, dword [ebp - 0x11c]
add esp, 4
mov dword [esi + 8], eax
mov dword [esi + 4], edi
mov ecx, dword [esi - 4]
mov eax, dword [esi - 0xc]
mov dword [ebp - 0x128], ecx
lea eax, [ecx + eax*4]
mov dword [ebp - 0x164], eax
cmp ecx, eax
jae 0x1003564e
xor edi, edi
mov dword [ebp - 0x14c], edi
mov ecx, dword [ecx]
mov dword [ebp - 0x134], ecx
test ecx, ecx
je 0x1003562e
xor eax, eax
mov edx, 1
mov dword [ebp - 0x120], eax
mov dword [ebp - 0x138], edx
nop dword [eax]
test edx, ecx
je 0x10035614
mov ecx, dword [esi + 4]
and edi, 0xffffffe0
add edi, eax
mov eax, dword [esi]
cmp eax, ecx
jne 0x100355f8
lea edx, [eax + 1]
mov dword [ebp - 0x11c], edx
test ecx, ecx
je 0x100355e0
mov eax, ecx
cdq
sub eax, edx
mov edx, dword [ebp - 0x11c]
sar eax, 1
add eax, ecx
jmp 0x100355e5
mov eax, 8
cmp eax, edx
mov ecx, esi
cmovg edx, eax
push edx
call fcn.1000dfa0
mov edx, dword [ebp - 0x138]
mov ecx, dword [esi]
mov eax, dword [esi + 8]
mov dword [eax + ecx*4], edi
inc dword [esi]
mov eax, dword [ebp - 0x120]
mov ecx, dword [ebp - 0x134]
mov edi, dword [ebp - 0x14c]
inc eax
rol edx, 1
mov dword [ebp - 0x120], eax
mov dword [ebp - 0x138], edx
cmp eax, 0x20
jb 0x100355b0
mov eax, dword [ebp - 0x164]
mov ecx, dword [ebp - 0x128]
add edi, 0x20
add ecx, 4
mov dword [ebp - 0x14c], edi
mov dword [ebp - 0x128], ecx
cmp ecx, eax
jb 0x10035586
mov ecx, dword [esi - 4]
test ecx, ecx
je 0x10035683
mov eax, dword [0x1007f11c]
mov dword [esi - 8], 0
mov dword [esi - 0xc], 0
test eax, eax
je 0x10035672
dec dword [eax + 0x370]
push ecx
call dword [ebp - 0x148]
add esp, 4
mov dword [esi - 4], 0
add esi, 0xc4
sub dword [ebp - 0x13c], 1
jne 0x100354f0
mov edi, dword [ebp - 0x158]
mov esi, dword [ebp - 0x140]
jmp 0x100356ac
xor esi, esi
mov dword [ebp - 0x140], esi
cmp dword [ebp - 0x130], 0
jle 0x1003571f
mov esi, dword [ebp - 0x148]
lea eax, [edi + 0x14]
mov edi, dword [ebp - 0x130]
mov dword [ebp - 0x120], eax
nop word [eax + eax]
mov ecx, dword [eax]
test ecx, ecx
je 0x10035705
mov dword [eax - 4], 0
mov dword [eax - 8], 0
mov eax, dword [0x1007f11c]
test eax, eax
je 0x100356f3
dec dword [eax + 0x370]
push ecx
call esi
mov eax, dword [ebp - 0x120]
add esp, 4
mov dword [eax], 0
add eax, 0x18
mov dword [ebp - 0x120], eax
sub edi, 1
jne 0x100356d0
mov edi, dword [ebp - 0x158]
mov esi, dword [ebp - 0x140]
test edi, edi
je 0x1003575e
mov eax, dword [0x1007f11c]
mov dword [ebp - 0x19c], 0
mov dword [ebp - 0x1a0], 0
test eax, eax
je 0x10035746
dec dword [eax + 0x370]
push edi
call dword [ebp - 0x148]
add esp, 4
xor eax, eax
mov dword [ebp - 0x158], eax
mov dword [ebp - 0x198], eax
xor eax, eax
mov dword [ebp - 0x1a8], 0
mov dword [ebp - 0x140], eax
mov dword [ebp - 0x1a4], eax
mov dword [ebp - 0x1d0], eax
mov dword [ebp - 0x14c], eax
mov dword [ebp - 0x1cc], eax
mov eax, 8
test esi, esi
jle 0x100357d1
cmp esi, eax
mov edi, esi
cmovl edi, eax
test edi, edi
jle 0x100357d1
mov eax, dword [0x1007f11c]
test eax, eax
je 0x100357ab
inc dword [eax + 0x370]
mov eax, edi
shl eax, 4
push eax
call dword [ebp - 0x124]
mov dword [ebp - 0x140], eax
add esp, 4
mov dword [ebp - 0x1a4], eax
mov eax, 8
mov dword [ebp - 0x1a8], edi
mov dword [ebp - 0x1ac], esi
test esi, esi
jle 0x1003581e
cmp esi, 8
mov edi, esi
cmovl edi, eax
test edi, edi
jle 0x1003581e
mov eax, dword [0x1007f11c]
test eax, eax
je 0x100357f6
inc dword [eax + 0x370]
lea eax, [edi*8]
sub eax, edi
shl eax, 2
push eax
call dword [ebp - 0x124]
add esp, 4
mov dword [ebp - 0x14c], eax
mov dword [ebp - 0x1cc], eax
mov dword [ebp - 0x1d0], edi
mov ecx, esi
mov dword [ebp - 0x1d4], esi
shl ecx, 4
push ecx
push 0
push dword [ebp - 0x140]
call sub.VCRUNTIME140.dll_memset
add esp, 0xc
lea eax, [esi*8]
sub eax, esi
shl eax, 2
push eax
push 0
push dword [ebp - 0x14c]
call sub.VCRUNTIME140.dll_memset
mov eax, dword [ebp - 0x150]
xor edx, edx
xor ecx, ecx
mov dword [ebp - 0x12c], edx
add esp, 0xc
mov dword [ebp - 0x13c], edx
mov dword [ebp - 0x130], ecx
test eax, eax
jle 0x10035b3e
mov esi, dword [ebp - 0x15c]
xor edi, edi
add esi, 0x98
mov dword [ebp - 0x138], edi
mov dword [ebp - 0x128], esi
mov dword [ebp - 0x120], eax
nop dword [eax + eax]
mov edx, dword [esi + 0x10]
test edx, edx
je 0x10035b14
mov eax, dword [ebp - 0x13c]
add dword [ebp - 0x13c], edx
add dword [ebp - 0x130], edx
shl eax, 4
add eax, dword [ebp - 0x140]
mov dword [esi - 4], eax
lea eax, [ecx*8]
sub eax, ecx
mov ecx, dword [ebp - 0x14c]
lea ecx, [ecx + eax*4]
mov eax, dword [ebp - 0x154]
mov dword [esi], ecx
mov edx, dword [eax + 0x54]
mov eax, dword [edx + edi + 0x10]
add edx, edi
mov dword [esi - 0x1c], eax
mov eax, dword [esi + 0x28]
mov dword [esi - 0x14], eax
mov eax, dword [esi + 0x20]
mov dword [esi - 0x18], 0
mov dword [esi - 0x10], eax
mov dword [esi - 0xc], ecx
mov al, byte [edx + 0x14]
mov byte [esi - 8], al
mov al, byte [edx + 0x18]
mov byte [esi - 7], al
movss xmm1, dword [edx + 0x10]
comiss xmm1, dword [0x1007764c]
mov dword [ebp - 0x164], edx
jbe 0x10035983
mov edi, dword [esi - 0x94]
mov eax, dword [esi - 0x7c]
movzx edx, byte [eax + edi + 5]
movzx ecx, byte [eax + edi + 4]
mov eax, 0x100
cwde
movsx ecx, cx
imul ecx, eax
add dx, cx
mov ecx, dword [ebp - 0x128]
movsx esi, dx
mov eax, dword [ecx - 0x7c]
movzx edx, byte [eax + edi + 7]
movzx ecx, byte [eax + edi + 6]
mov eax, 0x100
mov edi, dword [ebp - 0x138]
cwde
movsx ecx, cx
imul ecx, eax
add dx, cx
movsx eax, dx
sub esi, eax
movd xmm0, esi
mov esi, dword [ebp - 0x128]
jmp 0x100359a9
mov ecx, dword [esi - 0x84]
mov eax, dword [esi - 0x94]
xorps xmm1, xmmword [0x10077d90]
movzx edx, byte [ecx + eax + 0x13]
movzx eax, byte [ecx + eax + 0x12]
shl eax, 8
add edx, eax
movd xmm0, edx
cmp dword [esi + 0x20], 0
cvtdq2ps xmm0, xmm0
mov eax, dword [ebp - 0x154]
mov dword [ebp - 0x128], 0
mov ecx, dword [eax + 0x10]
divss xmm1, xmm0
movss dword [ebp - 0x11c], xmm1
jle 0x10035b08
movzx eax, cx
xor edi, edi
mov ecx, eax
mov dword [ebp - 0x1bc], eax
mov dword [ebp - 0x1b4], ecx
xor ecx, ecx
mov dword [ebp - 0x134], ecx
mov edx, dword [esi + 0x28]
mov edx, dword [edx + ecx]
lea ecx, [esi - 0x98]
call fcn.1003f100
lea ecx, [ebp - 0x160]
mov edx, eax
push ecx
lea ecx, [ebp - 0x1b8]
push ecx
lea ecx, [ebp - 0x194]
push ecx
lea ecx, [ebp - 0x1b0]
push ecx
mov ecx, dword [ebp - 0x164]
sub esp, 8
movd xmm3, dword [ecx + 0x18]
movd xmm2, dword [ecx + 0x14]
lea ecx, [esi - 0x98]
cvtdq2ps xmm3, xmm3
mov dword [esp + 4], 0
mov dword [esp], 0
cvtdq2ps xmm2, xmm2
mulss xmm3, xmm1
mulss xmm2, xmm1
call fcn.1003c530
mov edx, dword [ebp - 0x164]
lea edi, [edi + 0x10]
mov eax, dword [esi - 4]
add esp, 0x18
movss xmm1, dword [ebp - 0x11c]
mov cx, word [edx + 0x14]
sub cx, word [ebp - 0x1b0]
dec cx
add cx, word [ebp - 0x1b4]
add cx, word [ebp - 0x1b8]
mov word [eax + edi - 0xc], cx
mov ecx, dword [ebp - 0x1bc]
sub ecx, dword [ebp - 0x194]
add ecx, dword [ebp - 0x160]
mov eax, dword [esi - 4]
dec cx
add cx, word [edx + 0x18]
mov edx, dword [ebp - 0x12c]
mov word [eax + edi - 0xa], cx
mov eax, dword [esi - 4]
movzx ecx, word [eax + edi - 0xa]
movzx eax, word [eax + edi - 0xc]
imul ecx, eax
mov eax, dword [ebp - 0x128]
inc eax
mov dword [ebp - 0x128], eax
add edx, ecx
mov ecx, dword [ebp - 0x134]
add ecx, 4
mov dword [ebp - 0x12c], edx
mov dword [ebp - 0x134], ecx
cmp eax, dword [esi + 0x20]
jl 0x100359f0
mov edi, dword [ebp - 0x138]
mov eax, dword [ebp - 0x120]
mov ecx, dword [ebp - 0x130]
jmp 0x10035b1a
mov eax, dword [ebp - 0x120]
mov ecx, dword [ebp - 0x130]
mov edx, dword [ebp - 0x12c]
add esi, 0xc4
add edi, 0x78
sub eax, 1
mov dword [ebp - 0x128], esi
mov dword [ebp - 0x138], edi
mov dword [ebp - 0x120], eax
jne 0x100358a0
movd xmm0, edx
xorps xmm1, xmm1
cvtdq2ps xmm0, xmm0
cvtps2pd xmm0, xmm0
ucomisd xmm1, xmm0
ja 0x10035b57
sqrtsd xmm0, xmm0
jmp 0x10035b5c
call sub.api_ms_win_crt_math_l1_1_0.dll__libm_sse2_sqrt_precise
mov edi, dword [ebp - 0x154]
cvtsd2ss xmm0, xmm0
mov eax, dword [edi + 0xc]
mov dword [edi + 0x20], 0
cvttss2si ecx, xmm0
inc ecx
test eax, eax
jg 0x10035bb4
movd xmm0, ecx
cvtdq2ps xmm0, xmm0
comiss xmm0, dword [0x10077778]
jb 0x10035b90
mov eax, 0x1000
jmp 0x10035bb4
comiss xmm0, dword [0x10077770]
jb 0x10035ba0
mov eax, 0x800
jmp 0x10035bb4
comiss xmm0, dword [0x10077764]
mov eax, 0x200
mov ecx, 0x400
cmovae eax, ecx
mov ecx, edi
push 0x2c
push 0
mov dword [ecx + 0x1c], eax
lea eax, [ebp - 0x190]
push eax
call sub.VCRUNTIME140.dll_memset
mov eax, dword [edi + 0x10]
add esp, 0xc
mov dword [ebp - 0x134], eax
mov eax, dword [edi + 0x1c]
mov dword [ebp - 0x11c], eax
mov eax, dword [0x1007f11c]
test eax, eax
je 0x10035bed
inc dword [eax + 0x370]
push 0x30
call dword [ebp - 0x124]
mov ecx, dword [0x1007f11c]
mov esi, eax
mov eax, dword [ebp - 0x11c]
add esp, 4
sub eax, dword [ebp - 0x134]
mov dword [ebp - 0x12c], esi
mov dword [ebp - 0x160], eax
test ecx, ecx
je 0x10035c22
inc dword [ecx + 0x370]
shl eax, 3
push eax
call dword [ebp - 0x124]
add esp, 4
test esi, esi
je 0x10035cad
test eax, eax
je 0x10035c9b
mov edx, dword [ebp - 0x11c]
mov ecx, dword [ebp - 0x134]
mov dword [ebp - 0x188], edx
mov dword [ebp - 0x180], edx
mov edx, dword [ebp - 0x160]
push edx
push eax
mov dword [ebp - 0x168], eax
mov eax, 0x8000
sub eax, ecx
mov dword [ebp - 0x17c], ecx
push eax
mov ecx, esi
mov dword [ebp - 0x18c], esi
mov dword [ebp - 0x174], 1
mov dword [ebp - 0x170], 1
mov dword [ebp - 0x178], 0
call fcn.10040ad0
add esp, 0xc
jmp 0x10035cd7
mov eax, dword [0x1007f11c]
test eax, eax
je 0x10035caa
dec dword [eax + 0x370]
push esi
jmp 0x10035cc2
test eax, eax
je 0x10035ccb
mov ecx, dword [0x1007f11c]
test ecx, ecx
je 0x10035cc1
dec dword [ecx + 0x370]
push eax
call dword [ebp - 0x148]
add esp, 4
mov eax, dword [ebp - 0x18c]
mov dword [ebp - 0x12c], eax
xor eax, eax
mov dword [ebp - 0x130], eax
mov esi, dword [edi + 0x40]
mov dword [ebp - 0x13c], esi
test esi, esi
jle 0x10035d1f
cmp esi, 8
mov ecx, esi
mov edx, 8
cmovl ecx, edx
test ecx, ecx
jle 0x10035d1f
mov eax, dword [0x1007f11c]
test eax, eax
je 0x10035d0c
inc dword [eax + 0x370]
shl ecx, 4
push ecx
call dword [ebp - 0x124]
add esp, 4
mov dword [ebp - 0x130], eax
mov ecx, esi
shl ecx, 4
push ecx
push 0
push eax
call sub.VCRUNTIME140.dll_memset
add esp, 0xc
cmp dword [edi + 0x40], 0
jle 0x10035d6d
mov edx, dword [ebp - 0x130]
xor ecx, ecx
add edx, 6
xor esi, esi
mov eax, dword [edi + 0x48]
lea ecx, [ecx + 0x1c]
inc esi
lea edx, [edx + 0x10]
movzx eax, word [ecx + eax - 0x1c]
mov word [edx - 0x12], ax
mov eax, dword [edi + 0x48]
movzx eax, word [eax + ecx - 0x1a]
mov word [edx - 0x10], ax
cmp esi, dword [edi + 0x40]
jl 0x10035d43
mov esi, dword [ebp - 0x13c]
mov edx, dword [ebp - 0x130]
mov ecx, dword [ebp - 0x12c]
push esi
call fcn.10040490
add esp, 4
test esi, esi
jle 0x10035dde
mov edx, dword [ebp - 0x130]
xor esi, esi
mov eax, dword [ebp - 0x13c]
add edx, 0xa
cmp dword [edx + 2], 0
je 0x10035dcd
mov eax, dword [edi + 0x48]
movzx ecx, word [edx - 2]
mov word [esi + eax + 4], cx
mov eax, dword [edi + 0x48]
movzx ecx, word [edx]
mov word [esi + eax + 6], cx
movzx eax, word [edx]
movzx ecx, word [edx - 4]
add ecx, eax
mov eax, dword [ebp - 0x13c]
cmp dword [edi + 0x20], ecx
cmovge ecx, dword [edi + 0x20]
mov dword [edi + 0x20], ecx
add esi, 0x1c
add edx, 0x10
sub eax, 1
mov dword [ebp - 0x13c], eax
jne 0x10035d97
mov eax, dword [ebp - 0x130]
test eax, eax
je 0x10035e02
mov ecx, dword [0x1007f11c]
test ecx, ecx
je 0x10035df8
dec dword [ecx + 0x370]
push eax
call dword [ebp - 0x148]
add esp, 4
mov byte [ebp - 4], 7
mov esi, dword [ebp - 0x150]
test esi, esi
jle 0x10035e9f
mov esi, dword [ebp - 0x15c]
mov eax, dword [ebp - 0x150]
add esi, 0xa8
mov dword [ebp - 0x134], eax
nop dword [eax]
mov eax, dword [esi]
test eax, eax
je 0x10035e8a
mov edx, dword [esi - 0x14]
mov ecx, dword [ebp - 0x12c]
push eax
call fcn.10040490
xor ecx, ecx
add esp, 4
mov dword [ebp - 0x11c], ecx
cmp dword [esi], ecx
jle 0x10035e8a
xor edx, edx
mov eax, dword [esi - 0x14]
cmp dword [edx + eax + 0xc], 0
je 0x10035e7c
movzx ecx, word [edx + eax + 0xa]
movzx eax, word [edx + eax + 6]
add ecx, eax
cmp dword [edi + 0x20], ecx
cmovge ecx, dword [edi + 0x20]
mov dword [edi + 0x20], ecx
mov ecx, dword [ebp - 0x11c]
inc ecx
add edx, 0x10
mov dword [ebp - 0x11c], ecx
cmp ecx, dword [esi]
jl 0x10035e56
add esi, 0xc4
sub dword [ebp - 0x134], 1
jne 0x10035e30
mov esi, dword [ebp - 0x150]
test byte [edi + 4], 1
mov eax, dword [edi + 0x20]
jne 0x10035ecd
lea ecx, [eax - 1]
mov eax, ecx
sar eax, 1
or ecx, eax
mov eax, ecx
sar eax, 2
or ecx, eax
mov eax, ecx
sar eax, 4
or ecx, eax
mov eax, ecx
sar eax, 8
or ecx, eax
mov eax, ecx
sar eax, 0x10
or eax, ecx
movss xmm1, dword [0x100776c4]
lea ecx, [eax + 1]
mov eax, dword [edi + 0x1c]
movaps xmm2, xmm1
mov dword [edi + 0x20], ecx
movd xmm0, eax
cvtdq2ps xmm0, xmm0
divss xmm2, xmm0
movd xmm0, ecx
cvtdq2ps xmm0, xmm0
imul ecx, eax
divss xmm1, xmm0
mov eax, dword [0x1007f11c]
movss dword [edi + 0x24], xmm2
movss dword [edi + 0x28], xmm1
test eax, eax
je 0x10035f13
inc dword [eax + 0x370]
push ecx
call dword [ebp - 0x124]
mov ecx, dword [edi + 0x20]
add esp, 4
imul ecx, dword [edi + 0x1c]
mov dword [edi + 0x14], eax
push ecx
push 0
push eax
call sub.VCRUNTIME140.dll_memset
mov eax, dword [edi + 0x14]
add esp, 0xc
mov dword [ebp - 0x16c], eax
mov eax, dword [edi + 0x20]
mov dword [ebp - 0x184], eax
test esi, esi
jle 0x1003611c
mov ecx, dword [ebp - 0x15c]
xor eax, eax
mov dword [ebp - 0x11c], eax
mov edx, esi
mov dword [ebp - 0x124], ecx
mov dword [ebp - 0x134], esi
nop dword [eax]
mov esi, dword [edi + 0x54]
add esi, eax
cmp dword [ecx + 0xa8], 0
je 0x100360f0
push dword [ecx + 0x94]
lea eax, [ecx + 0x7c]
mov edx, ecx
push ecx
push eax
lea ecx, [ebp - 0x190]
call fcn.10038830
movss xmm1, dword [esi + 0x44]
add esp, 0xc
ucomiss xmm1, dword [0x100776c4]
movss dword [ebp - 0x160], xmm1
lahf
test ah, 0x44
jnp 0x100360d4
xor esi, esi
nop dword [eax]
movd xmm0, esi
mov eax, esi
cvtdq2pd xmm0, xmm0
shr eax, 0x1f
addsd xmm0, qword [eax*8 + 0x10077d40]
cvtpd2ps xmm0, xmm0
mulss xmm0, xmm1
call fcn.10054cf0
movss xmm1, dword [ebp - 0x160]
mov edx, 0xff
cmp eax, edx
movzx ecx, al
cmovbe edx, ecx
mov byte [ebp + esi - 0x118], dl
inc esi
cmp esi, 0x100
jb 0x10035fc0
mov ecx, dword [ebp - 0x124]
xor eax, eax
mov dword [ebp - 0x138], eax
mov edx, dword [ecx + 0x94]
cmp dword [ecx + 0xa8], eax
jle 0x100360da
lea ecx, [edx + 6]
mov edx, dword [ebp - 0x124]
mov dword [ebp - 0x128], ecx
cmp dword [ecx + 6], 0
je 0x100360b8
mov eax, dword [edi + 0x1c]
movzx edx, word [ecx + 4]
movzx edi, word [ecx]
movzx esi, word [ecx - 2]
mov dword [ebp - 0x120], eax
movzx eax, word [ecx + 2]
imul edx, dword [ebp - 0x120]
mov ecx, dword [ebp - 0x154]
add edx, dword [ecx + 0x14]
mov ecx, dword [ebp - 0x128]
add edx, eax
test edi, edi
je 0x100360a6
mov eax, dword [ebp - 0x120]
xor ecx, ecx
test esi, esi
je 0x10036099
nop dword [eax]
movzx eax, byte [ecx + edx]
mov al, byte [ebp + eax - 0x118]
mov byte [ecx + edx], al
inc ecx
cmp ecx, esi
jl 0x10036080
mov eax, dword [ebp - 0x120]
dec edi
add edx, eax
test edi, edi
jg 0x10036077
mov ecx, dword [ebp - 0x128]
mov edx, dword [ebp - 0x124]
mov eax, dword [ebp - 0x138]
mov edi, dword [ebp - 0x154]
inc eax
add ecx, 0x10
mov dword [ebp - 0x138], eax
mov dword [ebp - 0x128], ecx
cmp eax, dword [edx + 0xa8]
jl 0x10036037
mov ecx, dword [ebp - 0x124]
mov eax, dword [ebp - 0x11c]
mov edx, dword [ebp - 0x134]
mov dword [ecx + 0x94], 0
add eax, 0x78
add ecx, 0xc4
sub edx, 1
mov dword [ebp - 0x11c], eax
mov dword [ebp - 0x124], ecx
mov dword [ebp - 0x134], edx
jne 0x10035f70
mov esi, dword [ebp - 0x18c]
jmp 0x10036122
mov esi, dword [ebp - 0x12c]
cmp dword [ebp - 0x168], 0
je 0x1003613a
mov eax, dword [0x1007f11c]
test eax, eax
je 0x1003613a
dec dword [eax + 0x370]
push dword [ebp - 0x168]
call dword [ebp - 0x148]
add esp, 4
test esi, esi
je 0x1003615c
mov eax, dword [0x1007f11c]
test eax, eax
je 0x1003615c
dec dword [eax + 0x370]
push esi
mov esi, dword [ebp - 0x148]
call esi
mov ecx, dword [ebp - 0x140]
add esp, 4
test ecx, ecx
je 0x100361a9
mov eax, dword [0x1007f11c]
mov dword [ebp - 0x1a8], 0
mov dword [ebp - 0x1ac], 0
test eax, eax
je 0x10036195
dec dword [eax + 0x370]
push ecx
call esi
add esp, 4
xor ecx, ecx
mov dword [ebp - 0x140], ecx
mov dword [ebp - 0x1a4], ecx
mov eax, dword [ebp - 0x150]
test eax, eax
jle 0x100365b2
mov esi, dword [ebp - 0x15c]
xor ecx, ecx
add esi, 4
mov dword [ebp - 0x128], ecx
mov dword [ebp - 0x134], esi
mov dword [ebp - 0x13c], eax
nop dword [eax]
nop dword [eax + eax]
cmp dword [esi + 0xa4], 0
je 0x10036514
mov eax, dword [edi + 0x54]
xorps xmm3, xmm3
mov edi, dword [esi + 0x18]
add eax, ecx
mov esi, dword [esi]
mov dword [ebp - 0x130], eax
mov eax, dword [eax + 0x74]
movzx ecx, byte [edi + esi + 6]
mov dword [ebp - 0x138], eax
mov eax, 0x100
cwde
movzx edx, byte [edi + esi + 5]
movsx ecx, cx
imul ecx, eax
movzx eax, byte [edi + esi + 7]
add cx, ax
movsx eax, cx
movzx ecx, byte [edi + esi + 4]
mov dword [ebp - 0x160], eax
mov eax, 0x100
cwde
movsx ecx, cx
imul ecx, eax
add dx, cx
movsx ecx, dx
mov edx, dword [ebp - 0x160]
mov eax, ecx
sub eax, edx
movd xmm1, ecx
cvtdq2ps xmm1, xmm1
mov ecx, dword [ebp - 0x138]
movd xmm0, eax
mov eax, dword [ebp - 0x130]
cvtdq2ps xmm0, xmm0
movss xmm2, dword [eax + 0x10]
xor eax, eax
divss xmm2, xmm0
comiss xmm1, xmm3
mulss xmm1, xmm2
seta al
lea eax, [eax*2 - 1]
movd xmm0, eax
xor eax, eax
cvtdq2ps xmm0, xmm0
addss xmm0, xmm1
movd xmm1, edx
cvtdq2ps xmm1, xmm1
lea edx, [ecx + 0x44]
mov dword [ebp - 0x120], edx
mov edx, dword [ebp - 0x130]
cvttss2si esi, xmm0
comiss xmm1, xmm3
mulss xmm1, xmm2
seta al
cmp byte [edx + 0x3c], 0
lea eax, [eax*2 - 1]
movd xmm0, eax
lea eax, [ecx + 0x38]
cvtdq2ps xmm0, xmm0
mov dword [ebp - 0x11c], eax
addss xmm0, xmm1
cvttss2si edi, xmm0
jne 0x10036334
call fcn.10034200
mov edx, dword [ebp - 0x130]
mov ecx, dword [ebp - 0x138]
movd xmm0, esi
cvtdq2ps xmm0, xmm0
mov eax, dword [edx + 0x10]
mov dword [ecx + 0x10], eax
mov eax, dword [ebp - 0x11c]
mov dword [ecx + 0x34], edx
xor edx, edx
mov word [eax], dx
mov eax, dword [ebp - 0x154]
mov edx, dword [ebp - 0x130]
mov dword [ecx + 0x30], eax
mov eax, dword [ebp - 0x120]
movss dword [eax], xmm0
mov eax, dword [ebp - 0x11c]
movd xmm0, edi
cvtdq2ps xmm0, xmm0
movss dword [ecx + 0x48], xmm0
mov ecx, dword [ebp - 0x120]
inc word [eax]
mov esi, dword [ebp - 0x134]
movss xmm7, dword [edx + 0x28]
movss xmm0, dword [ecx]
addss xmm0, dword [0x10077690]
cmp dword [esi + 0xa4], 0
mov edi, dword [ebp - 0x154]
movss dword [ebp - 0x194], xmm7
mov dword [ebp - 0x11c], 0
cvttss2si eax, xmm0
movd xmm6, eax
cvtdq2ps xmm6, xmm6
addss xmm6, dword [edx + 0x2c]
movss dword [ebp - 0x160], xmm6
jle 0x10036508
xor ecx, ecx
mov dword [ebp - 0x124], 0
mov dword [ebp - 0x134], ecx
nop dword [eax]
nop word [eax + eax]
mov eax, dword [esi + 0xbc]
sub esp, 0x20
movd xmm0, dword [edi + 0x1c]
movss xmm1, dword [0x100776c4]
movss xmm3, dword [0x100776c4]
mov edx, dword [ecx + eax]
mov ecx, dword [esi + 0x94]
mov eax, dword [ebp - 0x124]
cvtdq2ps xmm0, xmm0
movzx eax, word [ecx + eax]
divss xmm1, xmm0
movd xmm0, dword [edi + 0x20]
cvtdq2ps xmm0, xmm0
movd xmm5, eax
mov eax, dword [ebp - 0x124]
divss xmm3, xmm0
movzx eax, word [ecx + eax + 2]
movd xmm4, eax
mov eax, dword [ebp - 0x124]
cvtdq2ps xmm5, xmm5
movzx eax, word [ecx + eax + 4]
cvtdq2ps xmm4, xmm4
movd xmm2, eax
mov eax, dword [ebp - 0x124]
cvtdq2ps xmm2, xmm2
movzx eax, word [ecx + eax + 6]
mulss xmm5, xmm1
mulss xmm2, xmm1
movd xmm1, eax
mov eax, dword [ebp - 0x124]
cvtdq2ps xmm1, xmm1
movss xmm0, dword [ecx + eax + 0x10]
movss dword [esp + 0x1c], xmm0
movss xmm0, dword [ecx + eax + 0x18]
mulss xmm1, xmm3
mulss xmm4, xmm3
movss dword [esp + 0x18], xmm1
xorps xmm1, xmm1
addss xmm0, xmm1
movss xmm3, dword [ecx + eax + 8]
movss dword [esp + 0x14], xmm2
addss xmm3, xmm1
movss dword [esp + 0x10], xmm4
movss dword [esp + 0xc], xmm5
addss xmm0, xmm6
addss xmm3, xmm7
movss dword [esp + 8], xmm0
movss xmm0, dword [ecx + eax + 0x14]
addss xmm0, xmm1
addss xmm0, xmm7
movss dword [esp + 4], xmm0
movss xmm0, dword [ecx + eax + 0xc]
mov ecx, dword [ebp - 0x138]
addss xmm0, xmm1
addss xmm0, xmm6
movss dword [esp], xmm0
push edx
push dword [ebp - 0x130]
call fcn.10033af0
mov eax, dword [ebp - 0x11c]
mov ecx, dword [ebp - 0x134]
inc eax
add dword [ebp - 0x124], 0x1c
add ecx, 4
movss xmm6, dword [ebp - 0x160]
movss xmm7, dword [ebp - 0x194]
mov dword [ebp - 0x11c], eax
mov dword [ebp - 0x134], ecx
cmp eax, dword [esi + 0xa4]
jl 0x100363b0
mov eax, dword [ebp - 0x13c]
mov ecx, dword [ebp - 0x128]
add esi, 0xc4
add ecx, 0x78
sub eax, 1
mov dword [ebp - 0x134], esi
mov dword [ebp - 0x128], ecx
mov dword [ebp - 0x13c], eax
jne 0x100361e0
mov eax, dword [ebp - 0x150]
test eax, eax
jle 0x100365b2
mov esi, dword [ebp - 0x15c]
mov edi, dword [ebp - 0x148]
add esi, 0xb4
mov ecx, dword [esi + 0xc]
test ecx, ecx
je 0x10036576
mov eax, dword [0x1007f11c]
test eax, eax
je 0x1003656a
dec dword [eax + 0x370]
push ecx
call edi
mov eax, dword [ebp - 0x150]
add esp, 4
mov ecx, dword [esi]
test ecx, ecx
je 0x10036597
mov eax, dword [0x1007f11c]
test eax, eax
je 0x1003658b
dec dword [eax + 0x370]
push ecx
call edi
mov eax, dword [ebp - 0x150]
add esp, 4
add esi, 0xc4
mov byte [ebp - 4], 7
sub eax, 1
mov dword [ebp - 0x150], eax
jne 0x10036554
mov edi, dword [ebp - 0x154]
mov ecx, edi
call fcn.100342f0
mov byte [ebp - 0x141], 1
mov ecx, dword [ebp - 0x14c]
test ecx, ecx
je 0x100365e7
mov eax, dword [0x1007f11c]
test eax, eax
je 0x100365d9
dec dword [eax + 0x370]
mov esi, dword [ebp - 0x148]
push ecx
call esi
add esp, 4
jmp 0x100365ed
mov esi, dword [ebp - 0x148]
mov ecx, dword [ebp - 0x140]
test ecx, ecx
je 0x1003660c
mov eax, dword [0x1007f11c]
test eax, eax
je 0x10036606
dec dword [eax + 0x370]
push ecx
call esi
add esp, 4
mov edi, dword [ebp - 0x158]
test edi, edi
je 0x10036633
mov eax, dword [0x1007f11c]
test eax, eax
je 0x10036625
dec dword [eax + 0x370]
mov esi, dword [ebp - 0x148]
push edi
call esi
add esp, 4
jmp 0x10036639
mov esi, dword [ebp - 0x148]
mov eax, dword [ebp - 0x15c]
test eax, eax
je 0x10036659
mov ecx, dword [0x1007f11c]
test ecx, ecx
je 0x10036653
dec dword [ecx + 0x370]
push eax
call esi
add esp, 4
mov al, byte [ebp - 0x141]
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
mov ecx, dword [ebp - 0x14]
xor ecx, ebp
call fcn.1001a4bb
mov esp, ebp
pop ebp
mov esp, ebx
pop ebx
ret