Function at 0x401af0
Capabilities:
Accept command line arguments

Disassembly:
push ebp
mov ebp, esp
and esp, 0xfffffff8
sub esp, 0x1c
push ebx
push esi
push edi
xor ebx, ebx
push ebx
push ebx
push ebx
push ebx
call dword [sym.imp.USER32.dll_DefWindowProcW]
call fcn.004027b0
push 0x8007
call dword [sym.imp.KERNEL32.dll_SetErrorMode]
push 0x401060
call dword [sym.imp.KERNEL32.dll_SetUnhandledExceptionFilter]
mov esi, dword [0x45bc00]
lea eax, [esp + 0x10]
push eax
mov dword [esp + 0x10], esi
mov dword [esp + 0x18], ebx
mov dword [esp + 0x14], ebx
call dword [sym.imp.KERNEL32.dll_GetCommandLineW]
push eax
call dword [sym.imp.SHELL32.dll_CommandLineToArgvW]
mov edi, eax
test edi, edi
je 0x401c5c
cmp dword [esp + 0x10], 3
jne 0x401c5c
mov esi, 1
lea ebx, [esi + 1]
mov ecx, dword [edi + esi*4]
push str._openurl
push ecx
call fcn.0042e43d
add esp, 8
test eax, eax
jne 0x401ba0
cmp ebx, dword [esp + 0x10]
jge 0x401c41
mov edx, dword [edi + esi*4 + 4]
inc esi
push edx
lea ecx, [esp + 0x10]
inc ebx
call fcn.004054e0
mov dword [esp + 0x14], 1
jmp 0x401c41
mov eax, dword [edi + esi*4]
push str._fhl
push eax
call fcn.0042e43d
add esp, 8
test eax, eax
jne 0x401bd9
cmp ebx, dword [esp + 0x10]
jge 0x401c41
mov ecx, dword [edi + esi*4 + 4]
inc esi
push ecx
lea ecx, [esp + 0x10]
inc ebx
call fcn.004054e0
mov dword [esp + 0x14], 2
jmp 0x401c41
mov edx, dword [edi + esi*4]
push str._openurl2
push edx
call fcn.0042e43d
add esp, 8
test eax, eax
jne 0x401c0e
cmp ebx, dword [esp + 0x10]
jge 0x401c41
mov eax, dword [edi + esi*4 + 4]
inc esi
push eax
lea ecx, [esp + 0x10]
inc ebx
call fcn.004054e0
mov dword [esp + 0x14], 3
jmp 0x401c41
mov ecx, dword [edi + esi*4]
push str._openurl3
push ecx
call fcn.0042e43d
add esp, 8
test eax, eax
jne 0x401c41
cmp ebx, dword [esp + 0x10]
jge 0x401c41
mov edx, dword [edi + esi*4 + 4]
inc esi
push edx
lea ecx, [esp + 0x10]
inc ebx
call fcn.004054e0
mov dword [esp + 0x14], 4
inc esi
inc ebx
cmp esi, dword [esp + 0x10]
jl 0x401b64
push edi
call dword [sym.imp.KERNEL32.dll_LocalFree]
mov esi, dword [esp + 0xc]
mov ebx, dword [esp + 0x14]
cmp dword [esi - 0xc], 0
push ecx
lea eax, [esi - 0xc]
mov dword [esp + 0x1c], esp
mov ecx, esp
jl 0x401c77
push eax
mov dword [ecx], esi
call dword [sym.imp.KERNEL32.dll_InterlockedIncrement]
jmp 0x401c84
mov eax, dword [0x45bc00]
push esi
mov dword [ecx], eax
call fcn.004054e0
call fcn.00405bf0
add esp, 4
test eax, eax
je 0x401d27
cmp ebx, 1
jne 0x401cd9
push str.http:__hd.360.cn_fudai_lottery2.1.html
lea ecx, [esp + 0x18]
call fcn.004026c0
lea ecx, [esp + 0x14]
push ecx
call fcn.00401080
mov eax, dword [esp + 0x18]
lea edx, [eax - 0xc]
add esp, 4
cmp edx, dword [0x45bbfc]
je 0x401d27
lea esi, [eax - 0xc]
push esi
call dword [sym.imp.KERNEL32.dll_InterlockedDecrement]
test eax, eax
jg 0x401d27
push esi
call fcn.0042da66
jmp 0x401d24
cmp ebx, 2
jne 0x401cea
lea eax, [esp + 0xc]
push eax
call fcn.00401490
jmp 0x401d24
cmp ebx, 3
jne 0x401d15
push str.http:__hd.360.cn_fudai_lottery2.1.html
lea ecx, [esp + 0x18]
call fcn.004026c0
lea ecx, [esp + 0x14]
push ecx
call fcn.00401080
add esp, 4
lea ecx, [esp + 0x14]
call fcn.00405540
jmp 0x401d27
cmp ebx, 4
jne 0x401d27
lea edx, [esp + 0xc]
push edx
call fcn.00401080
add esp, 4
mov ecx, dword [ebp + 0x10]
lea eax, [esp + 0x20]
push eax
call fcn.004055d0
lea ecx, [esp + 0x20]
push ecx
mov ecx, 3
mov edx, 0x450e00
call fcn.00405790
lea edx, [esp + 0x20]
push edx
mov ecx, 3
mov edx, 0x450e08
mov esi, eax
call fcn.00405790
mov edi, eax
lea eax, [esp + 0x20]
push eax
mov ecx, 3
mov edx, 0x450e10
call fcn.00405790
lea ecx, [esp + 0x20]
push ecx
mov ecx, 3
mov edx, 0x450e18
mov ebx, eax
call fcn.00405790
lea edx, [esp + 0x20]
push edx
mov ecx, 4
mov edx, str._to
mov dword [esp + 0x18], eax
call fcn.00405790
mov dword [esp + 0x18], eax
push 4
lea eax, [esp + 0x24]
push eax
lea ecx, [esp + 0x14]
mov edx, str._wp
call fcn.00405690
test eax, eax
je 0x401e2d
test ebx, ebx
je 0x401e2d
cmp dword [esp + 0x14], 0
je 0x401e2d
mov edx, dword [esp + 0xc]
cmp dword [edx - 0xc], 0
push ecx
lea eax, [edx - 0xc]
mov dword [esp + 0x20], esp
mov ecx, esp
jl 0x401de9
push eax
mov dword [ecx], edx
call dword [sym.imp.KERNEL32.dll_InterlockedIncrement]
jmp 0x401df6
mov eax, dword [0x45bc00]
push edx
mov dword [ecx], eax
call fcn.004054e0
call fcn.00405bf0
add esp, 4
test eax, eax
je 0x401e2d
mov edx, dword [esp + 0x14]
sub esp, 0x10
mov eax, esp
mov dword [eax], esi
mov dword [eax + 4], edi
lea ecx, [ebx + esi]
mov dword [eax + 8], ecx
add edx, edi
mov dword [eax + 0xc], edx
mov eax, dword [esp + 0x28]
push eax
lea ecx, [esp + 0x20]
push ecx
call fcn.00401800
add esp, 0x18
call fcn.00402430
mov esi, dword [0x45ed3c]
xor edi, edi
cmp esi, edi
je 0x401e6e
mov eax, dword [esi]
cmp eax, edi
je 0x401e4f
push eax
call fcn.0042de79
add esp, 4
mov dword [esi], edi
mov eax, dword [esi + 4]
cmp eax, edi
je 0x401e62
push eax
call fcn.0042de79
add esp, 4
mov dword [esi + 4], edi
push esi
mov dword [esi + 8], edi
call fcn.0042d980
add esp, 4
call fcn.004024b0
mov eax, dword [esp + 0x24]
lea edx, [eax - 0xc]
mov dword [esp + 0x20], vtable.CCommandParser.0
cmp edx, dword [0x45bbfc]
je 0x401ea8
add eax, 0xfffffff4
push eax
call dword [sym.imp.KERNEL32.dll_InterlockedDecrement]
test eax, eax
jg 0x401ea8
mov eax, dword [esp + 0x24]
add eax, 0xfffffff4
push eax
call fcn.0042da66
add esp, 4
mov eax, dword [esp + 0xc]
lea ecx, [eax - 0xc]
cmp ecx, dword [0x45bbfc]
je 0x401ece
lea esi, [eax - 0xc]
push esi
call dword [sym.imp.KERNEL32.dll_InterlockedDecrement]
test eax, eax
jg 0x401ece
push esi
call fcn.0042da66
add esp, 4
pop edi
pop esi
xor eax, eax
pop ebx
mov esp, ebp
pop ebp
ret 0x10