Function at 0x403300
Capabilities:
Accept command line arguments
Check if file exists

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x5063d9
mov eax, dword fs:[0]
push eax
sub esp, 0x2a0
mov eax, dword [0x547770]
xor eax, ebp
mov dword [ebp - 0x10], eax
push ebx
push esi
push edi
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov eax, dword [ebp + 8]
mov esi, ecx
xor ebx, ebx
push 0xffffffffffffffff
mov dword [ebp - 0x2ac], ebx
xor ecx, ecx
push ebx
mov word [ebp - 0x234], cx
push eax
lea ecx, [ebp - 0x234]
mov dword [ebp - 0x220], 7
mov dword [ebp - 0x224], ebx
call fcn.00401500
mov dword [ebp - 4], ebx
cmp dword [ebp - 0x224], ebx
jne 0x40339c
call dword [sym.imp.KERNEL32.dll_GetCommandLineW]
mov ecx, eax
lea edi, [ecx + 2]
lea esp, [esp]
mov dx, word [ecx]
add ecx, 2
cmp dx, bx
jne 0x403380
sub ecx, edi
sar ecx, 1
push ecx
push eax
lea ecx, [ebp - 0x234]
call fcn.004021e0
call fcn.0042a710
mov edi, 8
test al, al
je 0x4033e6
push edi
push ebx
push str.ksoqing:
lea ecx, [ebp - 0x234]
call fcn.00401d30
cmp eax, 0xffffffff
je 0x4033e6
push edi
push ebx
push str.ksoqing:
lea ecx, [ebp - 0x234]
call fcn.00401d30
push 0xd
push 0x511594
push eax
lea ecx, [ebp - 0x234]
call fcn.00402500
mov ecx, dword [esi]
lea edx, [ebp - 0x234]
push edx
call fcn.00406ee0
test eax, eax
jne 0x403417
cmp dword [ebp - 0x220], edi
jb 0x40340f
mov eax, dword [ebp - 0x234]
push eax
call fcn.004b9d66
add esp, 4
or eax, 0xffffffff
jmp 0x403702
push 0x208
lea ecx, [ebp - 0x218]
push ebx
push ecx
call fcn.004bad00
add esp, 0xc
push 0x104
lea edx, [ebp - 0x218]
push edx
push ebx
call dword [sym.imp.KERNEL32.dll_GetModuleFileNameW]
lea eax, [ebp - 0x218]
push eax
call dword [sym.imp.SHLWAPI.dll_PathFileExistsW]
test eax, eax
je 0x4034bd
xor ecx, ecx
lea eax, [ebp - 0x218]
mov dword [ebp - 0x23c], 7
mov dword [ebp - 0x240], ebx
mov word [ebp - 0x250], cx
lea edx, [eax + 2]
mov cx, word [eax]
add eax, 2
cmp cx, bx
jne 0x403472
sub eax, edx
sar eax, 1
push eax
lea edx, [ebp - 0x218]
push edx
lea ecx, [ebp - 0x250]
call fcn.004021e0
lea eax, [ebp - 0x250]
push ebx
push eax
mov byte [ebp - 4], 1
mov dword [ebp - 0x2ac], 1
call fcn.00419330
add esp, 8
mov byte [ebp - 0x2a5], 1
test eax, eax
je 0x4034c3
mov byte [ebp - 0x2a5], bl
test byte [ebp - 0x2ac], 1
mov dword [ebp - 4], ebx
je 0x4034e6
cmp dword [ebp - 0x23c], edi
jb 0x4034e6
mov ecx, dword [ebp - 0x250]
push ecx
call fcn.004b9d66
add esp, 4
cmp byte [ebp - 0x2a5], bl
je 0x403511
cmp dword [ebp - 0x220], edi
jb 0x40340f
mov edx, dword [ebp - 0x234]
push edx
call fcn.004b9d66
add esp, 4
or eax, 0xffffffff
jmp 0x403702
mov ecx, esi
call fcn.00402c10
mov ecx, esi
call fcn.00402d60
mov ecx, dword [esi]
call fcn.004302f0
dec eax
cmp eax, 6
ja case.default.0x403530
jmp dword [eax*4 + 0x403720]
push str.LanguageID
lea ecx, [ebp - 0x250]
call fcn.00402890
lea eax, [ebp - 0x250]
push eax
lea ecx, [ebp - 0x2a4]
push ecx
mov ecx, dword [esi]
mov byte [ebp - 4], 2
call fcn.00404d20
mov ecx, dword [esi + 8]
push eax
mov byte [ebp - 4], 3
call fcn.00414040
lea ecx, [ebp - 0x2a4]
call fcn.00413a70
lea ecx, [ebp - 0x250]
mov byte [ebp - 4], bl
call fcn.00413a70
push str.UpPower
lea ecx, [ebp - 0x288]
call fcn.00402890
mov ecx, dword [esi]
lea edx, [ebp - 0x288]
push edx
mov byte [ebp - 4], 4
call fcn.00404e20
mov ecx, dword [esi + 8]
push eax
call fcn.00414a50
lea ecx, [ebp - 0x288]
mov esi, eax
call fcn.00413a70
lea ecx, [ebp - 0x234]
call fcn.00413a70
mov eax, esi
jmp 0x403702
mov ecx, dword [esi + 8]
call fcn.00413f90
lea ecx, [ebp - 0x234]
mov esi, eax
call fcn.00413a70
mov eax, esi
jmp 0x403702
mov ecx, dword [esi + 8]
call fcn.00414c50
lea ecx, [ebp - 0x234]
mov esi, eax
call fcn.00413a70
mov eax, esi
jmp 0x403702
mov ecx, dword [esi + 8]
call fcn.004141c0
lea ecx, [ebp - 0x234]
mov esi, eax
call fcn.00413a70
mov eax, esi
jmp 0x403702
mov ecx, esi
call fcn.00402960
lea ecx, [ebp - 0x234]
mov esi, eax
call fcn.00413a70
mov eax, esi
jmp 0x403702
mov ecx, esi
mov dword [esi + 4], 1
call fcn.00403110
lea ecx, [ebp - 0x234]
mov esi, eax
call fcn.00413a70
mov eax, esi
jmp 0x403702
lea ecx, [ebp - 0x2a5]
call fcn.0041a3c0
lea ecx, [ebp - 0x2a5]
call fcn.00401c80
cmp byte [esi + 0x20], bl
je 0x403697
call fcn.0041a0f0
lea ecx, [ebp - 0x2a5]
call fcn.0041a390
lea ecx, [ebp - 0x2a5]
call fcn.00401c80
push str.TD_WPS_EXEC_HOST
lea ecx, [ebp - 0x26c]
mov dword [esi + 4], 2
call fcn.00402890
lea eax, [ebp - 0x26c]
push eax
mov ecx, esi
mov byte [ebp - 4], 5
call fcn.00403250
lea ecx, [ebp - 0x26c]
mov byte [ebp - 4], bl
call fcn.00413a70
mov ecx, esi
call fcn.00403160
lea ecx, [ebp - 0x234]
mov esi, eax
call fcn.00413a70
mov eax, esi
jmp 0x403702
cmp dword [ebp - 0x220], edi
jb 0x4036fd
mov ecx, dword [ebp - 0x234]
push ecx
call fcn.004b9d66
add esp, 4
mov eax, 1
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov ecx, dword [ebp - 0x10]
xor ecx, ebp
call fcn.004ba901
mov esp, ebp
pop ebp
ret 4