Function at 0x403e80
Capabilities:
Accept command line arguments

Disassembly:
push ebp
mov ebp, esp
and esp, 0xfffffff8
sub esp, 0x234
mov eax, dword [0x4773f0]
xor eax, esp
mov dword [esp + 0x230], eax
mov eax, dword [ebp + 0x10]
push ebx
push esi
push edi
mov dword [esp + 0x1c], eax
call fcn.004196b0
xor ebx, ebx
push ebx
push ebx
push ebx
push ebx
call dword [sym.imp.USER32.dll_DefWindowProcW]
call fcn.00404c20
push 0x8007
call dword [sym.imp.KERNEL32.dll_SetErrorMode]
push 0x402e50
call dword [sym.imp.KERNEL32.dll_SetUnhandledExceptionFilter]
push ebx
mov esi, 1
push esi
push esi
push ebx
call dword [sym.imp.KERNEL32.dll_CreateEventW]
mov ecx, dword [0x4788a4]
lea edx, [esp + 0x18]
push edx
mov dword [0x4a1248], eax
mov dword [esp + 0x18], ecx
mov dword [esp + 0x14], ebx
mov dword [esp + 0x1c], ebx
call dword [sym.imp.KERNEL32.dll_GetCommandLineW]
push eax
call dword [sym.imp.SHELL32.dll_CommandLineToArgvW]
mov edi, eax
cmp edi, ebx
je 0x404209
cmp dword [esp + 0x18], esi
jle 0x404106
lea ebx, [esi + 1]
nop
mov eax, dword [edi + esi*4]
push str._openurl
push eax
call fcn.00444551
add esp, 8
test eax, eax
jne 0x403f5a
cmp ebx, dword [esp + 0x18]
jge 0x4040e2
mov eax, dword [edi + esi*4 + 4]
push eax
lea ecx, [esp + 0x18]
call fcn.00402610
mov dword [esp + 0x10], 1
jmp 0x404106
mov ecx, dword [edi + esi*4]
push str._fhl
push ecx
call fcn.00444551
add esp, 8
test eax, eax
jne 0x403f94
cmp ebx, dword [esp + 0x18]
jge 0x4040e2
mov ecx, dword [edi + esi*4 + 4]
push ecx
lea ecx, [esp + 0x18]
call fcn.00402610
mov dword [esp + 0x10], 2
jmp 0x404106
mov edx, dword [edi + esi*4]
push str._openurl2
push edx
call fcn.00444551
add esp, 8
test eax, eax
jne 0x403fce
cmp ebx, dword [esp + 0x18]
jge 0x4040e2
mov edx, dword [edi + esi*4 + 4]
push edx
lea ecx, [esp + 0x18]
call fcn.00402610
mov dword [esp + 0x10], 3
jmp 0x404106
mov eax, dword [edi + esi*4]
push str._openurl3
push eax
call fcn.00444551
add esp, 8
test eax, eax
jne 0x404008
cmp ebx, dword [esp + 0x18]
jge 0x4040e2
mov eax, dword [edi + esi*4 + 4]
push eax
lea ecx, [esp + 0x18]
call fcn.00402610
mov dword [esp + 0x10], 4
jmp 0x404106
mov ecx, dword [edi + esi*4]
push str._openurl4
push ecx
call fcn.00444551
add esp, 8
test eax, eax
jne 0x404063
lea edx, [ebx + 1]
cmp edx, dword [esp + 0x18]
jge 0x4040e2
mov ecx, dword [edi + esi*4 + 4]
push ecx
lea ecx, [esp + 0x18]
call fcn.00402610
lea edx, [esp + 0x14]
push edx
mov ecx, 0x4a13b8
call fcn.00404b80
mov eax, dword [edi + esi*4 + 8]
push eax
mov ecx, 0x4a13b4
call fcn.00402610
mov dword [esp + 0x10], 5
jmp 0x404106
mov eax, dword [edi + esi*4]
push str._openurl5
push eax
call fcn.00444551
add esp, 8
test eax, eax
jne 0x4040c7
lea ecx, [ebx + 3]
cmp ecx, dword [esp + 0x18]
jge 0x4040e2
mov ecx, dword [edi + esi*4 + 4]
push ecx
mov ecx, 0x4a13b8
call fcn.00402610
mov edx, dword [edi + esi*4 + 8]
push edx
mov ecx, 0x4a13bc
call fcn.00402610
mov eax, dword [edi + esi*4 + 0xc]
push eax
mov ecx, 0x4a13c0
call fcn.00402610
mov ecx, dword [edi + esi*4 + 0x10]
push ecx
mov ecx, 0x4a13b4
call fcn.00402610
mov dword [esp + 0x10], 6
jmp 0x404106
mov edx, dword [edi + esi*4]
push str._wcrank
push edx
call fcn.00444551
add esp, 8
test eax, eax
jne 0x4040e2
cmp ebx, dword [esp + 0x18]
jl 0x4040f0
inc esi
inc ebx
cmp esi, dword [esp + 0x18]
jl 0x403f20
jmp 0x404106
mov edx, dword [edi + esi*4 + 4]
push edx
lea ecx, [esp + 0x18]
call fcn.00402610
mov dword [esp + 0x10], 7
push edi
call dword [sym.imp.KERNEL32.dll_LocalFree]
mov eax, dword [esp + 0x10]
cmp eax, 1
jne 0x40419a
mov eax, dword [0x4788a4]
mov ecx, str.http:__hd.360.cn_fudai_lottery2.1.html
shr ecx, 0x10
mov dword [esp + 0x10], eax
test ecx, ecx
jne 0x404143
mov edx, str.http:__hd.360.cn_fudai_lottery2.1.html
movzx eax, dx
push eax
lea ecx, [esp + 0x14]
call fcn.00402670
jmp 0x404181
push str.http:__hd.360.cn_fudai_lottery2.1.html
call dword [sym.imp.KERNEL32.dll_lstrlenW]
mov esi, eax
test esi, esi
je 0x404181
push esi
lea ecx, [esp + 0x14]
call fcn.00402af0
test eax, eax
je 0x404181
mov ecx, dword [esp + 0x10]
add esi, esi
push esi
push str.http:__hd.360.cn_fudai_lottery2.1.html
add esi, 2
push esi
push ecx
call fcn.004433b8
push eax
call fcn.00402bb0
add esp, 0x14
call fcn.00402e70
mov esi, dword [esp + 0x10]
lea edx, [esi - 0xc]
cmp edx, dword [0x4788a0]
je 0x404209
add esi, 0xfffffff4
jmp 0x4041c9
cmp eax, 2
je 0x404209
cmp eax, 3
jne 0x4041df
push str.http:__hd.360.cn_fudai_lottery2.1.html
lea ecx, [esp + 0x2c]
call fcn.00402760
call fcn.00402e70
mov eax, dword [esp + 0x28]
lea ecx, [eax - 0xc]
cmp ecx, dword [0x4788a0]
je 0x404209
lea esi, [eax - 0xc]
push esi
call dword [sym.imp.KERNEL32.dll_InterlockedDecrement]
test eax, eax
jg 0x404209
push esi
call fcn.00443685
add esp, 4
jmp 0x404209
cmp eax, 4
jne 0x4041eb
call fcn.00402e70
jmp 0x404209
cmp eax, 5
jne 0x4041ff
lea edx, [esp + 0x14]
push edx
call fcn.004032e0
add esp, 4
jmp 0x404209
cmp eax, 6
jne 0x404209
call fcn.00403740
cmp dword [esp + 0x1c], 0
mov esi, dword [0x4788a4]
mov dword [esp + 0x20], vtable.CCommandParser.0
mov dword [esp + 0x24], esi
jne 0x404226
xor ebx, ebx
jmp 0x404233
mov eax, dword [esp + 0x1c]
push eax
call dword [sym.imp.KERNEL32.dll_lstrlenW]
mov ebx, eax
cmp dword [esi - 0xc], 1
lea edi, [esi - 0xc]
jg 0x404241
cmp ebx, dword [esi - 4]
jle 0x40427c
add esi, 0xfffffff4
cmp esi, dword [0x4788a0]
je 0x40426a
push edi
call dword [sym.imp.KERNEL32.dll_InterlockedDecrement]
test eax, eax
jg 0x404260
push edi
call fcn.00443685
add esp, 4
mov ecx, dword [0x4788a4]
mov dword [esp + 0x24], ecx
push ebx
lea ecx, [esp + 0x28]
call fcn.00402af0
test eax, eax
je 0x4042a1
mov esi, dword [esp + 0x24]
mov edx, dword [esp + 0x1c]
lea edi, [ebx + ebx]
push edi
push edx
lea eax, [edi + 2]
push eax
push esi
call fcn.004433b8
push eax
call fcn.00402bb0
add esp, 0x14
xor ecx, ecx
mov dword [esi - 8], ebx
mov word [edi + esi], cx
lea ecx, [esp + 0x24]
call fcn.00402a70
mov edx, dword [esp + 0x24]
push edx
call dword [sym.imp.USER32.dll_CharLowerW]
push 3
lea eax, [esp + 0x24]
push eax
mov ecx, 0x4695e0
call fcn.004078f0
push 3
lea ecx, [esp + 0x24]
push ecx
mov ecx, 0x4695e8
mov esi, eax
call fcn.004078f0
push 3
lea edx, [esp + 0x24]
push edx
mov ecx, 0x4695f0
mov ebx, eax
call fcn.004078f0
mov edi, eax
push 3
lea eax, [esp + 0x24]
push eax
mov ecx, 0x4695f8
call fcn.004078f0
push 4
lea ecx, [esp + 0x24]
push ecx
mov ecx, str._to
mov dword [esp + 0x30], eax
call fcn.004078f0
lea edx, [esp + 0x14]
push edx
mov dword [esp + 0x30], eax
push 4
lea eax, [esp + 0x28]
push eax
mov ecx, str._wp
call fcn.004077f0
test eax, eax
je 0x40444b
test edi, edi
je 0x40444b
cmp dword [esp + 0x28], 0
je 0x40444b
mov eax, dword [esp + 0x14]
mov edx, dword [esp + 0x14]
push ecx
add eax, 0xfffffff4
cmp dword [eax], 0
mov dword [esp + 0x20], esp
mov ecx, esp
jl 0x40436b
push eax
mov dword [ecx], edx
call dword [sym.imp.KERNEL32.dll_InterlockedIncrement]
jmp 0x404378
mov eax, dword [0x4788a4]
push edx
mov dword [ecx], eax
call fcn.00402610
call fcn.00407cf0
add esp, 4
test eax, eax
je 0x40444b
xor eax, eax
push 0x206
push eax
lea ecx, [esp + 0x3a]
push ecx
mov word [esp + 0x3c], ax
call fcn.00446040
add esp, 0xc
push 0x104
lea edx, [esp + 0x34]
push edx
push 0
call dword [sym.imp.KERNEL32.dll_GetModuleFileNameW]
lea eax, [esp + 0x30]
push eax
call dword [sym.imp.SHLWAPI.dll_PathRemoveFileSpecW]
push str.360NMConnection.dll
lea ecx, [esp + 0x34]
push ecx
call dword [sym.imp.SHLWAPI.dll_PathAppendW]
xor eax, eax
lea edx, [esp + 0x30]
push edx
mov dword [esp + 0x20], eax
mov dword [esp + 0x14], eax
call fcn.004029d0
add esp, 4
test eax, eax
je 0x40444b
lea eax, [esp + 0x10]
push eax
lea ecx, [esp + 0x20]
push ecx
lea edx, [esp + 0x38]
push edx
call fcn.00407fe0
add esp, 0xc
test eax, eax
je 0x40444b
mov eax, dword [esp + 0x1c]
cmp eax, 0x20000
ja 0x40441f
jb 0x40444b
mov eax, dword [esp + 0x10]
cmp eax, 0x10438
ja 0x40441f
jb 0x40444b
mov eax, dword [esp + 0x28]
lea edx, [eax + ebx]
sub esp, 0x10
mov eax, esp
mov dword [eax], esi
lea ecx, [edi + esi]
mov dword [eax + 4], ebx
mov dword [eax + 8], ecx
mov ecx, dword [esp + 0x3c]
mov dword [eax + 0xc], edx
push ecx
lea edx, [esp + 0x28]
push edx
call fcn.00403b90
add esp, 0x18
mov eax, dword [esp + 0x24]
add eax, 0xfffffff4
cmp eax, dword [0x4788a0]
je 0x404475
mov esi, dword [esp + 0x24]
add esi, 0xfffffff4
push esi
call dword [sym.imp.KERNEL32.dll_InterlockedDecrement]
test eax, eax
jg 0x404475
push esi
call fcn.00443685
add esp, 4
mov eax, dword [0x4a1248]
xor edi, edi
cmp eax, edi
je 0x40448d
push eax
call dword [sym.imp.KERNEL32.dll_CloseHandle]
mov dword [0x4a1248], edi
call fcn.00404a60
mov esi, dword [0x4a13ac]
cmp esi, edi
je 0x4044cc
mov eax, dword [esi]
cmp eax, edi
je 0x4044ad
push eax
call fcn.0044332a
add esp, 4
mov dword [esi], edi
mov eax, dword [esi + 4]
cmp eax, edi
je 0x4044c0
push eax
call fcn.0044332a
add esp, 4
mov dword [esi + 4], edi
push esi
mov dword [esi + 8], edi
call fcn.00443310
add esp, 4
call fcn.00404ae0
mov eax, dword [esp + 0x14]
lea ecx, [eax - 0xc]
cmp ecx, dword [0x4788a0]
je 0x4044f7
lea esi, [eax - 0xc]
push esi
call dword [sym.imp.KERNEL32.dll_InterlockedDecrement]
test eax, eax
jg 0x4044f7
push esi
call fcn.00443685
add esp, 4
mov ecx, dword [esp + 0x23c]
pop edi
pop esi
pop ebx
xor ecx, esp
xor eax, eax
call fcn.0044331b
mov esp, ebp
pop ebp
ret 0x10