Function at 0x10039680
Capabilities:
Query environment variable

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x1004c937
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
sub esp, 0x78
cmp byte [ebp + 0xc], 0
push ebx
mov ebx, dword [ebp + 8]
push esi
mov esi, ecx
push edi
mov dword [ebp - 0x18], esi
je 0x100396bb
inc dword [ebx + 0xc]
mov eax, dword [ebx + 0xc]
cmp eax, dword [ebx + 0x2c]
jb 0x1003a202
xor edx, edx
mov dword [ebp - 0x1c], edx
cmp dword [ebx + 0x3e0], edx
je 0x1003980b
mov eax, dword [ebx + 0x3dc]
mov edi, dword [ebx + 0x3ec]
mov edi, dword [edi + eax*4]
test edi, edi
je 0x1003a1fb
cmp byte [ebp + 0xc], 0
je 0x100396f6
inc edx
mov dword [ebp - 0x1c], edx
cmp edx, dword [esi + 0x60]
ja 0x1003a1fb
lea ecx, [ebx + 0x390]
lea eax, [edi + 8]
push ecx
push eax
push dword [eax]
call fcn.1000ce40
mov esi, eax
test esi, esi
je 0x100397e7
mov eax, dword [esi + 0xc]
mov ecx, dword [ebx + 0x7c]
push eax
push ecx
push str.DestroyPlayerObject__d___d_
mov dword [ebp - 0x24], eax
mov dword [ebp - 0x28], ecx
call fcn.100034d0
mov eax, dword [0x10059504]
add esp, 0xc
mov dword [ebp + 8], eax
test eax, eax
je 0x10039765
cmp eax, fcn.100041f0
jne 0x1003976f
push str.SAMGDK_NATIVE_SEARCH_ALWAYS
call dword [sym.imp.api_ms_win_crt_environment_l1_1_0.dll_getenv]
add esp, 4
test eax, eax
je 0x10039760
push eax
call dword [sym.imp.api_ms_win_crt_convert_l1_1_0.dll_atoi]
add esp, 4
test eax, eax
jne 0x10039765
mov eax, dword [ebp + 8]
jmp 0x1003976f
mov ecx, str.DestroyPlayerObject
call fcn.10004200
mov ecx, dword [ebp - 0x28]
mov dword [ebp - 0x64], ecx
mov ecx, dword [ebp - 0x24]
mov dword [ebp - 0x60], ecx
lea ecx, [ebp - 0x68]
push ecx
push 0x100595e0
mov dword [0x10059504], eax
mov dword [ebp - 0x68], 8
call eax
add esp, 4
lea eax, [edi + 8]
push eax
push dword [eax]
mov eax, dword [0x10059264]
mov ecx, dword [eax]
add ecx, 0xd8
call fcn.1000ce40
test eax, eax
je 0x100397d9
mov eax, dword [eax + 0xc]
cmp byte [eax + 0x50], 0
je 0x100397d9
mov eax, dword [edi + 8]
mov ecx, dword [ebp - 0x18]
mov dword [ebp - 0x38], eax
add ecx, 0xc4
lea eax, [ebp - 0x3c]
mov dword [ebp - 0x3c], 0
push eax
call fcn.1003db80
push dword [esi]
lea ecx, [ebx + 0x390]
push esi
call fcn.1002cff0
mov esi, dword [edi]
lea ecx, [ebx + 0x3d8]
push esi
push edi
call fcn.1002cff0
mov edx, dword [ebp - 0x1c]
mov edi, esi
test esi, esi
mov esi, dword [ebp - 0x18]
jne 0x100396e3
jmp 0x1003a1fb
mov eax, dword [ebx + 0x194]
mov ecx, 4
test eax, eax
lea edi, [eax - 8]
cmove edi, ecx
mov edi, dword [edi]
mov edi, dword [edi + 0x14]
lea eax, [edi - 0x10]
neg edi
sbb edi, edi
and edi, eax
mov eax, dword [ebx + 0x194]
xorps xmm1, xmm1
test eax, eax
mov dword [ebp - 0x14], edi
lea ecx, [eax - 8]
mov eax, 4
cmove ecx, eax
cmp edi, dword [ecx]
je 0x1003a1fb
cmp byte [ebp + 0xc], 0
je 0x10039860
inc edx
mov dword [ebp - 0x1c], edx
cmp edx, dword [esi + 0x60]
ja 0x1003a1fb
mov esi, dword [edi + 0xc]
lea eax, [edi + 0xc]
lea ecx, [ebx + 0x390]
mov dword [ebp - 0x20], eax
lea eax, [esi + 0x1c]
mov dword [ebp - 0x28], ecx
push ecx
push eax
push dword [eax]
call fcn.1000ce40
test eax, eax
setne al
test al, al
je 0x100398c4
mov esi, dword [ebx + 0x194]
lea ecx, [ebp - 0x24]
mov dword [ebp - 0x24], edi
call fcn.1003fb70
lea eax, [esi - 0xc]
neg esi
push edi
sbb esi, esi
and esi, eax
dec dword [esi + 0x2c]
lea ecx, [esi + 0xc]
call fcn.1003fbe0
push edi
call fcn.1004a648
mov edi, dword [ebp - 0x24]
add esp, 4
mov edx, dword [ebp - 0x1c]
mov esi, dword [ebp - 0x18]
jmp 0x1003982c
cmp dword [esi + 0x58], 0
mov dword [ebp - 0x24], 0
je 0x10039934
mov eax, dword [esi + 0x58]
cmp dword [eax], 0
je 0x10039934
push ecx
push eax
push dword [eax]
lea ecx, [ebx + 0x390]
call fcn.1000ce40
test eax, eax
sete cl
test cl, cl
je 0x1003992e
mov esi, dword [ebx + 0x194]
lea ecx, [ebp - 0x24]
mov dword [ebp - 0x24], edi
call fcn.1003fb70
lea eax, [esi - 0xc]
neg esi
push edi
sbb esi, esi
and esi, eax
dec dword [esi + 0x2c]
lea ecx, [esi + 0xc]
call fcn.1003fbe0
push edi
call fcn.1004a648
mov edi, dword [ebp - 0x24]
add esp, 4
mov edx, dword [ebp - 0x1c]
mov esi, dword [ebp - 0x18]
jmp 0x1003982c
mov eax, dword [eax + 0xc]
mov dword [ebp - 0x24], eax
mov eax, dword [ebx + 0x398]
cmp eax, dword [ebx + 0x4c]
jne 0x10039c14
mov ecx, dword [ebx + 0x2d8]
mov edx, 4
test ecx, ecx
lea eax, [ecx - 8]
cmove eax, edx
lea esi, [ecx - 8]
cmove esi, edx
mov eax, dword [eax]
mov esi, dword [esi]
mov eax, dword [eax + 0x14]
lea ecx, [eax - 0x10]
neg eax
sbb eax, eax
and eax, ecx
cmp esi, eax
je 0x10039c14
test esi, esi
je 0x10039980
lea eax, [esi + 0x10]
mov dword [ebp - 0x10], eax
jmp 0x10039987
mov dword [ebp - 0x10], 0
lea ecx, [ebp - 0x10]
call fcn.100409c0
mov eax, dword [ebp - 0x10]
lea ecx, [eax - 0x10]
neg eax
sbb eax, eax
and eax, ecx
mov eax, dword [eax]
cmp eax, dword [edi]
jl 0x10039a0c
test esi, esi
je 0x100399ad
lea eax, [esi + 0x10]
mov dword [ebp - 0x10], eax
jmp 0x100399b4
mov dword [ebp - 0x10], 0
lea ecx, [ebp - 0x10]
call fcn.100409c0
mov eax, dword [ebp - 0x10]
lea ecx, [eax - 0x10]
neg eax
sbb eax, eax
and eax, ecx
movss xmm0, dword [eax + 4]
comiss xmm0, xmm1
jbe 0x10039c14
test esi, esi
je 0x100399e2
lea eax, [esi + 0x10]
mov dword [ebp - 0x10], eax
jmp 0x100399e9
mov dword [ebp - 0x10], 0
lea ecx, [ebp - 0x10]
call fcn.100409c0
mov eax, dword [ebp - 0x10]
lea ecx, [eax - 0x10]
neg eax
sbb eax, eax
and eax, ecx
movss xmm0, dword [eax + 4]
comiss xmm0, dword [edi + 4]
jbe 0x10039c14
test esi, esi
je 0x10039a18
lea eax, [esi + 0x10]
mov dword [ebp - 0x10], eax
jmp 0x10039a1f
mov dword [ebp - 0x10], 0
lea ecx, [ebp - 0x10]
call fcn.100409c0
mov eax, dword [ebp - 0x10]
lea ecx, [eax - 0x10]
neg eax
push ecx
sbb eax, eax
and eax, ecx
mov ecx, dword [ebp - 0x28]
add eax, 8
push eax
push dword [eax]
call fcn.1000ce40
mov ebx, eax
test ebx, ebx
setne al
test al, al
je 0x10039b58
mov eax, dword [ebp + 8]
mov ecx, dword [ebx + 0xc]
push ecx
mov dword [ebp - 0x30], ecx
mov eax, dword [eax + 0x7c]
push eax
push str.DestroyPlayerObject__d___d_
mov dword [ebp - 0x2c], eax
call fcn.100034d0
mov eax, dword [0x10059504]
add esp, 0xc
mov dword [ebp - 0x10], eax
test eax, eax
je 0x10039aa7
cmp eax, fcn.100041f0
jne 0x10039ab1
push str.SAMGDK_NATIVE_SEARCH_ALWAYS
call dword [sym.imp.api_ms_win_crt_environment_l1_1_0.dll_getenv]
add esp, 4
test eax, eax
je 0x10039aa2
push eax
call dword [sym.imp.api_ms_win_crt_convert_l1_1_0.dll_atoi]
add esp, 4
test eax, eax
jne 0x10039aa7
mov eax, dword [ebp - 0x10]
jmp 0x10039ab1
mov ecx, str.DestroyPlayerObject
call fcn.10004200
mov ecx, dword [ebp - 0x2c]
mov dword [ebp - 0x70], ecx
mov ecx, dword [ebp - 0x30]
mov dword [ebp - 0x6c], ecx
lea ecx, [ebp - 0x74]
push ecx
push 0x100595e0
mov dword [0x10059504], eax
mov dword [ebp - 0x74], 8
call eax
add esp, 8
test esi, esi
je 0x10039ae3
lea eax, [esi + 0x10]
mov dword [ebp - 0x10], eax
jmp 0x10039aea
mov dword [ebp - 0x10], 0
lea ecx, [ebp - 0x10]
call fcn.100409c0
mov eax, dword [ebp - 0x10]
lea ecx, [eax - 0x10]
neg eax
sbb eax, eax
and eax, ecx
mov eax, dword [eax + 0xc]
cmp byte [eax + 0x50], 0
je 0x10039b4d
test esi, esi
je 0x10039b13
lea eax, [esi + 0x10]
mov dword [ebp - 0x10], eax
jmp 0x10039b1a
mov dword [ebp - 0x10], 0
lea ecx, [ebp - 0x10]
call fcn.100409c0
mov eax, dword [ebp - 0x10]
mov dword [ebp - 0x44], 0
lea ecx, [eax - 0x10]
neg eax
sbb eax, eax
and eax, ecx
mov ecx, dword [ebp - 0x18]
add ecx, 0xc4
mov eax, dword [eax + 8]
mov dword [ebp - 0x40], eax
lea eax, [ebp - 0x44]
push eax
call fcn.1003db80
push dword [ebx]
mov ecx, dword [ebp - 0x28]
push ebx
call fcn.1002cff0
test esi, esi
je 0x10039b64
lea eax, [esi + 0x10]
mov dword [ebp - 0x10], eax
jmp 0x10039b6b
mov dword [ebp - 0x10], 0
lea ecx, [ebp - 0x10]
call fcn.100409c0
mov eax, dword [ebp - 0x10]
lea ecx, [eax - 0x10]
neg eax
sbb eax, eax
and eax, ecx
mov eax, dword [eax + 0xc]
cmp dword [eax + 4], 0
je 0x10039bc6
test esi, esi
je 0x10039b94
lea eax, [esi + 0x10]
mov dword [ebp - 0x10], eax
jmp 0x10039b9b
mov dword [ebp - 0x10], 0
lea ecx, [ebp - 0x10]
call fcn.100409c0
mov eax, dword [ebp - 0x10]
mov ebx, dword [ebp + 8]
lea ecx, [eax - 0x10]
neg eax
sbb eax, eax
and eax, ecx
mov ecx, dword [ebx + 0xc0]
add eax, 8
add ecx, 0x6c
push eax
call fcn.10040820
jmp 0x10039bc9
mov ebx, dword [ebp + 8]
test esi, esi
je 0x10039bd5
add esi, 0x10
mov dword [ebp - 0x10], esi
jmp 0x10039bdc
mov dword [ebp - 0x10], 0
lea ecx, [ebp - 0x10]
call fcn.100409c0
mov esi, dword [ebp - 0x10]
mov ecx, dword [ebx + 0x2d8]
lea eax, [esi - 0x10]
neg esi
sbb esi, esi
and esi, eax
lea eax, [ecx - 0xc]
neg ecx
push esi
sbb ecx, ecx
and ecx, eax
dec dword [ecx + 0x2c]
add ecx, 0xc
call fcn.1003fbe0
push esi
call fcn.1004a648
add esp, 4
mov eax, dword [ebx + 0x398]
cmp eax, dword [ebx + 0x74]
je 0x1003a1c9
mov edx, dword [edi + 0xc]
lea esi, [edi + 0xc]
mov ecx, dword [ebx + 0x7c]
sub esp, 0x14
movss xmm0, dword [edx + 0xc]
movss xmm1, dword [edx + 0x4c]
movss xmm4, dword [edx + 0x48]
movss xmm5, dword [edx + 0x44]
movss xmm6, dword [edx + 0x2c]
movss xmm3, dword [edx + 0x28]
movss xmm2, dword [edx + 0x24]
mov edx, dword [edx + 0x14]
movss dword [esp + 0x10], xmm0
movss dword [esp + 0xc], xmm1
movss dword [esp + 8], xmm4
movss dword [esp + 4], xmm5
movss dword [esp], xmm6
call fcn.10006f80
add esp, 0x14
mov dword [ebp - 0x10], eax
cmp eax, 0xffff
je 0x1003a1c9
mov ecx, dword [esi]
cmp byte [ecx + 0x50], 0
je 0x10039caf
mov ecx, dword [edi + 8]
lea eax, [ebp - 0x4c]
mov dword [ebp - 0x48], ecx
mov ecx, dword [ebp - 0x18]
push eax
mov dword [ebp - 0x4c], 0
lea ecx, [ecx + 0xb8]
call fcn.1003db80
mov edx, dword [esi]
cmp dword [edx + 0x58], 0
je 0x10039f4f
cmp dword [ebp - 0x24], 0
je 0x10039dc5
mov eax, dword [0x10058ed4]
mov ecx, dword fs:[0x2c]
mov ecx, dword [ecx + eax*4]
mov eax, dword [0x1005976c]
cmp eax, dword [ecx + 4]
jle 0x10039d21
push 0x1005976c
call fcn.1004a1e1
add esp, 4
cmp dword [0x1005976c], 0xffffffff
jne 0x10039d21
mov ecx, str.AttachPlayerObjectToObject
mov dword [ebp - 4], 0
call fcn.1001df70
push 0x1005976c
mov dword [0x10059780], eax
mov dword [ebp - 4], 0xffffffff
call fcn.1004a1a2
add esp, 4
cmp dword [0x10059780], 0
je 0x10039fbe
mov ecx, dword [esi]
mov eax, dword [ecx + 0x58]
mov ebx, eax
mov edx, eax
mov dword [ebp - 0x30], eax
mov esi, eax
mov dword [ebp - 0x2c], eax
mov ecx, eax
movzx eax, byte [eax + 0x30]
push eax
mov eax, ecx
sub esp, 0x30
movss xmm0, dword [eax + 0x2c]
cvtps2pd xmm0, xmm0
movsd qword [esp + 0x28], xmm0
movss xmm0, dword [eax + 0x28]
cvtps2pd xmm0, xmm0
movsd qword [esp + 0x20], xmm0
movss xmm0, dword [edx + 0x24]
cvtps2pd xmm0, xmm0
movsd qword [esp + 0x18], xmm0
movss xmm0, dword [esi + 0x1c]
cvtps2pd xmm0, xmm0
movsd qword [esp + 0x10], xmm0
movss xmm0, dword [ebx + 0x18]
mov ebx, dword [ebp + 8]
cvtps2pd xmm0, xmm0
movsd qword [esp + 8], xmm0
movss xmm0, dword [ecx + 0x14]
cvtps2pd xmm0, xmm0
movsd qword [esp], xmm0
push dword [ebp - 0x24]
push dword [ebp - 0x10]
push dword [ebx + 0x7c]
push str.dddffffffb
push dword [0x10059780]
call fcn.1001dfb0
add esp, 0x48
lea esi, [edi + 0xc]
jmp 0x10039fbe
mov eax, dword [edx + 0x58]
cmp dword [eax + 4], 0xffff
je 0x10039edd
mov eax, dword [0x10058ed4]
mov ecx, dword fs:[0x2c]
mov ecx, dword [ecx + eax*4]
mov eax, dword [0x10059784]
cmp eax, dword [ecx + 4]
jle 0x10039e31
push 0x10059784
call fcn.1004a1e1
add esp, 4
cmp dword [0x10059784], 0xffffffff
jne 0x10039e31
mov ecx, str.AttachPlayerObjectToPlayer
mov dword [ebp - 4], 1
call fcn.1001df70
push 0x10059784
mov dword [0x10059768], eax
mov dword [ebp - 4], 0xffffffff
call fcn.1004a1a2
add esp, 4
cmp dword [0x10059768], 0
je 0x10039fbe
mov ecx, dword [esi]
mov edi, dword [ebp - 0x20]
push 1
sub esp, 0x30
mov edx, dword [ecx + 0x58]
mov ebx, edx
mov esi, dword [edi]
mov ecx, edx
mov eax, edx
mov dword [ebp - 0x30], edx
mov dword [ebp - 0x2c], edx
mov edx, dword [esi + 0x58]
mov esi, ecx
movss xmm0, dword [edx + 0x2c]
cvtps2pd xmm0, xmm0
movsd qword [esp + 0x28], xmm0
movss xmm0, dword [edx + 0x28]
mov edx, ecx
cvtps2pd xmm0, xmm0
movsd qword [esp + 0x20], xmm0
movss xmm0, dword [edx + 0x24]
cvtps2pd xmm0, xmm0
movsd qword [esp + 0x18], xmm0
movss xmm0, dword [esi + 0x1c]
cvtps2pd xmm0, xmm0
movsd qword [esp + 0x10], xmm0
movss xmm0, dword [ebx + 0x18]
mov ebx, dword [ebp + 8]
cvtps2pd xmm0, xmm0
movsd qword [esp + 8], xmm0
movss xmm0, dword [eax + 0x14]
cvtps2pd xmm0, xmm0
movsd qword [esp], xmm0
push dword [ecx + 4]
push dword [ebp - 0x10]
push dword [ebx + 0x7c]
push str.dddffffffd
push dword [0x10059768]
call fcn.1001dfb0
mov edi, dword [ebp - 0x14]
add esp, 0x48
lea esi, [edi + 0xc]
jmp 0x10039fbe
cmp dword [eax + 0x34], 0xffff
je 0x10039fbe
mov edi, dword [ebp - 0x20]
mov ebx, eax
mov edx, dword [ebp - 0x10]
mov esi, edi
sub esp, 0x14
movss xmm4, dword [ebx + 0x1c]
movss xmm5, dword [ebx + 0x18]
movss xmm2, dword [ebx + 0x24]
movss xmm3, dword [ebx + 0x14]
mov ebx, dword [esi]
mov eax, dword [edi]
mov ecx, dword [ebx + 0x58]
mov eax, dword [eax + 0x58]
mov ebx, dword [ebp + 8]
movss xmm0, dword [ecx + 0x2c]
movss xmm1, dword [ecx + 0x28]
mov ecx, dword [ebx + 0x7c]
movss dword [esp + 0x10], xmm0
movss dword [esp + 0xc], xmm1
movss dword [esp + 8], xmm2
movss dword [esp + 4], xmm4
movss dword [esp], xmm5
push dword [eax + 0x34]
call fcn.100070b0
add esp, 0x18
jmp 0x10039fbb
cmp dword [edx + 0x74], 0
je 0x10039fbe
mov ebx, dword [edx + 0x74]
sub esp, 0x14
mov edi, dword [ebp - 0x20]
mov esi, edi
mov edx, dword [ebp - 0x10]
movss xmm5, dword [ebx + 0x50]
movss xmm6, dword [ebx + 0xc]
movss xmm4, dword [ebx + 0x2c]
movss xmm3, dword [ebx + 8]
mov ebx, dword [esi]
mov eax, dword [edi]
mov ecx, dword [ebx + 0x74]
mov eax, dword [eax + 0x74]
mov ebx, dword [ebp + 8]
movss xmm0, dword [ecx + 0x34]
movss xmm1, dword [ecx + 0x30]
movss xmm2, dword [eax + 4]
mov ecx, dword [ebx + 0x7c]
movss dword [esp + 0x10], xmm0
movss dword [esp + 0xc], xmm1
movss dword [esp + 8], xmm4
movss dword [esp + 4], xmm5
movss dword [esp], xmm6
call fcn.100076d0
add esp, 0x14
mov edi, dword [ebp - 0x14]
mov esi, dword [esi]
cmp dword [esi + 0x64], 0
je 0x10039fd1
mov eax, dword [esi + 0x60]
mov esi, dword [esi + 0x70]
mov esi, dword [esi + eax*4]
jmp 0x10039fd3
xor esi, esi
test esi, esi
setne al
test al, al
je 0x1003a078
cmp dword [esi + 0xc], 0
je 0x1003a019
mov eax, dword [esi + 0xc]
cmp dword [eax + 0x20], 0x10
lea edx, [eax + 0xc]
jb 0x10039ff4
mov edx, dword [edx]
cmp dword [eax + 0x38], 0x10
lea ecx, [eax + 0x24]
jb 0x10039fff
mov ecx, dword [ecx]
push dword [eax]
push edx
mov edx, dword [ebp - 0x10]
push ecx
push dword [eax + 4]
mov ecx, dword [ebx + 0x7c]
push dword [esi + 8]
call fcn.10007800
add esp, 0x14
jmp 0x1003a066
cmp dword [esi + 0x10], 0
je 0x1003a066
mov eax, dword [esi + 0x10]
cmp dword [eax + 0x20], 0x10
lea edx, [eax + 0xc]
jb 0x1003a02d
mov edx, dword [edx]
mov edi, eax
cmp dword [edi + 0x44], 0x10
lea ecx, [edi + 0x30]
jb 0x1003a03a
mov ecx, dword [ecx]
mov al, byte [edi + 4]
mov byte [ebp - 0x34], al
mov eax, edi
push dword [eax + 0x48]
push dword [eax]
push dword [eax + 8]
push dword [ebp - 0x34]
push dword [eax + 0x24]
push edx
push dword [edi + 0x2c]
mov edx, dword [ebp - 0x10]
push dword [esi + 8]
push ecx
mov ecx, dword [ebx + 0x7c]
call fcn.100079c0
add esp, 0x24
mov esi, dword [esi]
test esi, esi
setne al
test al, al
jne 0x10039fe0
mov edi, dword [ebp - 0x14]
mov eax, dword [edi + 0xc]
cmp byte [eax + 0x18], 0
je 0x1003a101
push dword [ebp - 0x10]
mov eax, dword [ebx + 0x7c]
push eax
push str.SetPlayerObjectNoCameraCol__d___d_
mov dword [ebp - 0x30], eax
call fcn.100034d0
mov esi, dword [0x10059568]
add esp, 0xc
test esi, esi
je 0x1003a0ce
cmp esi, fcn.100041f0
jne 0x1003a0da
push str.SAMGDK_NATIVE_SEARCH_ALWAYS
call dword [sym.imp.api_ms_win_crt_environment_l1_1_0.dll_getenv]
add esp, 4
test eax, eax
je 0x1003a0da
push eax
call dword [sym.imp.api_ms_win_crt_convert_l1_1_0.dll_atoi]
add esp, 4
test eax, eax
je 0x1003a0da
mov ecx, str.SetPlayerObjectNoCameraCol
call fcn.10004200
mov esi, eax
mov eax, dword [ebp - 0x30]
mov dword [ebp - 0x7c], eax
mov eax, dword [ebp - 0x10]
mov dword [ebp - 0x78], eax
lea eax, [ebp - 0x80]
push eax
push 0x100595e0
mov dword [0x10059568], esi
mov dword [ebp - 0x80], 8
call esi
add esp, 8
mov eax, dword [edi + 8]
lea ecx, [ebx + 0x390]
mov dword [ebp - 0x3c], eax
mov eax, dword [ebp - 0x10]
mov dword [ebp - 0x38], eax
lea eax, [ebp - 0x3c]
push eax
push eax
lea eax, [ebp - 0x5c]
push eax
call fcn.10041650
mov eax, dword [edi + 0xc]
lea ecx, [edi + 0xc]
cmp dword [eax + 4], 0
je 0x1003a18c
push ecx
lea edx, [edi + 8]
lea ecx, [ebp - 0x54]
call fcn.100154b0
add esp, 4
push eax
push eax
mov dword [ebp - 4], 2
lea eax, [ebp - 0x64]
mov ecx, dword [ebx + 0xc0]
push eax
add ecx, 0x6c
call fcn.10016a30
mov dword [ebp - 4], 0xffffffff
mov esi, dword [ebp - 0x50]
test esi, esi
je 0x1003a18c
add dword [esi + 0x40], 0xffffffff
jne 0x1003a18c
mov ecx, esi
call fcn.1000c960
mov dword [ebp - 4], 3
push dword [esi - 4]
call dword [sym.imp.api_ms_win_crt_heap_l1_1_0.dll_free]
add esp, 4
mov dword [ebp - 4], 0xffffffff
mov esi, dword [ebx + 0x194]
lea ecx, [ebp - 0x28]
mov dword [ebp - 0x28], edi
call fcn.1003fb70
lea eax, [esi - 0xc]
neg esi
push edi
sbb esi, esi
and esi, eax
dec dword [esi + 0x2c]
lea ecx, [esi + 0xc]
call fcn.1003fbe0
push edi
call fcn.1004a648
mov edi, dword [ebp - 0x28]
add esp, 4
mov edx, dword [ebp - 0x1c]
mov esi, dword [ebp - 0x18]
jmp 0x1003982c
mov edi, dword [ebx + 0x14c]
mov eax, dword [ebx + 0x398]
push dword [ebp + 0xc]
mov dword [ebx + 0x4c], eax
lea eax, [edi - 0xc]
neg edi
sbb edi, edi
and edi, eax
lea ecx, [edi + 0xc]
call fcn.1000c520
lea ecx, [edi + 0xc]
call fcn.1003fa60
mov dword [edi + 0x2c], 0
mov dword [ebx + 0xc], 0
mov eax, dword [ebx + 0x14c]
mov edx, 0x2c
test eax, eax
lea ecx, [eax + 0x20]
cmove ecx, edx
cmp dword [ecx], 0
jne 0x1003a253
cmp dword [ebx + 0x3e0], 0
jne 0x1003a253
mov edi, dword [ebx + 0x290]
push dword [ebp + 0xc]
lea eax, [edi - 0xc]
neg edi
sbb edi, edi
and edi, eax
lea ecx, [edi + 0xc]
call fcn.1000c520
lea ecx, [edi + 0xc]
call fcn.1003fa60
mov dword [edi + 0x2c], 0
and dword [ebx + 0xd4], 0xfffffffe
mov ecx, dword [ebp - 0xc]
pop edi
pop esi
mov dword fs:[0], ecx
pop ebx
mov esp, ebp
pop ebp
ret 8