Function at 0x46d868
Capabilities:
Set environment variable

Disassembly:
push ebp
mov ebp, esp
mov ecx, 0x65
push 0
push 0
dec ecx
jne 0x46d870
push ebx
push esi
push edi
mov dword [ebp - 4], eax
xor eax, eax
push ebp
push 0x46e82c
push dword fs:[eax]
mov dword fs:[eax], esp
xor eax, eax
mov dword [ebp - 0xc], eax
xor eax, eax
mov dword [ebp - 0x10], eax
xor eax, eax
mov dword [ebp - 0x14], eax
mov dl, 1
mov eax, dword [0x40ee48]
call fcn.004030fc
mov dword [0x9aa168], eax
mov eax, dword [0x9a850b]
mov dword [ebp - 8], eax
lea eax, [ebp - 0x30]
mov edx, dword [ebp - 8]
shl edx, 5
lea edx, [edx*8 + 0x9a8e37]
call fcn.00403f70
mov edx, dword [ebp - 0x30]
mov eax, 0x46e844
call fcn.004042b4
mov dword [ebp - 0x34], eax
call fcn.00455040
test al, al
jne 0x46e7ee
mov edx, dword [ebp - 0x30]
mov eax, 0x46e854
call fcn.004042b4
mov dword [0x9aa148], eax
xor eax, eax
push ebp
push 0x46d931
push dword fs:[eax]
mov dword fs:[eax], esp
mov eax, dword [ebp - 0x30]
call fcn.00404190
push eax
push 0x46e85c
call sub.kernel32.dll_SetEnvironmentVariableA
push 0x46e864
push 0x46e86c
call sub.kernel32.dll_SetEnvironmentVariableA
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
jmp 0x46d93b
lea eax, [ebp - 0x40]
mov edx, 0x9a7bce
call fcn.00403f70
xor eax, eax
push ebp
push 0x46d975
push dword fs:[eax]
mov dword fs:[eax], esp
mov eax, dword [0x9aa13c]
call fcn.00404190
push eax
push 0x46e878
call sub.kernel32.dll_SetEnvironmentVariableA
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
jmp 0x46d97f
lea eax, [ebp - 0x38]
mov edx, 0x9a9d6c
call fcn.00403f70
xor eax, eax
push ebp
push 0x46da00
push dword fs:[eax]
mov dword fs:[eax], esp
cmp dword [ebp - 0x38], 0
je 0x46d9b3
mov eax, dword [ebp - 0x38]
call fcn.00404190
push eax
push 0x46e880
call sub.kernel32.dll_SetEnvironmentVariableA
cmp dword [ebp - 0x38], 0
je 0x46d9cc
mov eax, dword [ebp - 0x38]
call fcn.00404190
push eax
push 0x46e88c
call sub.kernel32.dll_SetEnvironmentVariableA
cmp dword [ebp - 0x38], 0
jne 0x46d9e1
push 0x46e898
push 0x46e880
call sub.kernel32.dll_SetEnvironmentVariableA
cmp dword [ebp - 0x38], 0
jne 0x46d9f6
push 0x46e898
push 0x46e88c
call sub.kernel32.dll_SetEnvironmentVariableA
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
jmp 0x46da0a
cmp dword [ebp - 0x38], 0
je 0x46da30
lea edx, [ebp - 0x210]
mov eax, 0x46e8b0
call fcn.004550fc
mov edx, dword [ebp - 0x210]
mov eax, dword [0x47cdb4]
call fcn.00403da4
cmp dword [ebp - 0x38], 0
jne 0x46da45
mov eax, dword [0x47cdb4]
mov edx, 0x46e8c4
call fcn.00403da4
mov eax, dword [ebp - 8]
mov eax, dword [eax*4 + 0x9a7ab0]
test eax, eax
je 0x46da59
mov edx, dword [ebp - 8]
mov dword [ebp - 0xc], eax
mov eax, dword [ebp - 8]
mov eax, dword [eax*4 + 0x9a7ad8]
test eax, eax
je 0x46da6d
mov edx, dword [ebp - 8]
mov dword [ebp - 0x10], eax
lea eax, [ebp - 0x18]
imul edx, dword [ebp - 8], 0xd
add edx, 0x9a7d54
call fcn.00403f70
cmp byte [0x9a9e6c], 1
jne 0x46da8f
mov byte [0x9aa0df], 1
xor eax, eax
push ebp
push 0x46dad3
push dword fs:[eax]
mov dword fs:[eax], esp
call fcn.00409b50
add esp, 0xfffffff8
fstp qword [esp]
wait
call fcn.0046d7d8
mov ebx, eax
mov eax, dword [ebp - 0x18]
call fcn.0040aef8
add esp, 0xfffffff8
fstp qword [esp]
wait
call fcn.0046d7d8
sub ebx, eax
mov dword [ebp - 0x14], ebx
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
jmp 0x46dadd
mov eax, dword [ebp - 0x18]
mov edx, 0x46e8dc
call fcn.004040dc
jne 0x46daf1
xor eax, eax
mov dword [ebp - 0x14], eax
mov eax, dword [ebp - 0x18]
mov edx, 0x46e8dc
call fcn.004040dc
jne 0x46defd
lea eax, [ebp - 0x1c]
push eax
lea edx, [ebp - 0x220]
mov eax, dword [0x47cfc0]
mov eax, dword [eax]
call fcn.00453c08
lea ecx, [ebp - 0x220]
mov edx, 0x46e8f0
mov eax, 0x46e900
call fcn.0046c144
mov edx, dword [ebp - 0x1c]
mov eax, 0x46e914
call fcn.004042b4
lea edx, [ebp - 0x1c]
mov ecx, eax
mov eax, 1
xchg edx, eax
call fcn.00404210
xor eax, eax
push ebp
push 0x46dc24
push dword fs:[eax]
mov dword fs:[eax], esp
mov eax, dword [0x47cff4]
cmp dword [eax], 2
jne 0x46dbad
mov eax, dword [0x47cf9c]
push dword [eax]
push 0x46e920
lea edx, [ebp - 0x224]
mov eax, 0x46e92c
call fcn.004550fc
push dword [ebp - 0x224]
lea eax, [ebp - 0x210]
mov edx, 3
call fcn.0040408c
mov ecx, dword [ebp - 0x210]
mov dl, 1
mov eax, dword [0x453e20]
call fcn.00453ec8
mov dword [0x9aa0d0], eax
mov eax, dword [0x47cff4]
cmp dword [eax], 2
je 0x46dbde
lea edx, [ebp - 0x210]
mov eax, 0x46e92c
call fcn.004550fc
mov ecx, dword [ebp - 0x210]
mov dl, 1
mov eax, dword [0x453e20]
call fcn.00453ec8
mov dword [0x9aa0d0], eax
call fcn.00409b24
add esp, 0xfffffff8
fstp qword [esp]
wait
lea eax, [ebp - 0x210]
call fcn.0040a70c
mov eax, dword [ebp - 0x210]
push eax
mov ecx, 0x46e940
mov edx, dword [ebp - 0x1c]
mov eax, dword [0x9aa0d0]
mov ebx, dword [eax]
call dword [ebx + 4]
mov dl, 1
mov eax, dword [0x9aa0d0]
mov ecx, dword [eax]
call dword [ecx - 4]
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
jmp 0x46dc2e
mov eax, dword [0x47cf9c]
push dword [eax]
push 0x46e920
push dword [ebp - 0x1c]
push 0x46e954
lea eax, [ebp - 0x24]
mov edx, 4
call fcn.0040408c
mov eax, dword [ebp - 0x24]
call fcn.004087e4
test al, al
je 0x46dc67
mov byte [0x9aa0f4], 1
jmp 0x46e7ee
xor eax, eax
push ebp
push 0x46dd26
push dword fs:[eax]
mov dword fs:[eax], esp
mov eax, dword [0x47cff4]
cmp dword [eax], 2
jne 0x46dcc8
mov eax, dword [0x47cf9c]
push dword [eax]
push 0x46e920
lea edx, [ebp - 0x224]
mov eax, 0x46e92c
call fcn.004550fc
push dword [ebp - 0x224]
lea eax, [ebp - 0x210]
mov edx, 3
call fcn.0040408c
mov ecx, dword [ebp - 0x210]
mov dl, 1
mov eax, dword [0x453e20]
call fcn.00453ec8
mov dword [0x9aa0d0], eax
mov eax, dword [0x47cff4]
cmp dword [eax], 2
je 0x46dcf9
lea edx, [ebp - 0x210]
mov eax, 0x46e92c
call fcn.004550fc
mov ecx, dword [ebp - 0x210]
mov dl, 1
mov eax, dword [0x453e20]
call fcn.00453ec8
mov dword [0x9aa0d0], eax
push 0
lea eax, [ebp - 0x20]
push eax
mov ecx, 0x46e964
mov edx, dword [ebp - 0x1c]
mov eax, dword [0x9aa0d0]
mov ebx, dword [eax]
call dword [ebx]
mov dl, 1
mov eax, dword [0x9aa0d0]
mov ecx, dword [eax]
call dword [ecx - 4]
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
jmp 0x46dd30
lea edx, [ebp - 0x210]
mov eax, 0x46e97c
call fcn.004550fc
mov edx, dword [ebp - 0x210]
mov eax, dword [ebp - 0x20]
call fcn.004040dc
jne 0x46dd5c
mov byte [0x9aa0f4], 1
jmp 0x46e7ee
mov eax, dword [0x47cf9c]
push dword [eax]
push 0x46e920
push dword [ebp - 0x1c]
push 0x46e954
lea eax, [ebp - 0x24]
mov edx, 4
call fcn.0040408c
mov edx, dword [ebp - 0x24]
lea eax, [ebp - 0x20c]
call fcn.00405a56
lea eax, [ebp - 0x20c]
call fcn.00405c3e
mov edx, 0x46e98c
lea eax, [ebp - 0x20c]
call fcn.00404360
call fcn.00405e4f
lea eax, [ebp - 0x20c]
call fcn.00405bc0
xor eax, eax
push ebp
push 0x46de75
push dword fs:[eax]
mov dword fs:[eax], esp
mov eax, dword [0x47cff4]
cmp dword [eax], 2
jne 0x46de17
mov eax, dword [0x47cf9c]
push dword [eax]
push 0x46e920
lea edx, [ebp - 0x224]
mov eax, 0x46e92c
call fcn.004550fc
push dword [ebp - 0x224]
lea eax, [ebp - 0x210]
mov edx, 3
call fcn.0040408c
mov ecx, dword [ebp - 0x210]
mov dl, 1
mov eax, dword [0x453e20]
call fcn.00453ec8
mov dword [0x9aa0d0], eax
mov eax, dword [0x47cff4]
cmp dword [eax], 2
je 0x46de48
lea edx, [ebp - 0x210]
mov eax, 0x46e92c
call fcn.004550fc
mov ecx, dword [ebp - 0x210]
mov dl, 1
mov eax, dword [0x453e20]
call fcn.00453ec8
mov dword [0x9aa0d0], eax
push 0x46e9c4
mov ecx, 0x46e964
mov edx, dword [ebp - 0x1c]
mov eax, dword [0x9aa0d0]
mov ebx, dword [eax]
call dword [ebx + 4]
mov dl, 1
mov eax, dword [0x9aa0d0]
mov ecx, dword [eax]
call dword [ecx - 4]
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
jmp 0x46de7f
call fcn.00409b24
add esp, 0xfffffff8
fstp qword [esp]
wait
lea eax, [ebp - 0x210]
call fcn.0040a70c
mov edx, dword [ebp - 0x210]
lea eax, [ebp - 0x324]
mov ecx, 0xff
call fcn.00403fa8
lea edx, [ebp - 0x324]
imul eax, dword [ebp - 8], 0xd
add eax, 0x9a7d54
mov cl, 0xc
call fcn.00402c30
lea eax, [ebp - 0x224]
call fcn.00455428
push dword [ebp - 0x224]
push 0x46e920
mov eax, dword [0x47cfc0]
push dword [eax]
lea eax, [ebp - 0x210]
mov edx, 3
call fcn.0040408c
mov edx, dword [ebp - 0x210]
mov eax, dword [ebp - 4]
call fcn.0046efcc
call fcn.0046d2d8
mov eax, dword [0x47ce24]
mov edx, 0x9a7ff5
call fcn.00403f70
cmp byte [0x9a9e75], 1
jne 0x46df46
push dword [0x9a9e71]
push dword [0x9a9e6d]
call fcn.0046d7d8
mov ebx, eax
call fcn.00409b50
add esp, 0xfffffff8
fstp qword [esp]
wait
call fcn.0046d7d8
sub ebx, eax
mov dword [0x9aa100], ebx
cmp dword [ebp - 0xc], 0
je 0x46e005
lea edx, [ebp - 0x210]
mov ebx, dword [ebp - 0xc]
sub ebx, dword [ebp - 0x14]
mov eax, ebx
call fcn.004085f0
mov edx, dword [ebp - 0x210]
mov eax, dword [0x47ccc4]
mov eax, dword [eax]
mov eax, dword [eax + 0x2f0]
call fcn.0042af80
mov dword [0x9aa0e4], ebx
mov eax, dword [0x9aa0e4]
mov dword [0x9aa0e8], eax
cmp byte [0x9a9e75], 1
jne 0x46e005
push dword [0x9a9e71]
push dword [0x9a9e6d]
call fcn.0046d7d8
mov ebx, eax
call fcn.00409b50
add esp, 0xfffffff8
fstp qword [esp]
wait
call fcn.0046d7d8
sub ebx, eax
mov dword [0x9aa100], ebx
cmp dword [0x9aa100], 0
jge 0x46dfd0
xor eax, eax
mov dword [0x9aa100], eax
mov eax, dword [0x9aa0e4]
cmp eax, dword [0x9aa100]
jle 0x46e005
lea edx, [ebp - 0x210]
mov eax, dword [0x9aa100]
call fcn.004085f0
mov edx, dword [ebp - 0x210]
mov eax, dword [0x47ccc4]
mov eax, dword [eax]
mov eax, dword [eax + 0x2f0]
call fcn.0042af80
cmp dword [ebp - 0x10], 0
je 0x46e037
lea edx, [ebp - 0x210]
mov eax, dword [ebp - 0x10]
sub eax, dword [0x9a7ef1]
call fcn.004085f0
mov edx, dword [ebp - 0x210]
mov eax, dword [0x47ccc4]
mov eax, dword [eax]
mov eax, dword [eax + 0x2f0]
call fcn.0042af80
cmp dword [ebp - 0xc], 0
je 0x46e0fe
mov eax, dword [0x47ccc4]
mov eax, dword [eax]
mov eax, dword [eax + 0x2f4]
xor edx, edx
call fcn.0045d804
mov eax, dword [0x47ccc4]
mov eax, dword [eax]
mov eax, dword [eax + 0x2f4]
mov edx, dword [ebp - 0xc]
call fcn.0045d810
mov edx, dword [ebp - 0xc]
sub edx, dword [ebp - 0x14]
mov eax, dword [0x47ccc4]
mov eax, dword [eax]
mov eax, dword [eax + 0x2f4]
call fcn.0045d820
cmp byte [0x9a9e75], 1
jne 0x46e0b0
mov eax, dword [0x9aa0e4]
cmp eax, dword [0x9aa100]
jle 0x46e0b0
mov eax, dword [0x47ccc4]
mov eax, dword [eax]
mov eax, dword [eax + 0x2f4]
mov edx, dword [0x9aa100]
call fcn.0045d820
xor eax, eax
push ebp
push 0x46e0f4
push dword fs:[eax]
mov dword fs:[eax], esp
lea edx, [ebp - 0x210]
mov eax, dword [ebp - 0xc]
sub eax, dword [ebp - 0x14]
call fcn.004085f0
mov eax, dword [ebp - 0x210]
call fcn.00404190
push eax
push 0x46e9cc
call sub.kernel32.dll_SetEnvironmentVariableA
call fcn.0040cc5c
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
jmp 0x46e0fe
cmp dword [ebp - 0x10], 0
je 0x46e1d5
mov eax, dword [0x47ccc4]
mov eax, dword [eax]
mov eax, dword [eax + 0x2f4]
xor edx, edx
call fcn.0045d804
mov eax, dword [0x47ccc4]
mov eax, dword [eax]
mov eax, dword [eax + 0x2f4]
mov edx, dword [ebp - 0x10]
call fcn.0045d810
mov edx, dword [ebp - 0x10]
sub edx, dword [0x9a7ef1]
mov eax, dword [0x47ccc4]
mov eax, dword [eax]
mov eax, dword [eax + 0x2f4]
call fcn.0045d820
inc dword [0x9a7ef1]
lea eax, [ebp - 0x224]
call fcn.00455428
push dword [ebp - 0x224]
push 0x46e920
mov eax, dword [0x47cfc0]
push dword [eax]
lea eax, [ebp - 0x210]
mov edx, 3
call fcn.0040408c
mov edx, dword [ebp - 0x210]
mov eax, dword [ebp - 4]
call fcn.0046efcc
xor eax, eax
push ebp
push 0x46e1cb
push dword fs:[eax]
mov dword fs:[eax], esp
lea edx, [ebp - 0x210]
mov eax, dword [0x9a7ef1]
call fcn.004085f0
mov eax, dword [ebp - 0x210]
call fcn.00404190
push eax
push 0x46e9d8
call sub.kernel32.dll_SetEnvironmentVariableA
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
jmp 0x46e1d5
mov eax, dword [0x9a80fb]
and eax, 0x40
cmp eax, 0x40
jne 0x46e1f1
lea ecx, [ebp - 0x2c]
xor edx, edx
mov eax, dword [0x9aa170]
mov ebx, dword [eax]
call dword [ebx + 0xc]
mov eax, dword [0x9a80fb]
and eax, 0x10
cmp eax, 0x10
jne 0x46e239
mov eax, dword [0x47ce1c]
cmp dword [eax], 0x1770
jge 0x46e213
lea eax, [ebp - 0x2c]
call fcn.0046c068
cmp dword [ebp - 0x2c], 0
jne 0x46e239
call fcn.004553f8
mov dword [ebp - 0x328], eax
fild dword [ebp - 0x328]
add esp, 0xfffffff4
fstp xword [esp]
wait
lea eax, [ebp - 0x2c]
call fcn.00409630
mov eax, dword [0x9a80fb]
and eax, 1
dec eax
jne 0x46e25d
lea eax, [ebp - 0x210]
call fcn.0045518c
mov edx, dword [ebp - 0x210]
lea eax, [ebp - 0x2c]
call fcn.00403fd4
mov eax, dword [0x9a80fb]
and eax, 2
cmp eax, 2
jne 0x46e29b
call fcn.004553f8
mov dword [ebp - 0x328], eax
fild dword [ebp - 0x328]
add esp, 0xfffffff4
fstp xword [esp]
wait
lea eax, [ebp - 0x210]
call fcn.00409630
mov edx, dword [ebp - 0x210]
lea eax, [ebp - 0x2c]
call fcn.00403fd4
mov eax, dword [0x9a80fb]
and eax, 4
cmp eax, 4
jne 0x46e2c1
lea eax, [ebp - 0x210]
call fcn.004553bc
mov edx, dword [ebp - 0x210]
lea eax, [ebp - 0x2c]
call fcn.00403fd4
mov eax, dword [0x9a80fb]
and eax, 8
cmp eax, 8
jne 0x46e2e1
lea eax, [ebp - 0x3c]
call fcn.00461d94
lea eax, [ebp - 0x2c]
mov edx, dword [ebp - 0x3c]
call fcn.00403fd4
mov eax, dword [0x9a80fb]
and eax, 0x20
cmp eax, 0x20
jne 0x46e31f
call fcn.0046bf44
mov dword [ebp - 0x328], eax
fild dword [ebp - 0x328]
add esp, 0xfffffff4
fstp xword [esp]
wait
lea eax, [ebp - 0x210]
call fcn.00409630
mov edx, dword [ebp - 0x210]
lea eax, [ebp - 0x2c]
call fcn.00403fd4
mov eax, dword [ebp - 8]
mov ebx, dword [eax*4 + 0x9a9933]
lea eax, [ebp - 0x1c]
push eax
push dword [ebp - 0x2c]
lea edx, [ebp - 0x224]
mov eax, ebx
call fcn.004085f0
push dword [ebp - 0x224]
mov eax, dword [0x47cfc0]
push dword [eax]
lea eax, [ebp - 0x210]
mov edx, 3
call fcn.0040408c
mov eax, dword [ebp - 0x210]
lea edx, [ebp - 0x220]
call fcn.00453c08
lea ecx, [ebp - 0x220]
mov edx, 0x46e9e8
mov eax, 0x46e900
call fcn.0046c144
mov edx, dword [ebp - 0x1c]
mov eax, 0x46e914
call fcn.004042b4
mov ebx, eax
lea eax, [ebp - 0x1c]
mov ecx, ebx
mov edx, 1
call fcn.00404210
mov eax, dword [ebp - 0x1c]
call fcn.00403fcc
mov ecx, eax
sub ecx, 8
lea eax, [ebp - 0x1c]
mov edx, 8
call fcn.00404210
lea edx, [ebp - 0x1c]
mov ecx, 5
mov eax, 0x46e9fc
call fcn.00404258
lea edx, [ebp - 0x210]
mov eax, dword [ebp - 0x2c]
call fcn.004084d4
cmp dword [ebp - 0x210], 0
jne 0x46e3ee
lea eax, [ebp - 0x1c]
mov edx, 0x46ea08
call fcn.00403de8
lea edx, [ebp - 0x210]
mov eax, dword [ebp - 0x1c]
call fcn.004082f0
mov edx, dword [ebp - 0x210]
lea eax, [ebp - 0x1c]
call fcn.00403de8
xor eax, eax
push ebp
push 0x46e464
push dword fs:[eax]
mov dword fs:[eax], esp
mov dl, 1
mov eax, dword [0x40ee48]
call fcn.004030fc
mov ebx, eax
mov edx, dword [ebp - 0x1c]
mov eax, ebx
mov ecx, dword [eax]
call dword [ecx + 0x34]
lea eax, [ebp - 0x210]
mov ecx, 0x46ea1c
mov edx, dword [0x9aa0c4]
call fcn.00404018
mov edx, dword [ebp - 0x210]
mov eax, ebx
mov ecx, dword [eax]
call dword [ecx + 0x64]
mov eax, ebx
call fcn.0040312c
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
jmp 0x46e46e
xor eax, eax
push ebp
push 0x46e4ef
push dword fs:[eax]
mov dword fs:[eax], esp
cmp byte [0x9a7c33], 0
jne 0x46e498
mov eax, dword [ebp - 0x1c]
call fcn.00404190
push eax
push 0x46ea28
call sub.kernel32.dll_SetEnvironmentVariableA
cmp byte [0x9a7c33], 0
je 0x46e4e5
push dword [ebp - 0x1c]
push 0x46e9fc
lea eax, [ebp - 0x224]
mov edx, 0x9a7c33
call fcn.00403f70
push dword [ebp - 0x224]
lea eax, [ebp - 0x210]
mov edx, 3
call fcn.0040408c
mov eax, dword [ebp - 0x210]
call fcn.00404190
push eax
push 0x46ea28
call sub.kernel32.dll_SetEnvironmentVariableA
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
jmp 0x46e4f9
cmp byte [0x9a7c33], 0
je 0x46e548
push dword [ebp - 0x1c]
push 0x46e9fc
lea eax, [ebp - 0x224]
mov edx, 0x9a7c33
call fcn.00403f70
push dword [ebp - 0x224]
lea eax, [ebp - 0x210]
mov edx, 3
call fcn.0040408c
mov edx, dword [ebp - 0x210]
mov eax, dword [0x47ccc4]
mov eax, dword [eax]
mov eax, dword [eax + 0x334]
call fcn.0042af80
cmp byte [0x9a7c33], 0
jne 0x46e566
mov eax, dword [0x47ccc4]
mov eax, dword [eax]
mov eax, dword [eax + 0x334]
mov edx, dword [ebp - 0x1c]
call fcn.0042af80
mov eax, dword [ebp - 0x1c]
mov edx, 0x46ea08
call fcn.004040dc
mov eax, 0x2710
call fcn.00402d74
mov ebx, eax
lea eax, [ebp - 0x28]
push eax
call fcn.004553f8
mov dword [ebp - 0x328], eax
fild dword [ebp - 0x328]
add esp, 0xfffffff4
fstp xword [esp]
wait
lea eax, [ebp - 0x210]
call fcn.00409630
mov eax, dword [ebp - 0x210]
mov ecx, 5
mov edx, 1
call fcn.004041d0
lea edx, [ebp - 0x224]
mov eax, ebx
call fcn.004085f0
mov ecx, dword [ebp - 0x224]
lea eax, [ebp - 0x210]
mov edx, dword [ebp - 0x28]
call fcn.00404018
mov edx, dword [ebp - 0x210]
lea eax, [ebp - 0x324]
mov ecx, 0xff
call fcn.00403fa8
lea edx, [ebp - 0x324]
mov eax, 0x9a9d61
mov cl, 0xa
call fcn.00402c30
lea eax, [ebp - 0x1c]
push eax
lea edx, [ebp - 0x220]
mov eax, dword [0x47cfc0]
mov eax, dword [eax]
call fcn.00453c08
lea ecx, [ebp - 0x220]
mov edx, 0x46e8f0
mov eax, 0x46e900
call fcn.0046c144
mov edx, dword [ebp - 0x1c]
mov eax, 0x46e914
call fcn.004042b4
lea edx, [ebp - 0x1c]
mov ecx, eax
mov eax, 1
xchg edx, eax
call fcn.00404210
mov eax, dword [0x47cff4]
cmp dword [eax], 2
jne 0x46e69f
mov eax, dword [0x47cf9c]
push dword [eax]
push 0x46e920
lea edx, [ebp - 0x224]
mov eax, 0x46e92c
call fcn.004550fc
push dword [ebp - 0x224]
lea eax, [ebp - 0x210]
mov edx, 3
call fcn.0040408c
mov ecx, dword [ebp - 0x210]
mov dl, 1
mov eax, dword [0x453e20]
call fcn.00453ec8
mov dword [0x9aa0d0], eax
mov eax, dword [0x47cff4]
cmp dword [eax], 2
je 0x46e6d0
lea edx, [ebp - 0x210]
mov eax, 0x46e92c
call fcn.004550fc
mov ecx, dword [ebp - 0x210]
mov dl, 1
mov eax, dword [0x453e20]
call fcn.00453ec8
mov dword [0x9aa0d0], eax
lea edx, [ebp - 0x210]
mov eax, ebx
call fcn.004085f0
mov eax, dword [ebp - 0x210]
push eax
mov ecx, 0x46ea3c
mov edx, dword [ebp - 0x1c]
mov eax, dword [0x9aa0d0]
mov ebx, dword [eax]
call dword [ebx + 4]
mov dl, 1
mov eax, dword [0x9aa0d0]
mov ecx, dword [eax]
call dword [ecx - 4]
lea eax, [ebp - 0x224]
call fcn.00455428
push dword [ebp - 0x224]
push 0x46e920
mov eax, dword [0x47cfc0]
push dword [eax]
lea eax, [ebp - 0x210]
mov edx, 3
call fcn.0040408c
mov edx, dword [ebp - 0x210]
mov eax, dword [ebp - 4]
call fcn.0046efcc
cmp dword [ebp - 0x34], 0
jle 0x46e760
cmp byte [0x9aa0dd], 1
jne 0x46e760
mov eax, dword [0x47ccc4]
mov eax, dword [eax]
mov edx, dword [eax]
call dword [edx + 0xcc]
jmp 0x46e7ee
cmp dword [ebp - 0x34], 0
jg 0x46e7ee
cmp dword [0x9aa148], 0
jg 0x46e7ee
cmp byte [0x9a80f6], 1
jne 0x46e791
cmp dword [ebp - 0x34], 0
jne 0x46e791
mov eax, dword [0x47ccc4]
mov eax, dword [eax]
mov edx, dword [eax]
call dword [edx + 0xcc]
cmp byte [0x9aa0dd], 1
jne 0x46e7a9
mov eax, dword [0x47ccc4]
mov eax, dword [eax]
mov edx, dword [eax]
call dword [edx + 0xcc]
mov eax, dword [0x9a9f7a]
test eax, eax
jle 0x46e7ee
cmp dword [ebp - 0xc], 0
je 0x46e7ee
xor edx, edx
push ebp
push 0x46e7e4
push dword fs:[edx]
mov dword fs:[edx], esp
cmp eax, dword [ebp - 0x14]
jne 0x46e7da
mov eax, dword [0x47ccc4]
mov eax, dword [eax]
mov edx, dword [eax]
call dword [edx + 0xcc]
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
jmp 0x46e7ee
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x46e833
lea eax, [ebp - 0x224]
call fcn.00403d50
lea eax, [ebp - 0x210]
call fcn.00403d50
lea eax, [ebp - 0x40]
mov edx, 3
call fcn.00403d74
lea eax, [ebp - 0x30]
mov edx, 7
call fcn.00403d74
ret