Function at 0x4048f0
Capabilities:
Acquire debug privileges
Check if file exists
Create process on windows

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x52d379
mov eax, dword fs:[0]
push eax
sub esp, 0x120
push ebx
push esi
push edi
mov eax, dword [0x58e188]
xor eax, ebp
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov edi, dword [0x58f97c]
call fcn.0041b722
xor ecx, ecx
test eax, eax
setne cl
test ecx, ecx
jne 0x40493b
push 0x80004005
call fcn.00401040
mov edx, dword [eax]
mov ecx, eax
mov eax, dword [edx + 0xc]
call eax
add eax, 0x10
mov dword [ebp - 0x18], eax
lea ecx, [ebp - 0x18]
call fcn.00401f30
mov dword [ebp - 4], 1
call fcn.0041b722
xor ecx, ecx
test eax, eax
setne cl
test ecx, ecx
jne 0x404973
push 0x80004005
call fcn.00401040
mov edx, dword [eax]
mov ecx, eax
mov eax, dword [edx + 0xc]
call eax
add eax, 0x10
mov dword [ebp - 0x10], eax
lea ecx, [ebp - 0x10]
call fcn.00401f30
mov byte [ebp - 4], 3
call fcn.0041b722
xor ecx, ecx
test eax, eax
setne cl
test ecx, ecx
jne 0x4049a8
push 0x80004005
call fcn.00401040
mov edx, dword [eax]
mov ecx, eax
mov eax, dword [edx + 0xc]
call eax
add eax, 0x10
mov dword [ebp - 0x14], eax
lea ecx, [ebp - 0x14]
call fcn.00401f30
mov eax, dword [ebp + 0xc]
mov byte [ebp - 4], 5
cmp eax, 1
jne 0x404a36
mov bl, byte [ebp + 0x18]
test bl, 2
je 0x4049f2
mov esi, dword [ebp + 0x20]
test esi, esi
je 0x4049f2
push esi
call dword [sym.imp.OLEAUT32.dll_VariantClear]
mov ecx, 0xb
mov edx, 1
mov word [esi], cx
mov word [esi + 8], dx
test bl, 1
je 0x405630
mov eax, dword [0x58f994]
add eax, 0xfffffff0
push eax
call fcn.00402000
add esp, 4
lea esi, [eax + 0x10]
push esi
call dword [sym.imp.SHLWAPI.dll_PathFileExistsW]
test eax, eax
je 0x404a2e
push 5
push 0
push 0
push esi
push 0x53ead0
push 0
call dword [sym.imp.SHELL32.dll_ShellExecuteW]
lea eax, [esi - 0x10]
jmp 0x405617
cmp eax, 2
jne 0x404a76
mov bl, byte [ebp + 0x18]
test al, bl
je 0x404a61
mov esi, dword [ebp + 0x20]
test esi, esi
je 0x404a61
push esi
call dword [sym.imp.OLEAUT32.dll_VariantClear]
mov ecx, 0xb
mov edx, 1
mov word [esi], cx
mov word [esi + 8], dx
test bl, 1
je 0x405630
mov ecx, edi
call fcn.00401e70
jmp 0x405630
cmp eax, 5
jne 0x404e5c
mov bl, byte [ebp + 0x18]
test bl, 2
je 0x404aaa
mov esi, dword [ebp + 0x20]
test esi, esi
je 0x404aaa
push esi
call dword [sym.imp.OLEAUT32.dll_VariantClear]
mov edi, 1
mov eax, 0xb
mov ecx, edi
mov word [esi], ax
mov word [esi + 8], cx
jmp 0x404aaf
mov edi, 1
test bl, 1
je 0x405630
mov esi, dword [ebp + 0x1c]
mov ebx, 8
cmp dword [esi + 8], edi
jne 0x404ada
mov edx, dword [esi]
mov eax, ebx
mov word [edx], ax
mov ecx, dword [esi]
mov edx, dword [ecx + 8]
push edx
lea ecx, [ebp - 0x10]
call fcn.004026e0
cmp dword [esi + 8], 2
jne 0x404b0b
mov eax, dword [esi]
mov ecx, ebx
mov word [eax], cx
mov edx, dword [esi]
mov eax, ebx
mov word [edx + 0x10], ax
mov ecx, dword [esi]
mov edx, dword [ecx + 8]
push edx
lea ecx, [ebp - 0x14]
call fcn.004026e0
mov eax, dword [esi]
mov ecx, dword [eax + 0x18]
push ecx
lea ecx, [ebp - 0x10]
call fcn.004026e0
cmp dword [esi + 8], 3
jne 0x404b52
mov edx, dword [esi]
mov eax, ebx
mov word [edx], ax
mov ecx, dword [esi]
mov edx, ebx
mov word [ecx + 0x10], dx
mov eax, dword [esi]
mov ecx, ebx
mov word [eax + 0x20], cx
mov edx, dword [esi]
mov eax, dword [edx + 0x28]
push eax
lea ecx, [ebp - 0x18]
call fcn.004026e0
mov ecx, dword [esi]
mov edx, dword [ecx + 0x18]
push edx
lea ecx, [ebp - 0x10]
call fcn.004026e0
mov eax, dword [esi]
mov ecx, dword [eax + 8]
push ecx
lea ecx, [ebp - 0x14]
call fcn.004026e0
push edi
push str.SeDebugPrivilege
call fcn.004056c0
add esp, 8
call fcn.0040c350
push str.none
lea ecx, [ebp + 0x20]
call fcn.00402730
lea edx, [ebp + 0x20]
push edx
push ecx
mov ecx, esp
mov dword [ebp + 0x1c], esp
push str.State
mov byte [ebp - 4], 6
call fcn.00402730
mov eax, dword [0x58f980]
push ecx
add eax, 0xfffffff0
mov dword [ebp + 0xc], esp
mov esi, esp
push eax
mov byte [ebp - 4], 7
call fcn.00402000
add eax, 0x10
mov dword [esi], eax
add esp, 4
mov byte [ebp - 4], 6
call fcn.00407510
add esp, 0xc
push str.none
lea ecx, [ebp + 0x18]
call fcn.00402730
lea eax, [ebp + 0x18]
push eax
push ecx
mov ecx, esp
mov dword [ebp + 0x1c], esp
push str.Path
mov byte [ebp - 4], bl
call fcn.00402730
mov eax, dword [0x58f980]
push ecx
add eax, 0xfffffff0
mov dword [ebp + 0xc], esp
mov esi, esp
push eax
mov byte [ebp - 4], 9
call fcn.00402000
add eax, 0x10
mov dword [esi], eax
add esp, 4
mov byte [ebp - 4], bl
call fcn.00407510
mov ecx, dword [0x58f8e0]
add esp, 0xc
push 0
call fcn.0041c3c8
mov ecx, dword [0x58f97c]
push 0
call fcn.0041c3c8
lea ecx, [ebp + 0x20]
push 0x53e19c
push ecx
call fcn.00402630
add esp, 8
test al, al
je 0x404d28
call fcn.0040c2b0
mov edx, dword [0x58f9b8]
push edx
call dword [sym.imp.SHLWAPI.dll_PathFileExistsW]
test eax, eax
je 0x404ce5
push 0
lea ecx, [ebp - 0x12c]
call fcn.004133c0
lea ecx, [ebp - 0x12c]
mov byte [ebp - 4], 0xa
call fcn.00425932
cmp eax, edi
jne 0x404cd2
mov eax, dword [ebp - 0x14]
push ecx
add eax, 0xfffffff0
mov dword [ebp + 0x1c], esp
mov esi, esp
push eax
mov dword [0x58f9dc], edi
call fcn.00402000
add eax, 0x10
mov dword [esi], eax
mov eax, dword [ebp - 0x10]
add eax, 0xfffffff0
mov dword [ebp + 0xc], esp
mov esi, esp
push eax
mov byte [ebp - 4], 0xb
call fcn.00402000
add eax, 0x10
mov dword [esi], eax
mov eax, dword [ebp - 0x18]
add eax, 0xfffffff0
mov dword [ebp - 0x1c], esp
mov esi, esp
push eax
mov byte [ebp - 4], 0xc
call fcn.00402000
add eax, 0x10
mov dword [esi], eax
add esp, 4
mov byte [ebp - 4], 0xa
call fcn.0040ade0
add esp, 0xc
lea ecx, [ebp - 0x12c]
mov byte [ebp - 4], bl
call fcn.00413320
jmp 0x404e31
mov eax, dword [ebp - 0x14]
push ecx
add eax, 0xfffffff0
mov dword [ebp + 0x1c], esp
mov esi, esp
push eax
mov dword [0x58f9dc], edi
call fcn.00402000
add eax, 0x10
mov dword [esi], eax
mov eax, dword [ebp - 0x10]
add eax, 0xfffffff0
mov dword [ebp + 0xc], esp
mov esi, esp
push eax
mov byte [ebp - 4], 0xd
call fcn.00402000
add eax, 0x10
mov dword [esi], eax
mov eax, dword [ebp - 0x18]
mov byte [ebp - 4], 0xe
jmp 0x404e10
lea eax, [ebp + 0x20]
push 0x53ea7c
push eax
call fcn.00402630
add esp, 8
test al, al
je 0x404dce
lea ecx, [ebp + 0x18]
push 0x53e19c
push ecx
call fcn.00402630
add esp, 8
push ecx
test al, al
mov eax, dword [ebp - 0x14]
mov dword [ebp + 0x1c], esp
mov esi, esp
je 0x404d96
add eax, 0xfffffff0
push eax
mov dword [0x58f9dc], edi
call fcn.00402000
add eax, 0x10
mov dword [esi], eax
mov eax, dword [ebp - 0x10]
add eax, 0xfffffff0
mov dword [ebp + 0xc], esp
mov esi, esp
push eax
mov byte [ebp - 4], 0xf
call fcn.00402000
add eax, 0x10
mov dword [esi], eax
mov eax, dword [ebp - 0x18]
mov byte [ebp - 4], 0x10
jmp 0x404e10
add eax, 0xfffffff0
push eax
mov dword [0x58f9dc], 0
call fcn.00402000
add eax, 0x10
mov dword [esi], eax
mov eax, dword [ebp - 0x10]
add eax, 0xfffffff0
mov dword [ebp + 0xc], esp
mov esi, esp
push eax
mov byte [ebp - 4], 0x11
call fcn.00402000
add eax, 0x10
mov dword [esi], eax
mov byte [ebp - 4], 0x12
jmp 0x404e0d
mov eax, dword [ebp - 0x14]
push ecx
add eax, 0xfffffff0
mov dword [ebp + 0x1c], esp
mov esi, esp
push eax
mov dword [0x58f9dc], 0
call fcn.00402000
add eax, 0x10
mov dword [esi], eax
mov eax, dword [ebp - 0x10]
add eax, 0xfffffff0
mov dword [ebp + 0xc], esp
mov esi, esp
push eax
mov byte [ebp - 4], 0x13
call fcn.00402000
add eax, 0x10
mov dword [esi], eax
mov byte [ebp - 4], 0x14
mov eax, dword [ebp + 0x18]
add eax, 0xfffffff0
mov dword [ebp - 0x1c], esp
mov esi, esp
push eax
call fcn.00402000
add eax, 0x10
mov dword [esi], eax
add esp, 4
mov byte [ebp - 4], bl
call fcn.0040ade0
add esp, 0xc
mov eax, dword [ebp + 0x18]
add eax, 0xfffffff0
mov byte [ebp - 4], 6
lea edx, [eax + 0xc]
or ecx, 0xffffffff
lock xadd dword [edx], ecx
dec ecx
test ecx, ecx
jg 0x404e54
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
mov eax, dword [ebp + 0x20]
jmp 0x405610
cmp eax, 6
jne 0x4051a8
mov bl, byte [ebp + 0x18]
test bl, 2
je 0x404e8c
mov esi, dword [ebp + 0x20]
test esi, esi
je 0x404e8c
push esi
call dword [sym.imp.OLEAUT32.dll_VariantClear]
mov ecx, 0xb
mov edx, 1
mov word [esi], cx
mov word [esi + 8], dx
test bl, 1
je 0x405630
mov esi, dword [ebp + 0x1c]
cmp dword [esi + 8], 1
mov ebx, 8
jne 0x404eb8
mov eax, dword [esi]
mov ecx, ebx
mov word [eax], cx
mov edx, dword [esi]
mov eax, dword [edx + 8]
push eax
lea ecx, [ebp - 0x10]
call fcn.004026e0
cmp dword [esi + 8], 2
jne 0x404ee9
mov ecx, dword [esi]
mov edx, ebx
mov word [ecx], dx
mov eax, dword [esi]
mov ecx, ebx
mov word [eax + 0x10], cx
mov edx, dword [esi]
mov eax, dword [edx + 8]
push eax
lea ecx, [ebp - 0x14]
call fcn.004026e0
mov ecx, dword [esi]
mov edx, dword [ecx + 0x18]
push edx
lea ecx, [ebp - 0x10]
call fcn.004026e0
cmp dword [esi + 8], 3
jne 0x404f2e
mov eax, dword [esi]
mov ecx, ebx
mov word [eax], cx
mov edx, dword [esi]
mov eax, ebx
mov word [edx + 0x10], ax
mov ecx, dword [esi]
mov word [ecx + 0x20], bx
mov edx, dword [esi]
mov eax, dword [edx + 8]
push eax
lea ecx, [ebp - 0x18]
call fcn.004026e0
mov ecx, dword [esi]
mov edx, dword [ecx + 0x18]
push edx
lea ecx, [ebp - 0x14]
call fcn.004026e0
mov eax, dword [esi]
mov ecx, dword [eax + 0x28]
push ecx
lea ecx, [ebp - 0x10]
call fcn.004026e0
push 1
push str.SeDebugPrivilege
call fcn.004056c0
add esp, 8
call fcn.0040c350
mov edx, dword [0x58f9b8]
push edx
call dword [sym.imp.SHLWAPI.dll_PathFileExistsW]
test eax, eax
jne 0x405034
push str.none
lea ecx, [ebp + 0x18]
call fcn.00402730
lea eax, [ebp + 0x18]
push eax
push ecx
mov ecx, esp
mov dword [ebp + 0x20], esp
mov bl, 0x15
push str.State
mov byte [ebp - 4], bl
call fcn.00402730
mov eax, dword [0x58f980]
push ecx
add eax, 0xfffffff0
mov dword [ebp + 0x1c], esp
mov esi, esp
push eax
mov byte [ebp - 4], 0x16
call fcn.00402000
add eax, 0x10
mov dword [esi], eax
add esp, 4
mov byte [ebp - 4], bl
call fcn.00407510
lea ecx, [ebp + 0x18]
push 0x53e19c
push ecx
call fcn.00402630
add esp, 0x14
test al, al
je 0x404fbf
call fcn.0040c2b0
mov eax, dword [ebp - 0x18]
push ecx
add eax, 0xfffffff0
mov dword [ebp + 0x20], esp
mov esi, esp
push eax
call fcn.00402000
add eax, 0x10
mov dword [esi], eax
mov eax, dword [ebp - 0x14]
add eax, 0xfffffff0
mov dword [ebp + 0x1c], esp
mov esi, esp
push eax
mov byte [ebp - 4], 0x17
call fcn.00402000
add eax, 0x10
mov dword [esi], eax
mov eax, dword [ebp - 0x10]
add eax, 0xfffffff0
mov dword [ebp + 0xc], esp
mov esi, esp
push eax
mov byte [ebp - 4], 0x18
call fcn.00402000
add eax, 0x10
mov dword [esi], eax
add esp, 4
mov byte [ebp - 4], bl
call fcn.0040b3d0
add esp, 0xc
mov eax, dword [ebp + 0x18]
add eax, 0xfffffff0
mov byte [ebp - 4], 5
lea edx, [eax + 0xc]
or ecx, 0xffffffff
lock xadd dword [edx], ecx
dec ecx
test ecx, ecx
jmp 0x405624
mov ecx, dword [0x58f8e0]
push 0
call fcn.0041c3c8
mov ecx, dword [0x58f97c]
push 0
call fcn.0041c3c8
push str.none
lea ecx, [ebp + 0x18]
call fcn.00402730
lea ecx, [ebp + 0x18]
push ecx
push ecx
mov ecx, esp
mov dword [ebp + 0x20], esp
push str.State
mov byte [ebp - 4], 0x19
call fcn.00402730
mov eax, dword [0x58f980]
push ecx
add eax, 0xfffffff0
mov dword [ebp + 0x1c], esp
mov esi, esp
push eax
mov byte [ebp - 4], 0x1a
call fcn.00402000
add eax, 0x10
mov dword [esi], eax
add esp, 4
mov byte [ebp - 4], 0x19
call fcn.00407510
lea edx, [ebp + 0x18]
push 0x53e19c
push edx
call fcn.00402630
add esp, 0x14
test al, al
je 0x405149
call fcn.0040c2b0
push 0
lea ecx, [ebp - 0x12c]
call fcn.004133c0
mov bl, 0x1b
lea ecx, [ebp - 0x12c]
mov byte [ebp - 4], bl
call fcn.00425932
cmp eax, 1
jne 0x405135
mov eax, dword [ebp - 0x18]
push ecx
add eax, 0xfffffff0
mov dword [ebp + 0x20], esp
mov esi, esp
push eax
call fcn.00402000
add eax, 0x10
mov dword [esi], eax
mov eax, dword [ebp - 0x14]
add eax, 0xfffffff0
mov dword [ebp + 0x1c], esp
mov esi, esp
push eax
mov byte [ebp - 4], 0x1c
call fcn.00402000
add eax, 0x10
mov dword [esi], eax
mov eax, dword [ebp - 0x10]
add eax, 0xfffffff0
mov dword [ebp + 0xc], esp
mov esi, esp
push eax
mov byte [ebp - 4], 0x1d
call fcn.00402000
add eax, 0x10
mov dword [esi], eax
add esp, 4
mov byte [ebp - 4], bl
call fcn.0040b3d0
add esp, 0xc
lea ecx, [ebp - 0x12c]
mov byte [ebp - 4], 0x19
call fcn.00413320
jmp 0x40560d
mov eax, dword [ebp - 0x18]
push ecx
add eax, 0xfffffff0
mov dword [ebp + 0x20], esp
mov esi, esp
push eax
call fcn.00402000
add eax, 0x10
mov dword [esi], eax
mov eax, dword [ebp - 0x14]
add eax, 0xfffffff0
mov dword [ebp + 0x1c], esp
mov esi, esp
push eax
mov byte [ebp - 4], 0x1e
call fcn.00402000
add eax, 0x10
mov dword [esi], eax
mov eax, dword [ebp - 0x10]
add eax, 0xfffffff0
mov dword [ebp + 0xc], esp
mov esi, esp
push eax
mov byte [ebp - 4], 0x1f
call fcn.00402000
add eax, 0x10
mov dword [esi], eax
add esp, 4
mov byte [ebp - 4], 0x19
call fcn.0040b3d0
add esp, 0xc
jmp 0x40560d
cmp eax, 7
jne 0x405267
mov bl, byte [ebp + 0x18]
test bl, 2
je 0x4051d8
mov esi, dword [ebp + 0x20]
test esi, esi
je 0x4051d8
push esi
call dword [sym.imp.OLEAUT32.dll_VariantClear]
mov ecx, 0xb
mov edx, 1
mov word [esi], cx
mov word [esi + 8], dx
test bl, 1
je 0x405630
mov esi, dword [ebp + 0x1c]
cmp dword [esi + 8], 3
jb 0x405630
mov eax, dword [esi]
mov ebx, 8
mov ecx, ebx
mov word [eax], cx
mov edx, dword [esi]
mov eax, ebx
mov word [edx + 0x10], ax
mov ecx, dword [esi]
push 1
push str.SeDebugPrivilege
mov word [ecx + 0x20], bx
call fcn.004056c0
call fcn.0040c350
mov edx, dword [esi]
mov eax, dword [edx + 8]
add esp, 4
mov ecx, esp
mov dword [ebp + 0x18], esp
push eax
call fcn.00402730
mov edx, dword [esi]
mov eax, dword [edx + 0x18]
push ecx
mov ecx, esp
mov dword [ebp + 0x20], esp
push eax
mov byte [ebp - 4], 0x20
call fcn.00402730
mov edx, dword [esi]
mov eax, dword [edx + 0x28]
push ecx
mov ecx, esp
mov dword [ebp + 0x1c], esp
push eax
mov byte [ebp - 4], 0x21
call fcn.00402730
mov byte [ebp - 4], 5
call fcn.0040b800
add esp, 0xc
jmp 0x405630
mov ebx, 8
cmp eax, ebx
jne 0x405324
test byte [ebp + 0x18], 2
je 0x405299
mov esi, dword [ebp + 0x20]
test esi, esi
je 0x405299
push esi
call dword [sym.imp.OLEAUT32.dll_VariantClear]
mov ecx, 0xb
mov edx, 1
mov word [esi], cx
mov word [esi + 8], dx
test byte [ebp + 0x18], 1
je 0x405630
mov esi, dword [ebp + 0x1c]
cmp dword [esi + 8], 3
jb 0x405630
mov eax, dword [esi]
mov ecx, ebx
mov word [eax], cx
mov edx, dword [esi]
mov eax, ebx
mov word [edx + 0x10], ax
mov ecx, dword [esi]
push 1
push str.SeDebugPrivilege
mov word [ecx + 0x20], bx
call fcn.004056c0
call fcn.0040c350
mov edx, dword [esi]
mov eax, dword [edx + 8]
add esp, 4
mov ecx, esp
mov dword [ebp + 0x18], esp
push eax
call fcn.00402730
mov edx, dword [esi]
mov eax, dword [edx + 0x18]
push ecx
mov ecx, esp
mov dword [ebp + 0x20], esp
push eax
mov byte [ebp - 4], 0x22
call fcn.00402730
mov edx, dword [esi]
mov eax, dword [edx + 0x28]
push ecx
mov ecx, esp
mov dword [ebp + 0x1c], esp
push eax
mov byte [ebp - 4], 0x23
call fcn.00402730
mov byte [ebp - 4], 5
call fcn.0040bb20
add esp, 0xc
jmp 0x405630
cmp eax, 9
jne 0x4053d9
mov bl, byte [ebp + 0x18]
test bl, 2
je 0x405354
mov esi, dword [ebp + 0x20]
test esi, esi
je 0x405354
push esi
call dword [sym.imp.OLEAUT32.dll_VariantClear]
mov ecx, 0xb
mov edx, 1
mov word [esi], cx
mov word [esi + 8], dx
test bl, 1
je 0x405630
push 0x53ea64
lea eax, [ebp + 0x18]
push 0x58f98c
push eax
call fcn.00404620
push 0x53ea60
lea ecx, [ebp + 0x20]
push 0x58f98c
push ecx
mov byte [ebp - 4], 0x24
call fcn.00404620
mov edx, dword [ebp + 0x18]
add esp, 0x18
push edx
call dword [sym.imp.SHLWAPI.dll_PathFileExistsW]
test eax, eax
je 0x4053b1
mov eax, dword [ebp + 0x20]
mov ecx, dword [ebp + 0x18]
push 5
push eax
push 0
push ecx
push 0x53ead0
push 0
call dword [sym.imp.SHELL32.dll_ShellExecuteW]
mov eax, dword [ebp + 0x20]
add eax, 0xfffffff0
lea edx, [eax + 0xc]
or ecx, 0xffffffff
lock xadd dword [edx], ecx
dec ecx
test ecx, ecx
jg 0x40560d
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
jmp 0x40560d
cmp eax, 0xb
jne 0x405630
test byte [ebp + 0x18], 2
je 0x405407
mov esi, dword [ebp + 0x20]
test esi, esi
je 0x405407
push esi
call dword [sym.imp.OLEAUT32.dll_VariantClear]
mov ecx, 0xb
mov edx, 1
mov word [esi], cx
mov word [esi + 8], dx
test byte [ebp + 0x18], 1
je 0x405630
mov esi, dword [ebp + 0x1c]
cmp dword [esi + 8], 3
jb 0x405630
mov eax, dword [esi]
mov ecx, ebx
mov word [eax], cx
mov edx, dword [esi]
mov eax, ebx
mov word [edx + 0x10], ax
mov ecx, dword [esi]
push 1
push str.SeDebugPrivilege
mov word [ecx + 0x20], bx
call fcn.004056c0
add esp, 8
call fcn.0040c350
mov edx, dword [0x58f9b8]
push edx
call dword [sym.imp.SHLWAPI.dll_PathFileExistsW]
test eax, eax
jne 0x4054f9
push str.none
lea ecx, [ebp + 0x18]
call fcn.00402730
lea eax, [ebp + 0x18]
push eax
push ecx
mov ecx, esp
mov dword [ebp + 0x20], esp
mov bl, 0x25
push str.State
mov byte [ebp - 4], bl
call fcn.00402730
mov eax, dword [0x58f980]
push ecx
add eax, 0xfffffff0
mov dword [ebp + 0x1c], esp
mov edi, esp
push eax
mov byte [ebp - 4], 0x26
call fcn.00402000
add eax, 0x10
mov dword [edi], eax
add esp, 4
mov byte [ebp - 4], bl
call fcn.00407510
lea ecx, [ebp + 0x18]
push 0x53e19c
push ecx
call fcn.00402630
add esp, 0x14
test al, al
je 0x4054c4
call fcn.0040c2b0
mov edx, dword [esi]
mov eax, dword [edx + 0x28]
push eax
mov ecx, 0x58f9c8
call fcn.004026e0
mov ecx, dword [esi]
mov edx, dword [ecx + 0x18]
push edx
mov ecx, 0x58f9cc
call fcn.004026e0
mov eax, dword [esi]
mov ecx, dword [eax + 8]
push ecx
mov ecx, 0x58f9d0
call fcn.004026e0
jmp 0x405018
mov ecx, dword [0x58f8e0]
push 0
call fcn.0041c3c8
mov ecx, dword [0x58f97c]
push 0
call fcn.0041c3c8
push str.none
lea ecx, [ebp + 0x18]
call fcn.00402730
lea ecx, [ebp + 0x18]
push ecx
push ecx
mov ecx, esp
mov dword [ebp + 0x20], esp
push str.State
mov byte [ebp - 4], 0x27
call fcn.00402730
mov eax, dword [0x58f980]
push ecx
add eax, 0xfffffff0
mov dword [ebp + 0x1c], esp
mov ebx, esp
push eax
mov byte [ebp - 4], 0x28
call fcn.00402000
add eax, 0x10
mov dword [ebx], eax
add esp, 4
mov byte [ebp - 4], 0x27
call fcn.00407510
lea edx, [ebp + 0x18]
push 0x53e19c
push edx
call fcn.00402630
add esp, 0x14
test al, al
je 0x4055dd
call fcn.0040c2b0
push 0
lea ecx, [ebp - 0x12c]
call fcn.004133c0
lea ecx, [ebp - 0x12c]
mov byte [ebp - 4], 0x29
call fcn.00425932
cmp eax, 1
jne 0x4055cc
mov eax, dword [esi]
mov ecx, dword [eax + 0x28]
push ecx
mov ecx, 0x58f9c8
call fcn.004026e0
mov edx, dword [esi]
mov eax, dword [edx + 0x18]
push eax
mov ecx, 0x58f9cc
call fcn.004026e0
mov ecx, dword [esi]
mov edx, dword [ecx + 8]
push edx
mov ecx, 0x58f9d0
call fcn.004026e0
lea ecx, [ebp - 0x12c]
mov byte [ebp - 4], 0x27
call fcn.00413320
jmp 0x40560d
mov eax, dword [esi]
mov ecx, dword [eax + 0x28]
push ecx
mov ecx, 0x58f9c8
call fcn.004026e0
mov edx, dword [esi]
mov eax, dword [edx + 0x18]
push eax
mov ecx, 0x58f9cc
call fcn.004026e0
mov ecx, dword [esi]
mov edx, dword [ecx + 8]
push edx
mov ecx, 0x58f9d0
call fcn.004026e0
mov eax, dword [ebp + 0x18]
add eax, 0xfffffff0
mov byte [ebp - 4], 5
lea ecx, [eax + 0xc]
or edx, 0xffffffff
lock xadd dword [ecx], edx
dec edx
test edx, edx
jg 0x405630
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
mov eax, dword [ebp - 0x14]
add eax, 0xfffffff0
mov byte [ebp - 4], 3
lea ecx, [eax + 0xc]
or edx, 0xffffffff
lock xadd dword [ecx], edx
dec edx
test edx, edx
jg 0x405653
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
mov eax, dword [ebp - 0x10]
add eax, 0xfffffff0
mov byte [ebp - 4], 1
lea ecx, [eax + 0xc]
or edx, 0xffffffff
lock xadd dword [ecx], edx
dec edx
test edx, edx
jg 0x405676
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
mov eax, dword [ebp - 0x18]
add eax, 0xfffffff0
mov dword [ebp - 4], 0xffffffff
lea ecx, [eax + 0xc]
or edx, 0xffffffff
lock xadd dword [ecx], edx
dec edx
test edx, edx
jg 0x40569c
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
xor eax, eax
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 0x24