Function at 0x401e59
Capabilities:
Accept command line arguments

Disassembly:
push ebp
mov ebp, esp
and esp, 0xfffffff8
push 0xffffffffffffffff
push 0x44eabb
mov eax, dword fs:[0]
push eax
sub esp, 0x50
push ebx
push esi
push edi
mov eax, dword [0x46b200]
xor eax, esp
push eax
lea eax, [esp + 0x60]
mov dword fs:[0], eax
and dword [0x46fa98], 0
lea ecx, [esp + 0x20]
mov word [0x46fa9c], 0
call fcn.004013f2
and dword [esp + 0x68], 0
lea ecx, [esp + 0x1c]
call fcn.004013f2
mov byte [esp + 0x68], 1
mov ecx, dword [ebp + 8]
mov ebx, 0x46f990
push 0x46f9f0
mov dword [0x46f998], ebx
mov dword [0x46fab4], ebx
mov dword [0x46fb7c], ebx
mov dword [0x46fb84], ebx
call fcn.00419b17
mov byte [esp + 0x16], al
test al, al
je 0x40234e
push str.AppCommandLine
lea eax, [esp + 0x1c]
push eax
call fcn.00401415
mov byte [esp + 0x68], 2
mov edi, 0x46faac
push edi
lea eax, [esp + 0x1c]
push eax
mov eax, dword [0x46f990]
mov ecx, ebx
call dword [eax]
mov esi, eax
call fcn.00413d9a
mov byte [esp + 0x68], 1
lea ecx, [esp + 0x18]
call fcn.00401452
and dword [esp + 0x24], 0
lea eax, [esp + 0x1c]
push eax
lea eax, [esp + 0x1b]
push eax
lea eax, [esp + 0x28]
push eax
lea eax, [esp + 0x34]
push eax
push edi
lea edi, [esp + 0x38]
mov dword [esp + 0x3c], 0x2f
call fcn.0042f182
add esp, 0x14
test al, al
je 0x401f9e
push str.exportmanifest
lea eax, [esp + 0x1c]
push eax
call fcn.00401415
mov byte [esp + 0x68], 3
push dword [esp + 0x20]
lea eax, [esp + 0x1c]
push eax
call fcn.0040fb84
neg eax
sbb al, al
inc al
mov byte [esp + 0x17], al
mov byte [esp + 0x68], 1
lea ecx, [esp + 0x18]
call fcn.00401452
cmp byte [esp + 0x17], 0
je 0x401f9e
mov byte [0x46fa9c], 1
cmp byte [0x46fa9c], 0
jne 0x40202f
lea esi, [esp + 0x1c]
call fcn.004014da
push str.HKCU_software_appbundlerdebugwinmain
lea eax, [esp + 0x1c]
push eax
call fcn.00401415
mov byte [esp + 0x68], 4
lea eax, [esp + 0x18]
push eax
mov ecx, esi
call fcn.0042e927
pop ecx
mov byte [esp + 0x68], 1
lea ecx, [esp + 0x18]
call fcn.00401452
push 0x454094
mov eax, esi
push eax
call fcn.00404eb4
test eax, eax
jne 0x402023
lea eax, [esp + 0x28]
push eax
call fcn.0042a45a
pop ecx
lea ecx, [esp + 0x28]
call fcn.00401452
call dword [sym.imp.KERNEL32.DLL_GetCommandLineW]
push 0
push 0x454098
push eax
call dword [sym.imp.USER32.dll_GetDesktopWindow]
push eax
call dword [sym.imp.USER32.dll_MessageBoxW]
push dword [ebp + 8]
call fcn.004024a1
mov byte [esp + 0x16], al
cmp byte [esp + 0x16], 0
je 0x40234e
cmp byte [0x46fa9c], 0
jne 0x40234e
push str.TestFlag
lea eax, [esp + 0x1c]
push eax
call fcn.00401415
mov byte [esp + 0x68], 5
lea eax, [esp + 0x18]
push eax
lea eax, [esp + 0x28]
push eax
mov eax, dword [0x46f990]
mov ecx, ebx
call dword [eax]
mov ebx, eax
call fcn.00413c05
mov byte [esp + 0x68], 6
mov eax, dword [eax]
cmp dword [eax - 0xc], 0
setne bl
mov byte [esp + 0x68], 5
lea ecx, [esp + 0x24]
call fcn.00401452
mov byte [esp + 0x68], 1
lea ecx, [esp + 0x18]
call fcn.00401452
test bl, bl
je 0x402235
lea eax, [esp + 0x30]
push eax
call fcn.0041617a
mov byte [esp + 0x68], 7
mov esi, 0x46f990
mov eax, esi
lea edi, [esp + 0x3c]
call fcn.00418fcb
mov byte [esp + 0x68], 8
lea eax, [esp + 0x30]
push eax
mov eax, edi
push eax
call fcn.00419020
mov bl, al
mov byte [esp + 0x68], 7
call fcn.00419000
mov byte [esp + 0x68], 1
lea ecx, [esp + 0x38]
call fcn.00401452
test bl, bl
je 0x40223a
push str.testhdid
lea eax, [esp + 0x28]
push eax
call fcn.00401415
mov byte [esp + 0x68], 0xa
lea eax, [esp + 0x24]
push eax
lea eax, [esp + 0x1c]
push eax
mov eax, dword [0x46f990]
mov ecx, esi
call dword [eax]
mov ebx, eax
call fcn.00413c05
mov byte [esp + 0x68], 0xc
lea ecx, [esp + 0x24]
call fcn.00401452
mov eax, dword [esp + 0x18]
cmp dword [eax - 0xc], 0
je 0x402181
push 0x4540d8
lea eax, [esp + 0x28]
push eax
call fcn.00401415
mov byte [esp + 0x68], 0xd
lea eax, [esp + 0x18]
push eax
lea eax, [esp + 0x28]
push eax
mov eax, dword [0x46f990]
mov ecx, esi
call dword [eax]
mov esi, eax
call fcn.00413d9a
mov byte [esp + 0x68], 0xc
lea ecx, [esp + 0x24]
call fcn.00401452
mov esi, 0x46f990
push str.testcsid
lea eax, [esp + 0x28]
push eax
call fcn.00401415
mov byte [esp + 0x68], 0xe
lea eax, [esp + 0x24]
push eax
lea eax, [esp + 0x30]
push eax
mov eax, dword [0x46f990]
mov ecx, esi
call dword [eax]
mov ebx, eax
call fcn.00413c05
mov byte [esp + 0x68], 0xf
lea edi, [esp + 0x18]
call fcn.0040488e
mov byte [esp + 0x68], 0xe
lea ecx, [esp + 0x2c]
call fcn.00401452
mov byte [esp + 0x68], 0xc
lea ecx, [esp + 0x24]
call fcn.00401452
mov eax, dword [esp + 0x18]
cmp dword [eax - 0xc], 0
je 0x402222
push 0x4540f8
lea eax, [esp + 0x28]
push eax
call fcn.00401415
mov byte [esp + 0x68], 0x10
mov eax, edi
push eax
lea eax, [esp + 0x28]
push eax
mov eax, dword [0x46f990]
mov ecx, esi
call dword [eax]
mov esi, eax
call fcn.00413d9a
mov byte [esp + 0x68], 0xc
lea ecx, [esp + 0x24]
call fcn.00401452
mov esi, 0x46f990
mov byte [esp + 0x68], 1
lea ecx, [esp + 0x18]
call fcn.00401452
jmp 0x4022d1
mov esi, 0x46f990
mov edi, str.TestFlag
push edi
lea eax, [esp + 0x28]
push eax
call fcn.00401415
mov byte [esp + 0x68], 0x11
lea eax, [esp + 0x24]
push eax
lea eax, [esp + 0x30]
push eax
mov eax, dword [0x46f990]
mov ecx, esi
call dword [eax]
mov ebx, eax
call fcn.00413c05
mov byte [esp + 0x68], 0x12
mov eax, dword [eax]
cmp dword [eax - 0xc], 0
setne bl
mov byte [esp + 0x68], 0x11
lea ecx, [esp + 0x2c]
call fcn.00401452
mov byte [esp + 0x68], 1
lea ecx, [esp + 0x24]
call fcn.00401452
test bl, bl
je 0x4022d1
push edi
lea eax, [esp + 0x28]
push eax
call fcn.00401415
mov byte [esp + 0x68], 0x13
push 0
lea eax, [esp + 0x28]
push eax
mov eax, dword [0x46f990]
mov ecx, esi
call dword [eax]
mov esi, eax
call fcn.0041417e
mov byte [esp + 0x68], 1
lea ecx, [esp + 0x24]
call fcn.00401452
mov esi, 0x46f990
push str.TestFlag
lea eax, [esp + 0x28]
push eax
call fcn.00401415
mov byte [esp + 0x68], 0x14
mov eax, dword [0x46f990]
mov ecx, esi
call dword [eax]
lea ecx, [esp + 0x24]
push ecx
lea ecx, [esp + 0x1b]
mov edx, eax
mov byte [esp + 0x1b], 0
call fcn.00413dc8
mov edi, eax
mov byte [esp + 0x68], 1
lea ecx, [esp + 0x24]
call fcn.00401452
push str.note:__u__0x_x__was_the_command_value
lea eax, [esp + 0x2c]
push eax
call fcn.00401415
mov byte [esp + 0x68], 0x15
mov eax, dword [0x46f990]
mov ecx, esi
call dword [eax + 4]
mov ecx, dword [eax]
push edi
push edi
push dword [esp + 0x30]
push eax
call dword [ecx + 0xc]
add esp, 0x10
mov byte [esp + 0x68], 1
lea ecx, [esp + 0x28]
call fcn.00401452
mov byte [esp + 0x68], 0
lea ecx, [esp + 0x1c]
call fcn.00401452
or dword [esp + 0x68], 0xffffffff
lea ecx, [esp + 0x20]
call fcn.00401452
mov al, byte [esp + 0x16]
mov ecx, dword [esp + 0x60]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 4