Function at 0x4042b0
Capabilities:
Acquire debug privileges
Create directory
Delete file
Get graphical window text

Disassembly:
push ebp
mov ebp, esp
and esp, 0xfffffff8
push 0xffffffffffffffff
push 0x42e754
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
sub esp, 0xd0
mov eax, dword [ebp + 0xc]
push ebx
push esi
push edi
xor edi, edi
push edi
push edi
push 0x184
push eax
call dword [sym.imp.USER32.dll_SendMessageW]
mov ebx, dword [ebp + 8]
mov esi, ebx
call fcn.00402130
mov dword [esp + 0xc0], eax
push ebx
lea eax, [esp + 0x80]
call fcn.00402280
push edi
lea edx, [ebx + 0x70]
or eax, 0xffffffff
lea ecx, [esp + 0x80]
mov dword [esp + 0xe8], edi
call fcn.00408c40
cmp dword [esp + 0x8c], edi
jne 0x40441e
lea ecx, [esp + 0x14]
push ecx
mov esi, 0x81
call fcn.00401710
mov byte [esp + 0xe4], 1
mov eax, dword [eax]
mov ebx, dword [ebx + 4]
xor edx, edx
mov ecx, eax
mov dword [esp + 0x40], 7
mov dword [esp + 0x3c], edi
mov word [esp + 0x2c], dx
lea esi, [ecx + 2]
mov dx, word [ecx]
add ecx, 2
cmp dx, di
jne 0x404360
sub ecx, esi
sar ecx, 1
push ecx
lea esi, [esp + 0x30]
call fcn.00409020
mov eax, dword [esp + 0x2c]
mov esi, 8
mov dword [esp + 0x48], ebx
cmp dword [esp + 0x40], esi
jae 0x404390
lea eax, [esp + 0x2c]
push 0x30
push 0x434d84
push eax
push ebx
call dword [sym.imp.USER32.dll_MessageBoxW]
cmp dword [esp + 0x40], esi
jb 0x4043b2
mov eax, dword [esp + 0x2c]
push eax
call fcn.00416629
add esp, 4
xor ecx, ecx
mov byte [esp + 0xe4], cl
mov eax, dword [esp + 0x14]
add eax, 0xfffffff0
mov word [esp + 0x2c], cx
mov dword [esp + 0x40], 7
mov dword [esp + 0x3c], edi
lea edx, [eax + 0xc]
or ecx, 0xffffffff
lock xadd dword [edx], ecx
dec ecx
test ecx, ecx
jg 0x4043ec
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
cmp dword [esp + 0x90], esi
jb 0x404402
mov ecx, dword [esp + 0x7c]
push ecx
call fcn.00416629
add esp, 4
mov eax, 0x80004005
mov ecx, dword [esp + 0xdc]
mov dword fs:[0], ecx
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 0xc
mov eax, dword [esp + 0x7c]
mov esi, 8
cmp dword [esp + 0x90], esi
jae 0x404434
lea eax, [esp + 0x7c]
push eax
call dword [sym.imp.SHLWAPI.dll_PathIsDirectoryW]
test eax, eax
jne 0x4044d6
mov eax, dword [esp + 0x7c]
cmp dword [esp + 0x90], esi
jae 0x404454
lea eax, [esp + 0x7c]
push edi
push eax
push edi
call dword [sym.imp.SHELL32.dll_SHCreateDirectoryExW]
cmp eax, edi
je 0x4044d6
cmp eax, 0x50
je 0x4044d6
cmp eax, 0xb7
je 0x4044d6
lea edx, [esp + 0x14]
push edx
mov esi, 0x8e
call fcn.00401710
mov byte [esp + 0xe4], 2
mov ecx, dword [ebx + 4]
mov eax, dword [eax]
push ecx
lea ecx, [esp + 0x30]
call fcn.004012e0
lea edx, [ebp + 0xc]
push edx
call fcn.00401330
add esp, 4
lea esi, [esp + 0x2c]
call fcn.00408b90
lea eax, [esp + 0x14]
call fcn.00408910
lea esi, [esp + 0x7c]
call fcn.00408b90
mov eax, 0x80004005
mov ecx, dword [esp + 0xdc]
mov dword fs:[0], ecx
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 0xc
lea edi, [esp + 0x7c]
lea eax, [esp + 0x98]
mov byte [esp + 0x13], 1
call fcn.00401240
mov edi, eax
lea esi, [esp + 0x7c]
mov byte [esp + 0xe4], 3
call fcn.004027e0
mov byte [esp + 0xe4], 0
cmp dword [esp + 0xac], 8
jb 0x404520
mov eax, dword [esp + 0x98]
push eax
call fcn.00416629
add esp, 4
lea ecx, [esp + 0x4c]
call fcn.00414740
mov al, byte [ebp + 0x10]
mov byte [esp + 0xe4], 4
mov byte [esp + 0x12], al
test al, al
je 0x404640
push str.GoalCityDump.zip
lea ecx, [esp + 0x80]
push ecx
lea edx, [esp + 0xa0]
push edx
call fcn.00405200
add esp, 0xc
mov edi, 8
mov byte [esp + 0xe4], 5
cmp dword [eax + 0x14], edi
jb 0x404571
mov eax, dword [eax]
push eax
lea ecx, [esp + 0x50]
call fcn.00414800
mov byte [esp + 0xe4], 4
mov byte [esp + 0x12], al
cmp dword [esp + 0xac], edi
jb 0x4045a0
mov eax, dword [esp + 0x98]
push eax
call fcn.00416629
add esp, 4
cmp byte [esp + 0x12], 0
jne 0x404640
lea ecx, [esp + 0x14]
push ecx
mov esi, 0x8c
call fcn.00401710
mov byte [esp + 0xe4], 6
mov edx, dword [ebx + 4]
mov eax, dword [eax]
push edx
lea ecx, [esp + 0x30]
call fcn.004012e0
cmp dword [eax + 0x14], edi
jb 0x4045da
mov ecx, dword [eax]
jmp 0x4045dc
mov ecx, eax
mov eax, dword [eax + 0x1c]
push 0x30
push 0x434d84
push ecx
push eax
call dword [sym.imp.USER32.dll_MessageBoxW]
cmp dword [esp + 0x40], edi
jb 0x404601
mov ecx, dword [esp + 0x2c]
push ecx
call fcn.00416629
add esp, 4
mov byte [esp + 0xe4], 4
mov eax, dword [esp + 0x14]
xor edx, edx
xor esi, esi
add eax, 0xfffffff0
mov word [esp + 0x2c], dx
mov dword [esp + 0x40], 7
mov dword [esp + 0x3c], esi
lea ecx, [eax + 0xc]
or edx, 0xffffffff
lock xadd dword [ecx], edx
dec edx
test edx, edx
jg 0x404642
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
jmp 0x404642
xor esi, esi
mov dword [esp + 0x6c], esi
mov dword [esp + 0x70], esi
mov dword [esp + 0x74], esi
lea ecx, [esp + 0x6c]
mov byte [esp + 0xe4], 7
call fcn.00402190
lea ecx, [esp + 0x1c]
push ecx
mov esi, 0x82
call fcn.00401710
mov byte [esp + 0xe4], 8
mov edx, dword [eax]
lea eax, [esp + 0x14]
push eax
lea ebx, [ebp + 0xc]
mov dword [esp + 0x18], edx
call fcn.00402f40
mov ecx, dword [eax]
add esp, 4
push 0x435060
push 0
push 0x180
push ecx
call dword [sym.imp.USER32.dll_SendMessageW]
mov byte [esp + 0xe4], 7
mov eax, dword [esp + 0x1c]
add eax, 0xfffffff0
lea edx, [eax + 0xc]
or ecx, 0xffffffff
lock xadd dword [edx], ecx
dec ecx
test ecx, ecx
jg 0x4046c9
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
mov eax, 1
call fcn.00401360
test eax, eax
jne 0x404804
lea ecx, [esp + 0x14]
push ecx
mov esi, 0x83
call fcn.00401710
mov edx, dword [ebp + 8]
mov byte [esp + 0xe4], 9
mov eax, dword [eax]
mov edi, dword [edx + 4]
xor ecx, ecx
mov word [esp + 0x2c], cx
mov ecx, eax
mov dword [esp + 0x40], 7
mov dword [esp + 0x3c], 0
lea esi, [ecx + 2]
mov dx, word [ecx]
add ecx, 2
test dx, dx
jne 0x404716
sub ecx, esi
sar ecx, 1
push ecx
lea esi, [esp + 0x30]
call fcn.00409020
mov eax, dword [esp + 0x2c]
mov ebx, 8
mov dword [esp + 0x48], edi
cmp dword [esp + 0x40], ebx
jae 0x404744
mov eax, esi
push 0x30
push 0x434d84
push eax
push edi
call dword [sym.imp.USER32.dll_MessageBoxW]
cmp dword [esp + 0x40], ebx
jb 0x404766
mov edx, dword [esp + 0x2c]
push edx
call fcn.00416629
add esp, 4
xor eax, eax
mov word [esp + 0x2c], ax
mov byte [esp + 0xe4], 7
mov eax, dword [esp + 0x14]
add eax, 0xfffffff0
mov dword [esp + 0x40], 7
mov dword [esp + 0x3c], 0
lea ecx, [eax + 0xc]
or edx, 0xffffffff
lock xadd dword [ecx], edx
dec edx
test edx, edx
jg 0x4047a5
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
mov esi, dword [esp + 0x6c]
test esi, esi
je 0x4047c1
mov edi, dword [esp + 0x70]
mov eax, esi
call fcn.00402ea0
push esi
call fcn.00416629
add esp, 4
lea ecx, [esp + 0x4c]
mov byte [esp + 0xe4], 0
call fcn.00414770
cmp dword [esp + 0x90], ebx
jb 0x4047e8
mov ecx, dword [esp + 0x7c]
push ecx
call fcn.00416629
add esp, 4
mov eax, 0x80070005
mov ecx, dword [esp + 0xdc]
mov dword fs:[0], ecx
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 0xc
mov ecx, dword [esp + 0x70]
sub ecx, dword [esp + 0x6c]
mov eax, 0x92492493
imul ecx
add edx, ecx
sar edx, 4
mov eax, edx
shr eax, 0x1f
add eax, edx
je 0x404eb2
mov edx, dword [esp + 0x6c]
mov dword [esp + 0x50], edx
mov dword [esp + 0x14], eax
xor ebx, ebx
mov dword [esp + 0x5c], ebx
mov dword [esp + 0x60], ebx
mov dword [esp + 0x64], ebx
mov edi, dword [esp + 0x50]
mov byte [esp + 0xe4], 0xa
cmp dword [edi + 0x14], 8
jb 0x404855
mov eax, dword [edi]
jmp 0x404857
mov eax, edi
push eax
lea esi, [esp + 0x60]
call fcn.00401400
movzx eax, al
cmp eax, ebx
je 0x404d96
cmp dword [edi + 0x14], 8
jb 0x40487a
mov eax, dword [edi]
mov dword [esp + 0x24], eax
jmp 0x40487e
mov dword [esp + 0x24], edi
lea ecx, [esp + 0xbc]
push ecx
mov esi, 0x8b
call fcn.00401710
mov edi, eax
lea edx, [esp + 0xb8]
push edx
mov esi, 0x87
mov byte [esp + 0xe8], 0xb
call fcn.00401710
mov byte [esp + 0xe4], 0xc
mov eax, dword [eax]
lea ecx, [esp + 0x1c]
push ecx
lea ebx, [ebp + 0xc]
mov dword [esp + 0x20], eax
call fcn.00402f40
lea edx, [esp + 0x28]
add esp, 4
push edx
mov ebx, eax
call fcn.00402f40
mov ecx, dword [edi]
lea edx, [esp + 0x20]
add esp, 4
push edx
mov ebx, eax
mov dword [esp + 0x20], ecx
call fcn.00402f40
mov eax, dword [eax]
add esp, 4
push 0x435060
push 0
push 0x180
push eax
call dword [sym.imp.USER32.dll_SendMessageW]
mov byte [esp + 0xe4], 0xb
mov eax, dword [esp + 0xb8]
add eax, 0xfffffff0
lea ecx, [eax + 0xc]
or edx, 0xffffffff
lock xadd dword [ecx], edx
dec edx
test edx, edx
jg 0x40492e
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
mov byte [esp + 0xe4], 0xa
mov eax, dword [esp + 0xbc]
add eax, 0xfffffff0
lea ecx, [eax + 0xc]
or edx, 0xffffffff
lock xadd dword [ecx], edx
dec edx
test edx, edx
jg 0x404959
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
mov eax, dword [esp + 0x60]
sub eax, dword [esp + 0x5c]
mov dword [esp + 0x24], 0
sar eax, 2
mov dword [esp + 0x1c], eax
test eax, eax
je 0x404e7c
mov eax, dword [esp + 0xc0]
call fcn.004082f0
mov dword [esp + 0xb4], eax
jmp 0x404990
lea ecx, [esp + 0xd0]
push ecx
mov esi, 0x84
call fcn.00401710
mov byte [esp + 0xe4], 0xd
mov edx, dword [eax]
lea eax, [esp + 0x28]
push eax
lea ebx, [ebp + 0xc]
mov dword [esp + 0x2c], edx
call fcn.00402f40
mov ecx, dword [eax]
mov edi, dword [sym.imp.USER32.dll_SendMessageW]
add esp, 4
push 0x435060
push 0
push 0x180
push ecx
call edi
mov byte [esp + 0xe4], 0xa
mov eax, dword [esp + 0xd0]
add eax, 0xfffffff0
lea edx, [eax + 0xc]
or ecx, 0xffffffff
lock xadd dword [edx], ecx
dec ecx
test ecx, ecx
jg 0x404a02
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
cmp dword [esp + 0x1c], 1
jbe 0x404a0f
mov eax, dword [esp + 0x24]
jmp 0x404a12
or eax, 0xffffffff
mov ecx, dword [esp + 0x50]
push eax
push ecx
lea edx, [esp + 0xa0]
push edx
lea ecx, [esp + 0x88]
call fcn.00401790
mov byte [esp + 0xe4], 0xe
cmp dword [esp + 0xac], 8
mov ebx, dword [esp + 0x98]
jae 0x404a4c
lea ebx, [esp + 0x98]
mov eax, dword [esp + 0x5c]
mov ecx, dword [esp + 0x24]
mov esi, dword [eax + ecx*4]
push esi
push 0
push 0x1f0fff
call dword [sym.imp.KERNEL32.dll_OpenProcess]
test eax, eax
jne 0x404a7f
call dword [sym.imp.KERNEL32.dll_GetLastError]
test eax, eax
jle 0x404a93
and eax, 0xffff
or eax, 0x80070000
jmp 0x404a93
mov edx, dword [esp + 0xb4]
push edx
push eax
push ebx
mov eax, esi
call fcn.00406f30
add esp, 0xc
mov dword [esp + 0x28], eax
lea eax, [esp + 0xc4]
push eax
mov esi, 0x85
call fcn.00401710
mov byte [esp + 0xe4], 0xf
mov ecx, dword [eax]
lea edx, [esp + 0x18]
push edx
lea ebx, [ebp + 0xc]
mov dword [esp + 0x1c], ecx
call fcn.00402f40
mov eax, dword [eax]
add esp, 4
push 0x435060
push 0
push 0x180
push eax
call edi
mov byte [esp + 0xe4], 0xe
mov eax, dword [esp + 0xc4]
add eax, 0xfffffff0
lea ecx, [eax + 0xc]
or edx, 0xffffffff
lock xadd dword [ecx], edx
dec edx
test edx, edx
jg 0x404b03
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
mov ecx, dword [esp + 0x28]
lea edx, [esp + 0x2c]
push edx
lea eax, [esp + 0x1c]
push eax
mov dword [esp + 0x20], ecx
call fcn.00401560
mov edi, eax
lea ecx, [esp + 0xcc]
push ecx
mov esi, 0x86
mov byte [esp + 0xe8], 0x10
call fcn.00401710
mov byte [esp + 0xe4], 0x11
mov edx, dword [eax]
lea eax, [esp + 0x18]
push eax
lea ebx, [ebp + 0xc]
mov dword [esp + 0x1c], edx
call fcn.00402f40
add esp, 4
push edi
mov ebx, eax
call fcn.004052e0
mov ecx, dword [eax]
add esp, 4
push 0x435060
push 0
push 0x180
push ecx
call dword [sym.imp.USER32.dll_SendMessageW]
mov byte [esp + 0xe4], 0x10
mov eax, dword [esp + 0xcc]
add eax, 0xfffffff0
lea edx, [eax + 0xc]
or ecx, 0xffffffff
lock xadd dword [edx], ecx
dec ecx
test ecx, ecx
jg 0x404b9f
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
mov byte [esp + 0xe4], 0xe
cmp dword [esp + 0x40], 8
jb 0x404bbb
mov ecx, dword [esp + 0x2c]
push ecx
call fcn.00416629
add esp, 4
cmp dword [esp + 0x28], 0
jge 0x404bc7
mov byte [esp + 0x13], 0
cmp byte [esp + 0x12], 0
je 0x404d5c
lea edx, [esp + 0xd4]
push edx
mov esi, 0x8d
call fcn.00401710
mov byte [esp + 0xe4], 0x12
mov eax, dword [eax]
lea ecx, [esp + 0x18]
push ecx
lea ebx, [ebp + 0xc]
mov dword [esp + 0x1c], eax
call fcn.00402f40
mov edx, dword [eax]
add esp, 4
push 0x435060
xor ebx, ebx
push ebx
push 0x180
push edx
call dword [sym.imp.USER32.dll_SendMessageW]
mov byte [esp + 0xe4], 0xe
mov eax, dword [esp + 0xd4]
add eax, 0xfffffff0
lea ecx, [eax + 0xc]
or edx, 0xffffffff
lock xadd dword [ecx], edx
dec edx
test edx, edx
jg 0x404c43
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
mov eax, dword [esp + 0x98]
mov esi, 8
cmp dword [esp + 0xac], esi
jae 0x404c5f
lea eax, [esp + 0x98]
push 0x10000
push ebx
push eax
lea ecx, [esp + 0x58]
call fcn.00414d50
cmp al, bl
jne 0x404d3e
lea ecx, [esp + 0xc8]
push ecx
mov esi, 0x8c
call fcn.00401710
mov edx, dword [ebp + 8]
mov byte [esp + 0xe4], 0x13
mov eax, dword [eax]
mov edi, dword [edx + 4]
xor ecx, ecx
mov word [esp + 0x2c], cx
mov ecx, eax
mov dword [esp + 0x40], 7
mov dword [esp + 0x3c], ebx
lea esi, [ecx + 2]
mov dx, word [ecx]
add ecx, 2
cmp dx, bx
jne 0x404cb1
sub ecx, esi
sar ecx, 1
push ecx
lea esi, [esp + 0x30]
call fcn.00409020
cmp dword [esp + 0x40], 8
mov eax, dword [esp + 0x2c]
mov dword [esp + 0x48], edi
jae 0x404cdb
mov eax, esi
push 0x30
push 0x434d84
push eax
push edi
call dword [sym.imp.USER32.dll_MessageBoxW]
cmp dword [esp + 0x40], 8
jb 0x404cfe
mov edx, dword [esp + 0x2c]
push edx
call fcn.00416629
add esp, 4
xor eax, eax
mov word [esp + 0x2c], ax
mov byte [esp + 0xe4], 0xe
mov eax, dword [esp + 0xc8]
add eax, 0xfffffff0
mov dword [esp + 0x40], 7
mov dword [esp + 0x3c], ebx
lea ecx, [eax + 0xc]
or edx, 0xffffffff
lock xadd dword [ecx], edx
dec edx
test edx, edx
jg 0x404d5c
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
jmp 0x404d5c
mov eax, dword [esp + 0x98]
cmp dword [esp + 0xac], esi
jae 0x404d55
lea eax, [esp + 0x98]
push eax
call dword [sym.imp.KERNEL32.dll_DeleteFileW]
mov byte [esp + 0xe4], 0xa
cmp dword [esp + 0xac], 8
jb 0x404d7e
mov ecx, dword [esp + 0x98]
push ecx
call fcn.00416629
add esp, 4
mov eax, dword [esp + 0x24]
inc eax
mov dword [esp + 0x24], eax
cmp eax, dword [esp + 0x1c]
jb 0x404990
jmp 0x404e7c
cmp dword [edi + 0x14], 8
mov byte [esp + 0x13], 0
jb 0x404da9
mov edx, dword [edi]
mov dword [esp + 0x1c], edx
jmp 0x404dad
mov dword [esp + 0x1c], edi
lea eax, [esp + 0x20]
push eax
mov esi, 0x88
call fcn.00401710
mov edi, eax
lea ecx, [esp + 0x54]
push ecx
mov esi, 0x87
mov byte [esp + 0xe8], 0x14
call fcn.00401710
mov byte [esp + 0xe4], 0x15
mov edx, dword [eax]
lea eax, [esp + 0x18]
push eax
lea ebx, [ebp + 0xc]
mov dword [esp + 0x1c], edx
call fcn.00402f40
lea ecx, [esp + 0x20]
add esp, 4
push ecx
mov ebx, eax
call fcn.00402f40
mov edx, dword [edi]
lea ecx, [esp + 0x1c]
add esp, 4
push ecx
mov ebx, eax
mov dword [esp + 0x1c], edx
call fcn.00402f40
mov edx, dword [eax]
add esp, 4
push 0x435060
push 0
push 0x180
push edx
call dword [sym.imp.USER32.dll_SendMessageW]
mov byte [esp + 0xe4], 0x14
mov eax, dword [esp + 0x54]
add eax, 0xfffffff0
lea ecx, [eax + 0xc]
or edx, 0xffffffff
lock xadd dword [ecx], edx
dec edx
test edx, edx
jg 0x404e54
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
mov byte [esp + 0xe4], 0xa
mov eax, dword [esp + 0x20]
add eax, 0xfffffff0
lea ecx, [eax + 0xc]
or edx, 0xffffffff
lock xadd dword [ecx], edx
dec edx
test edx, edx
jg 0x404e7c
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
mov byte [esp + 0xe4], 7
mov eax, dword [esp + 0x5c]
xor esi, esi
cmp eax, esi
je 0x404e97
push eax
call fcn.00416629
add esp, 4
add dword [esp + 0x50], 0x1c
dec dword [esp + 0x14]
mov dword [esp + 0x5c], esi
mov dword [esp + 0x60], esi
mov dword [esp + 0x64], esi
jne 0x404831
lea ecx, [esp + 0x20]
push ecx
push 0x28
call dword [sym.imp.KERNEL32.dll_GetCurrentProcess]
push eax
call dword [sym.imp.ADVAPI32.dll_OpenProcessToken]
test eax, eax
je 0x404f25
lea edx, [esp + 0x54]
push edx
push str.SeDebugPrivilege
push 0
call dword [sym.imp.ADVAPI32.dll_LookupPrivilegeValueW]
test eax, eax
je 0x404f25
mov eax, dword [esp + 0x54]
mov ecx, dword [esp + 0x58]
push 0
push 0
push 0x10
lea edx, [esp + 0x68]
push edx
mov dword [esp + 0x70], eax
mov eax, dword [esp + 0x30]
push 0
push eax
mov dword [esp + 0x74], 1
mov dword [esp + 0x7c], ecx
mov dword [esp + 0x80], 0
call dword [sym.imp.ADVAPI32.dll_AdjustTokenPrivileges]
test eax, eax
je 0x404f25
call dword [sym.imp.KERNEL32.dll_GetLastError]
cmp byte [esp + 0x13], 0
jne 0x404ffd
lea ecx, [esp + 0x54]
push ecx
mov esi, 0x8a
call fcn.00401710
mov byte [esp + 0xe4], 0x16
mov edx, dword [eax]
lea eax, [esp + 0x20]
push eax
lea ebx, [ebp + 0xc]
mov dword [esp + 0x24], edx
call fcn.00402f40
mov ecx, dword [eax]
add esp, 4
push 0x435060
push 0
push 0x180
push ecx
call dword [sym.imp.USER32.dll_SendMessageW]
mov byte [esp + 0xe4], 7
mov eax, dword [esp + 0x54]
add eax, 0xfffffff0
lea edx, [eax + 0xc]
or ecx, 0xffffffff
lock xadd dword [edx], ecx
dec ecx
test ecx, ecx
jg 0x404f9a
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
cmp dword [esp + 0x6c], 0
je 0x404fb9
mov esi, dword [esp + 0x6c]
mov edi, dword [esp + 0x70]
mov eax, esi
call fcn.00402ea0
push esi
call fcn.00416629
add esp, 4
lea ecx, [esp + 0x4c]
mov byte [esp + 0xe4], 0
call fcn.00414770
cmp dword [esp + 0x90], 8
jb 0x404fe1
mov ecx, dword [esp + 0x7c]
push ecx
call fcn.00416629
add esp, 4
mov eax, 1
mov ecx, dword [esp + 0xdc]
mov dword fs:[0], ecx
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 0xc
lea edx, [esp + 0x54]
push edx
mov esi, 0x89
call fcn.00401710
mov byte [esp + 0xe4], 0x17
mov eax, dword [eax]
lea ecx, [esp + 0x20]
push ecx
lea ebx, [ebp + 0xc]
mov dword [esp + 0x24], eax
call fcn.00402f40
mov edx, dword [eax]
add esp, 4
push 0x435060
push 0
push 0x180
push edx
call dword [sym.imp.USER32.dll_SendMessageW]
mov byte [esp + 0xe4], 7
mov eax, dword [esp + 0x54]
add eax, 0xfffffff0
lea ecx, [eax + 0xc]
or edx, 0xffffffff
lock xadd dword [ecx], edx
dec edx
test edx, edx
jg 0x405067
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
cmp dword [esp + 0x6c], 0
je 0x405086
mov esi, dword [esp + 0x6c]
mov edi, dword [esp + 0x70]
mov eax, esi
call fcn.00402ea0
push esi
call fcn.00416629
add esp, 4
lea ecx, [esp + 0x4c]
mov byte [esp + 0xe4], 0
call fcn.00414770
cmp dword [esp + 0x90], 8
jb 0x4050ae
mov ecx, dword [esp + 0x7c]
push ecx
call fcn.00416629
add esp, 4
mov ecx, dword [esp + 0xdc]
pop edi
pop esi
xor eax, eax
mov dword fs:[0], ecx
pop ebx
mov esp, ebp
pop ebp
ret 0xc