Function at 0x405320
Capabilities:
Accept command line arguments

Disassembly:
push ebp
mov ebp, esp
and esp, 0xfffffff8
push 0xffffffffffffffff
push 0x53b9d0
mov eax, dword fs:[0]
push eax
sub esp, 0x74
push ebx
push ebp
push esi
push edi
mov eax, dword [0x58b998]
xor eax, esp
push eax
lea eax, [esp + 0x88]
mov dword fs:[0], eax
mov esi, ecx
lea eax, [esp + 0x20]
push eax
mov dword [esp + 0x24], 8
mov dword [esp + 0x28], 0xff
call dword [sym.imp.COMCTL32.dll_InitCommonControlsEx]
mov ecx, esi
call fcn.00418a0e
xor edi, edi
push edi
call fcn.0041ab37
add esp, 4
call fcn.00416df7
xor ecx, ecx
cmp eax, edi
setne cl
cmp ecx, edi
jne 0x405399
push 0x80004005
call fcn.00402a00
mov edx, dword [eax]
mov ecx, eax
mov eax, dword [edx + 0xc]
call eax
lea ebp, [eax + 0x10]
mov dword [esp + 0x14], ebp
mov dword [esp + 0x90], edi
mov eax, dword [ebp - 8]
mov ecx, 1
sub ecx, dword [ebp - 4]
sub eax, 0x1000
or eax, ecx
jge 0x4053d6
push 0x1000
lea ecx, [esp + 0x18]
call fcn.00402980
mov ebp, dword [esp + 0x14]
push 0x1000
push ebp
push edi
call dword [sym.imp.KERNEL32.dll_GetModuleFileNameW]
mov eax, dword [ebp - 8]
push eax
push ebp
call fcn.0050ca3f
add esp, 8
cmp eax, edi
jl 0x405ac2
cmp eax, dword [ebp - 8]
jg 0x405ac2
xor ecx, ecx
push 0x5c
mov dword [ebp - 0xc], eax
push ebp
mov word [ebp + eax*2], cx
call fcn.0050cabf
add esp, 8
cmp eax, edi
je 0x405478
sub eax, ebp
sar eax, 1
mov ecx, eax
cmp ecx, 0xffffffff
je 0x405478
mov eax, dword [ebp - 0xc]
sub eax, ecx
dec eax
push eax
lea edx, [esp + 0x20]
push edx
lea ecx, [esp + 0x1c]
call fcn.004060e0
push eax
lea ecx, [esp + 0x18]
mov byte [esp + 0x94], 1
call fcn.00406440
mov byte [esp + 0x90], 0
mov eax, dword [esp + 0x1c]
add eax, 0xfffffff0
lea ecx, [eax + 0xc]
or edx, 0xffffffff
lock xadd dword [ecx], edx
dec edx
test edx, edx
jg 0x405474
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
mov ebp, dword [esp + 0x14]
call dword [sym.imp.KERNEL32.dll_GetCommandLineW]
push eax
lea ecx, [esp + 0x1c]
call fcn.004041c0
mov byte [esp + 0x90], 2
cmp ebp, edi
je 0x40550b
mov eax, dword [esp + 0x18]
cmp dword [eax - 0xc], edi
jl 0x40550b
push ebp
push eax
call fcn.0050ca5e
add esp, 8
cmp eax, edi
je 0x40550b
mov edx, dword [esp + 0x18]
sub eax, edx
sar eax, 1
mov ecx, eax
cmp ecx, 0xffffffff
je 0x40550b
mov eax, dword [edx - 0xc]
sub eax, dword [ebp - 0xc]
sub eax, ecx
push eax
lea ecx, [esp + 0x20]
push ecx
lea ecx, [esp + 0x20]
call fcn.004060e0
push eax
lea ecx, [esp + 0x1c]
mov byte [esp + 0x94], 3
call fcn.00406440
mov byte [esp + 0x90], 2
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 0x40550b
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
lea ecx, [esp + 0x60]
call fcn.0040a960
push 0x568dc8
lea ecx, [esp + 0x64]
push ecx
mov ecx, 0x568dc4
mov byte [esp + 0x98], 4
call fcn.00404390
push 0x568de4
lea edx, [esp + 0x64]
push edx
mov ecx, 0x568de0
call fcn.00404390
push 0x568df8
lea eax, [esp + 0x64]
push eax
mov ecx, 0x568df4
call fcn.00404390
push 0x568e0c
lea ecx, [esp + 0x64]
push ecx
mov ecx, 0x568e08
call fcn.00404390
push 0x568e18
lea edx, [esp + 0x64]
push edx
mov ecx, 0x568e14
call fcn.00404390
push 0x568e2c
lea eax, [esp + 0x64]
push eax
mov ecx, 0x568e28
call fcn.00404390
push 0x568e44
lea ecx, [esp + 0x64]
push ecx
mov ecx, 0x568e40
call fcn.00404390
xor edx, edx
mov word [esp + 0x2c], dx
mov edx, dword [esp + 0x18]
mov eax, edx
mov ebx, 7
lea ecx, [eax + 2]
mov dword [esp + 0x40], ebx
mov dword [esp + 0x3c], edi
mov dword [esp + 0x1c], ecx
lea esp, [esp]
mov cx, word [eax]
add eax, 2
cmp cx, di
jne 0x4055d0
sub eax, dword [esp + 0x1c]
lea ecx, [esp + 0x28]
sar eax, 1
push eax
push edx
call fcn.004018d0
lea edx, [esp + 0x28]
push edx
lea ecx, [esp + 0x64]
mov byte [esp + 0x94], 5
call fcn.00409600
mov byte [esp + 0x90], 4
cmp dword [esp + 0x40], 8
jb 0x40561e
mov eax, dword [esp + 0x2c]
push eax
call fcn.0040dd3a
add esp, 4
xor ecx, ecx
push 1
mov word [esp + 0x30], cx
push 0x568df4
lea ecx, [esp + 0x30]
mov dword [esp + 0x48], ebx
mov dword [esp + 0x44], edi
call fcn.004018d0
lea edx, [esp + 0x44]
push edx
lea eax, [esp + 0x2c]
lea ecx, [esp + 0x64]
mov byte [esp + 0x94], 6
call fcn.004042f0
push 0xffffffffffffffff
push edi
push eax
lea ecx, [esi + 0xec]
mov byte [esp + 0x9c], bl
call fcn.00401620
cmp dword [esp + 0x5c], 8
jb 0x405681
mov eax, dword [esp + 0x48]
push eax
call fcn.0040dd3a
add esp, 4
xor ecx, ecx
mov byte [esp + 0x90], 4
cmp dword [esp + 0x40], 8
mov dword [esp + 0x5c], ebx
mov dword [esp + 0x58], edi
mov word [esp + 0x48], cx
jb 0x4056ac
mov edx, dword [esp + 0x2c]
push edx
call fcn.0040dd3a
add esp, 4
push 1
xor eax, eax
push 0x568e08
lea ecx, [esp + 0x30]
mov dword [esp + 0x48], ebx
mov dword [esp + 0x44], edi
mov word [esp + 0x34], ax
call fcn.004018d0
lea ecx, [esp + 0x44]
push ecx
lea eax, [esp + 0x2c]
lea ecx, [esp + 0x64]
mov byte [esp + 0x94], 8
call fcn.004042f0
push 0xffffffffffffffff
push edi
push eax
lea ecx, [esi + 0x108]
mov byte [esp + 0x9c], 9
call fcn.00401620
cmp dword [esp + 0x5c], 8
jb 0x405710
mov edx, dword [esp + 0x48]
push edx
call fcn.0040dd3a
add esp, 4
xor eax, eax
mov byte [esp + 0x90], 4
cmp dword [esp + 0x40], 8
mov dword [esp + 0x5c], ebx
mov dword [esp + 0x58], edi
mov word [esp + 0x48], ax
jb 0x40573b
mov ecx, dword [esp + 0x2c]
push ecx
call fcn.0040dd3a
add esp, 4
push 1
xor edx, edx
push 0x568de0
lea ecx, [esp + 0x30]
mov dword [esp + 0x48], ebx
mov dword [esp + 0x44], edi
mov word [esp + 0x34], dx
call fcn.004018d0
lea eax, [esp + 0x44]
push eax
lea eax, [esp + 0x2c]
lea ecx, [esp + 0x64]
mov byte [esp + 0x94], 0xa
call fcn.004042f0
push 0xffffffffffffffff
push edi
push eax
lea ecx, [esi + 0x140]
mov byte [esp + 0x9c], 0xb
call fcn.00401620
cmp dword [esp + 0x5c], 8
jb 0x40579f
mov ecx, dword [esp + 0x48]
push ecx
call fcn.0040dd3a
add esp, 4
xor edx, edx
mov byte [esp + 0x90], 4
cmp dword [esp + 0x40], 8
mov dword [esp + 0x5c], ebx
mov dword [esp + 0x58], edi
mov word [esp + 0x48], dx
jb 0x4057ca
mov eax, dword [esp + 0x2c]
push eax
call fcn.0040dd3a
add esp, 4
xor ecx, ecx
push 1
mov word [esp + 0x30], cx
push 0x568e14
lea ecx, [esp + 0x30]
mov dword [esp + 0x48], ebx
mov dword [esp + 0x44], edi
call fcn.004018d0
lea edx, [esp + 0x44]
push edx
lea eax, [esp + 0x2c]
lea ecx, [esp + 0x64]
mov byte [esp + 0x94], 0xc
call fcn.004042f0
push 0xffffffffffffffff
push edi
push eax
lea ecx, [esi + 0x5ac]
mov byte [esp + 0x9c], 0xd
call fcn.00401620
cmp dword [esp + 0x5c], 8
jb 0x40582e
mov eax, dword [esp + 0x48]
push eax
call fcn.0040dd3a
add esp, 4
xor ecx, ecx
mov byte [esp + 0x90], 4
cmp dword [esp + 0x40], 8
mov dword [esp + 0x5c], ebx
mov dword [esp + 0x58], edi
mov word [esp + 0x48], cx
jb 0x405859
mov edx, dword [esp + 0x2c]
push edx
call fcn.0040dd3a
add esp, 4
push 1
xor eax, eax
push 0x568e28
lea ecx, [esp + 0x30]
mov dword [esp + 0x48], ebx
mov dword [esp + 0x44], edi
mov word [esp + 0x34], ax
call fcn.004018d0
lea ecx, [esp + 0x44]
push ecx
lea eax, [esp + 0x2c]
lea ecx, [esp + 0x64]
mov byte [esp + 0x94], 0xe
call fcn.004042f0
push 0xffffffffffffffff
push edi
push eax
lea ecx, [esi + 0x124]
mov byte [esp + 0x9c], 0xf
call fcn.00401620
cmp dword [esp + 0x5c], 8
jb 0x4058bd
mov edx, dword [esp + 0x48]
push edx
call fcn.0040dd3a
add esp, 4
xor eax, eax
mov byte [esp + 0x90], 4
cmp dword [esp + 0x40], 8
mov dword [esp + 0x5c], ebx
mov dword [esp + 0x58], edi
mov word [esp + 0x48], ax
jb 0x4058e8
mov ecx, dword [esp + 0x2c]
push ecx
call fcn.0040dd3a
add esp, 4
push 1
xor edx, edx
push 0x568dc4
lea ecx, [esp + 0x30]
mov dword [esp + 0x48], ebx
mov dword [esp + 0x44], edi
mov word [esp + 0x34], dx
call fcn.004018d0
lea eax, [esp + 0x44]
push eax
lea eax, [esp + 0x2c]
lea ecx, [esp + 0x64]
mov byte [esp + 0x94], 0x10
call fcn.004042f0
push 0xffffffffffffffff
push edi
push eax
lea ecx, [esi + 0x5c8]
mov byte [esp + 0x9c], 0x11
call fcn.00401620
cmp dword [esp + 0x5c], 8
jb 0x40594c
mov ecx, dword [esp + 0x48]
push ecx
call fcn.0040dd3a
add esp, 4
xor edx, edx
mov byte [esp + 0x90], 4
cmp dword [esp + 0x40], 8
mov dword [esp + 0x5c], ebx
mov dword [esp + 0x58], edi
mov word [esp + 0x48], dx
jb 0x405977
mov eax, dword [esp + 0x2c]
push eax
call fcn.0040dd3a
add esp, 4
xor ecx, ecx
push 1
mov word [esp + 0x30], cx
push 0x568e40
lea ecx, [esp + 0x30]
mov dword [esp + 0x48], ebx
mov dword [esp + 0x44], edi
call fcn.004018d0
lea edx, [esp + 0x44]
push edx
lea eax, [esp + 0x2c]
lea ecx, [esp + 0x64]
mov byte [esp + 0x94], 0x12
call fcn.004042f0
push 0xffffffffffffffff
push edi
push eax
lea ecx, [esi + 0x5e4]
mov byte [esp + 0x9c], 0x13
call fcn.00401620
cmp dword [esp + 0x5c], 8
jb 0x4059db
mov eax, dword [esp + 0x48]
push eax
call fcn.0040dd3a
add esp, 4
xor ecx, ecx
mov byte [esp + 0x90], 4
cmp dword [esp + 0x40], 8
mov dword [esp + 0x5c], ebx
mov dword [esp + 0x58], edi
mov word [esp + 0x48], cx
jb 0x405a06
mov edx, dword [esp + 0x2c]
push edx
call fcn.0040dd3a
add esp, 4
mov ecx, esi
call fcn.00405ad0
push str.Local_AppWizard_Generated_Applications
mov ecx, esi
call fcn.0041b00a
mov dword [esp + 0x1c], 1
call fcn.00405f80
test al, al
jne 0x405a30
mov dword [esp + 0x1c], edi
mov edi, edi
push esi
lea ecx, [esp + 0x20]
call fcn.00404df0
cmp dword [esp + 0x1c], 3
jne 0x405a30
mov ecx, esi
call fcn.00405e40
lea ecx, [esp + 0x60]
mov byte [esp + 0x90], 2
call fcn.0040a7a0
mov byte [esp + 0x90], 0
mov eax, dword [esp + 0x18]
add eax, 0xfffffff0
lea ecx, [eax + 0xc]
or edx, 0xffffffff
lock xadd dword [ecx], edx
dec edx
test edx, edx
jg 0x405a81
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
add ebp, 0xfffffff0
mov dword [esp + 0x90], 0xffffffff
lea ecx, [ebp + 0xc]
or edx, 0xffffffff
lock xadd dword [ecx], edx
dec edx
test edx, edx
jg 0x405aa9
mov ecx, dword [ebp]
mov eax, dword [ecx]
mov edx, dword [eax + 4]
push ebp
call edx
xor eax, eax
mov ecx, dword [esp + 0x88]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebp
pop ebx
mov esp, ebp
pop ebp
ret
push 0x80070057
call fcn.00402a00
int3