Function at 0x403ea0
Capabilities:
Accept command line arguments

Disassembly:
push ebp
mov ebp, esp
and esp, 0xfffffff8
sub esp, 0x234
mov eax, dword [0x462100]
xor eax, esp
mov dword [esp + 0x230], eax
mov eax, dword [ebp + 0x10]
push ebx
push esi
push edi
xor edi, edi
push edi
push edi
push edi
push edi
mov dword [esp + 0x28], eax
call dword [sym.imp.USER32.dll_DefWindowProcW]
call fcn.00404c40
push 0x8007
call dword [sym.imp.KERNEL32.dll_SetErrorMode]
push 0x402df0
call dword [sym.imp.KERNEL32.dll_SetUnhandledExceptionFilter]
push edi
mov esi, 1
push esi
push esi
push edi
call dword [sym.imp.KERNEL32.dll_CreateEventW]
mov ecx, dword [0x463834]
lea edx, [esp + 0x14]
push edx
mov dword [0x4667f0], eax
mov dword [esp + 0x14], ecx
mov dword [esp + 0x10], edi
mov dword [esp + 0x18], edi
call dword [sym.imp.KERNEL32.dll_GetCommandLineW]
push eax
call dword [sym.imp.SHELL32.dll_CommandLineToArgvW]
mov ebx, eax
cmp ebx, edi
je 0x404229
cmp dword [esp + 0x14], esi
jle 0x404126
lea edi, [esi + 1]
lea ebx, [ebx]
mov eax, dword [ebx + esi*4]
push str._openurl
push eax
call fcn.004343f7
add esp, 8
test eax, eax
jne 0x403f7a
cmp edi, dword [esp + 0x14]
jge 0x404102
mov eax, dword [ebx + esi*4 + 4]
push eax
lea ecx, [esp + 0x14]
call fcn.00402550
mov dword [esp + 0xc], 1
jmp 0x404126
mov ecx, dword [ebx + esi*4]
push str._fhl
push ecx
call fcn.004343f7
add esp, 8
test eax, eax
jne 0x403fb4
cmp edi, dword [esp + 0x14]
jge 0x404102
mov ecx, dword [ebx + esi*4 + 4]
push ecx
lea ecx, [esp + 0x14]
call fcn.00402550
mov dword [esp + 0xc], 2
jmp 0x404126
mov edx, dword [ebx + esi*4]
push str._openurl2
push edx
call fcn.004343f7
add esp, 8
test eax, eax
jne 0x403fee
cmp edi, dword [esp + 0x14]
jge 0x404102
mov edx, dword [ebx + esi*4 + 4]
push edx
lea ecx, [esp + 0x14]
call fcn.00402550
mov dword [esp + 0xc], 3
jmp 0x404126
mov eax, dword [ebx + esi*4]
push str._openurl3
push eax
call fcn.004343f7
add esp, 8
test eax, eax
jne 0x404028
cmp edi, dword [esp + 0x14]
jge 0x404102
mov eax, dword [ebx + esi*4 + 4]
push eax
lea ecx, [esp + 0x14]
call fcn.00402550
mov dword [esp + 0xc], 4
jmp 0x404126
mov ecx, dword [ebx + esi*4]
push str._openurl4
push ecx
call fcn.004343f7
add esp, 8
test eax, eax
jne 0x404083
lea edx, [edi + 1]
cmp edx, dword [esp + 0x14]
jge 0x404102
mov ecx, dword [ebx + esi*4 + 4]
push ecx
lea ecx, [esp + 0x14]
call fcn.00402550
lea edx, [esp + 0x10]
push edx
mov ecx, 0x46683c
call fcn.00404ba0
mov eax, dword [ebx + esi*4 + 8]
push eax
mov ecx, 0x466838
call fcn.00402550
mov dword [esp + 0xc], 5
jmp 0x404126
mov eax, dword [ebx + esi*4]
push str._openurl5
push eax
call fcn.004343f7
add esp, 8
test eax, eax
jne 0x4040e7
lea ecx, [edi + 3]
cmp ecx, dword [esp + 0x14]
jge 0x404102
mov ecx, dword [ebx + esi*4 + 4]
push ecx
mov ecx, 0x46683c
call fcn.00402550
mov edx, dword [ebx + esi*4 + 8]
push edx
mov ecx, 0x466840
call fcn.00402550
mov eax, dword [ebx + esi*4 + 0xc]
push eax
mov ecx, 0x466844
call fcn.00402550
mov ecx, dword [ebx + esi*4 + 0x10]
push ecx
mov ecx, 0x466838
call fcn.00402550
mov dword [esp + 0xc], 6
jmp 0x404126
mov edx, dword [ebx + esi*4]
push str._wcrank
push edx
call fcn.004343f7
add esp, 8
test eax, eax
jne 0x404102
cmp edi, dword [esp + 0x14]
jl 0x404110
inc esi
inc edi
cmp esi, dword [esp + 0x14]
jl 0x403f40
jmp 0x404126
mov edx, dword [ebx + esi*4 + 4]
push edx
lea ecx, [esp + 0x14]
call fcn.00402550
mov dword [esp + 0xc], 7
push ebx
call dword [sym.imp.KERNEL32.dll_LocalFree]
mov eax, dword [esp + 0xc]
cmp eax, 1
jne 0x4041ba
mov eax, dword [0x463834]
mov ecx, str.http:__hd.360.cn_fudai_lottery2.1.html
shr ecx, 0x10
mov dword [esp + 0xc], eax
test ecx, ecx
jne 0x404163
mov edx, str.http:__hd.360.cn_fudai_lottery2.1.html
movzx eax, dx
push eax
lea ecx, [esp + 0x10]
call fcn.004025b0
jmp 0x4041a1
push str.http:__hd.360.cn_fudai_lottery2.1.html
call dword [sym.imp.KERNEL32.dll_lstrlenW]
mov esi, eax
test esi, esi
je 0x4041a1
push esi
lea ecx, [esp + 0x10]
call fcn.00402a30
test eax, eax
je 0x4041a1
mov ecx, dword [esp + 0xc]
add esi, esi
push esi
push str.http:__hd.360.cn_fudai_lottery2.1.html
add esi, 2
push esi
push ecx
call fcn.00433288
push eax
call fcn.00402af0
add esp, 0x14
call fcn.00402e10
mov esi, dword [esp + 0xc]
lea edx, [esi - 0xc]
cmp edx, dword [0x463830]
je 0x404229
add esi, 0xfffffff4
jmp 0x4041e9
cmp eax, 2
je 0x404229
cmp eax, 3
jne 0x4041ff
push str.http:__hd.360.cn_fudai_lottery2.1.html
lea ecx, [esp + 0x28]
call fcn.004026a0
call fcn.00402e10
mov eax, dword [esp + 0x24]
lea ecx, [eax - 0xc]
cmp ecx, dword [0x463830]
je 0x404229
lea esi, [eax - 0xc]
push esi
call dword [sym.imp.KERNEL32.dll_InterlockedDecrement]
test eax, eax
jg 0x404229
push esi
call fcn.00433555
add esp, 4
jmp 0x404229
cmp eax, 4
jne 0x40420b
call fcn.00402e10
jmp 0x404229
cmp eax, 5
jne 0x40421f
lea edx, [esp + 0x10]
push edx
call fcn.00403280
add esp, 4
jmp 0x404229
cmp eax, 6
jne 0x404229
call fcn.004036e0
cmp dword [esp + 0x18], 0
mov esi, dword [0x463834]
mov dword [esp + 0x1c], vtable.CCommandParser.0
mov dword [esp + 0x20], esi
jne 0x404246
xor edi, edi
jmp 0x404253
mov eax, dword [esp + 0x18]
push eax
call dword [sym.imp.KERNEL32.dll_lstrlenW]
mov edi, eax
cmp dword [esi - 0xc], 1
lea ebx, [esi - 0xc]
jg 0x404261
cmp edi, dword [esi - 4]
jle 0x40429c
add esi, 0xfffffff4
cmp esi, dword [0x463830]
je 0x40428a
push ebx
call dword [sym.imp.KERNEL32.dll_InterlockedDecrement]
test eax, eax
jg 0x404280
push ebx
call fcn.00433555
add esp, 4
mov ecx, dword [0x463834]
mov dword [esp + 0x20], ecx
push edi
lea ecx, [esp + 0x24]
call fcn.00402a30
test eax, eax
je 0x4042c1
mov esi, dword [esp + 0x20]
mov edx, dword [esp + 0x18]
lea ebx, [edi + edi]
push ebx
push edx
lea eax, [ebx + 2]
push eax
push esi
call fcn.00433288
push eax
call fcn.00402af0
add esp, 0x14
xor ecx, ecx
mov dword [esi - 8], edi
mov word [ebx + esi], cx
lea ecx, [esp + 0x20]
call fcn.004029b0
mov edx, dword [esp + 0x20]
push edx
call dword [sym.imp.USER32.dll_CharLowerW]
lea eax, [esp + 0x1c]
push eax
mov ecx, 3
mov edx, 0x458318
call fcn.00407880
lea ecx, [esp + 0x1c]
push ecx
mov ecx, 3
mov edx, 0x458320
mov esi, eax
call fcn.00407880
lea edx, [esp + 0x1c]
push edx
mov ecx, 3
mov edx, 0x458328
mov edi, eax
call fcn.00407880
mov ebx, eax
lea eax, [esp + 0x1c]
push eax
mov ecx, 3
mov edx, 0x458330
mov dword [esp + 0x2c], ebx
call fcn.00407880
lea ecx, [esp + 0x1c]
push ecx
mov ecx, 4
mov edx, str._to
mov dword [esp + 0x28], eax
call fcn.00407880
push 4
lea edx, [esp + 0x20]
push edx
lea ecx, [esp + 0x18]
mov edx, str._wp
mov dword [esp + 0x34], eax
call fcn.00407780
test eax, eax
je 0x404476
test ebx, ebx
je 0x404476
cmp dword [esp + 0x24], 0
je 0x404476
mov edx, dword [esp + 0x10]
cmp dword [edx - 0xc], 0
push ecx
lea eax, [edx - 0xc]
mov dword [esp + 0x1c], esp
mov ecx, esp
jl 0x40439a
push eax
mov dword [ecx], edx
call dword [sym.imp.KERNEL32.dll_InterlockedIncrement]
jmp 0x4043a7
mov eax, dword [0x463834]
push edx
mov dword [ecx], eax
call fcn.00402550
call fcn.00407c80
add esp, 4
test eax, eax
je 0x404476
push 0x206
xor ebx, ebx
lea edx, [esp + 0x36]
xor ecx, ecx
push ebx
push edx
mov word [esp + 0x3c], cx
call fcn.00434ac0
add esp, 0xc
push 0x104
lea eax, [esp + 0x34]
push eax
push ebx
call dword [sym.imp.KERNEL32.dll_GetModuleFileNameW]
lea ecx, [esp + 0x30]
push ecx
call dword [sym.imp.SHLWAPI.dll_PathRemoveFileSpecW]
push str.360NMConnection.dll
lea edx, [esp + 0x34]
push edx
call dword [sym.imp.SHLWAPI.dll_PathAppendW]
mov dword [esp + 0x18], ebx
mov dword [esp + 0xc], ebx
lea ebx, [esp + 0x30]
call fcn.00402910
test eax, eax
je 0x404476
lea eax, [esp + 0xc]
push eax
lea ecx, [esp + 0x1c]
push ecx
mov edx, ebx
push edx
call fcn.00407f70
add esp, 0xc
test eax, eax
je 0x404476
mov eax, dword [esp + 0x18]
cmp eax, 0x20000
ja 0x404447
jb 0x404476
mov eax, dword [esp + 0xc]
cmp eax, 0x10438
ja 0x404447
jb 0x404476
mov eax, dword [esp + 0x28]
mov edx, dword [esp + 0x24]
lea ecx, [eax + esi]
sub esp, 0x10
mov eax, esp
mov dword [eax], esi
mov dword [eax + 4], edi
mov dword [eax + 8], ecx
add edx, edi
mov dword [eax + 0xc], edx
mov eax, dword [esp + 0x3c]
push eax
lea ecx, [esp + 0x24]
push ecx
call fcn.00403b30
add esp, 0x18
mov eax, dword [esp + 0x20]
lea edx, [eax - 0xc]
cmp edx, dword [0x463830]
je 0x40449c
lea esi, [eax - 0xc]
push esi
call dword [sym.imp.KERNEL32.dll_InterlockedDecrement]
test eax, eax
jg 0x40449c
push esi
call fcn.00433555
add esp, 4
mov eax, dword [0x4667f0]
xor edi, edi
cmp eax, edi
je 0x4044b4
push eax
call dword [sym.imp.KERNEL32.dll_CloseHandle]
mov dword [0x4667f0], edi
call fcn.00404a80
mov esi, dword [0x466830]
cmp esi, edi
je 0x4044f3
mov eax, dword [esi]
cmp eax, edi
je 0x4044d4
push eax
call fcn.004331fa
add esp, 4
mov dword [esi], edi
mov eax, dword [esi + 4]
cmp eax, edi
je 0x4044e7
push eax
call fcn.004331fa
add esp, 4
mov dword [esi + 4], edi
push esi
mov dword [esi + 8], edi
call fcn.004331e0
add esp, 4
call fcn.00404b00
mov eax, dword [esp + 0x10]
lea ecx, [eax - 0xc]
cmp ecx, dword [0x463830]
je 0x40451e
lea esi, [eax - 0xc]
push esi
call dword [sym.imp.KERNEL32.dll_InterlockedDecrement]
test eax, eax
jg 0x40451e
push esi
call fcn.00433555
add esp, 4
mov ecx, dword [esp + 0x23c]
pop edi
pop esi
pop ebx
xor ecx, esp
xor eax, eax
call fcn.004331eb
mov esp, ebp
pop ebp
ret 0x10