Function at 0x4035c0
Capabilities:
Check if file exists
Create process on windows
Print debug messages
Set registry value

Disassembly:
push 0xffffffffffffffff
push 0x545717
mov eax, dword fs:[0]
push eax
sub esp, 0x250
mov eax, dword [0x591d64]
xor eax, esp
mov dword [esp + 0x248], eax
push ebx
push ebp
push esi
push edi
mov eax, dword [0x591d64]
xor eax, esp
push eax
lea eax, [esp + 0x264]
mov dword fs:[0], eax
mov edx, dword [0x59a310]
mov ebp, dword [esp + 0x274]
mov eax, edx
lea esi, [eax + 1]
xor ebx, ebx
nop
mov cl, byte [eax]
inc eax
cmp cl, bl
jne 0x403610
sub eax, esi
cmp eax, 1
jbe 0x4040bd
push edx
lea ecx, [esp + 0x30]
call fcn.0040d8a0
push eax
lea eax, [esp + 0x28]
push str.Msg:CmdLine:_
push eax
mov dword [esp + 0x278], ebx
call fcn.0040d960
push 0x56ece8
push eax
lea ecx, [esp + 0x28]
push ecx
mov byte [esp + 0x284], 1
call fcn.0040db20
mov eax, dword [eax]
mov edi, dword [sym.imp.KERNEL32.dll_OutputDebugStringA]
add esp, 0x18
push eax
call edi
mov eax, dword [esp + 0x14]
add eax, 0xfffffff0
lea edx, [eax + 0xc]
or ecx, 0xffffffff
lock xadd dword [edx], ecx
dec ecx
test ecx, ecx
jg 0x403689
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
mov byte [esp + 0x26c], bl
mov eax, dword [esp + 0x24]
add eax, 0xfffffff0
lea ecx, [eax + 0xc]
or edx, 0xffffffff
lock xadd dword [ecx], edx
dec edx
test edx, edx
jg 0x4036b0
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
mov dword [esp + 0x26c], 0xffffffff
mov eax, dword [esp + 0x2c]
add eax, 0xfffffff0
lea ecx, [eax + 0xc]
or edx, 0xffffffff
lock xadd dword [ecx], edx
dec edx
test edx, edx
jg 0x4036db
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
mov ecx, dword [0x59a310]
push ecx
lea ecx, [esp + 0x20]
call fcn.0040d8a0
mov dword [esp + 0x26c], 2
mov ecx, dword [esp + 0x1c]
mov eax, dword [ecx - 0xc]
cmp eax, ebx
jg 0x403706
or esi, 0xffffffff
jmp 0x403722
push 0x22
push ecx
call fcn.0050637f
mov ecx, dword [esp + 0x24]
add esp, 8
cmp eax, ebx
jne 0x40371e
or esi, 0xffffffff
jmp 0x403722
sub eax, ecx
mov esi, eax
push 0x22
push ecx
call fcn.00506452
mov ecx, dword [esp + 0x24]
add esp, 8
cmp eax, ebx
jne 0x40373a
or eax, 0xffffffff
jmp 0x40373c
sub eax, ecx
cmp esi, ebx
jne 0x40379f
mov ecx, dword [ecx - 0xc]
lea edx, [eax + 1]
cmp edx, ecx
jne 0x40379f
dec eax
push eax
push 1
lea eax, [esp + 0x1c]
push eax
lea ecx, [esp + 0x28]
call fcn.0040a5b0
mov byte [esp + 0x26c], 3
mov esi, dword [esp + 0x14]
push esi
lea ecx, [esp + 0x20]
push 0x56eb90
push ecx
call fcn.0040de30
lea eax, [esi - 0x10]
add esp, 0xc
mov byte [esp + 0x26c], 2
lea edx, [eax + 0xc]
or ecx, 0xffffffff
lock xadd dword [edx], ecx
dec ecx
test ecx, ecx
jg 0x40379f
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
call fcn.00415458
xor ecx, ecx
cmp eax, ebx
setne cl
cmp ecx, ebx
jne 0x4037b9
push 0x80004005
call fcn.0040e230
mov edx, dword [eax]
mov ecx, eax
mov eax, dword [edx + 0xc]
call eax
add eax, 0x10
mov dword [esp + 0x20], eax
mov byte [esp + 0x26c], 4
call fcn.00415458
xor ecx, ecx
cmp eax, ebx
setne cl
cmp ecx, ebx
jne 0x4037eb
push 0x80004005
call fcn.0040e230
mov edx, dword [eax]
mov ecx, eax
mov eax, dword [edx + 0xc]
call eax
add eax, 0x10
mov dword [esp + 0x18], eax
mov byte [esp + 0x26c], 5
call fcn.00415458
xor ecx, ecx
cmp eax, ebx
setne cl
cmp ecx, ebx
jne 0x40381d
push 0x80004005
call fcn.0040e230
mov edx, dword [eax]
mov ecx, eax
mov eax, dword [edx + 0xc]
call eax
add eax, 0x10
mov dword [esp + 0x28], eax
push 0x7c
mov byte [esp + 0x270], 6
mov ecx, dword [esp + 0x20]
push ebx
push ecx
lea edx, [esp + 0x2c]
push edx
call fcn.004183d5
mov eax, dword [esp + 0x1c]
push 0x7c
push 1
push eax
lea ecx, [esp + 0x24]
push ecx
call fcn.004183d5
mov edx, dword [esp + 0x1c]
push 0x7c
push 2
push edx
lea eax, [esp + 0x34]
push eax
call fcn.004183d5
mov ecx, dword [esp + 0x20]
push str.iemain
push ecx
call fcn.00506154
add esp, 8
cmp eax, ebx
jne 0x403a51
mov ecx, dword [esp + 0x18]
mov eax, dword [ecx - 0xc]
cmp eax, ebx
jle 0x403932
mov esi, dword [sym.imp.SHLWAPI.dll_SHSetValueA]
push eax
push ecx
push 1
push str.Start_Page
push str.SOFTWAREMicrosoftInternet_ExplorerMain
push SysReAllocString
call esi
mov eax, dword [esp + 0x18]
mov ecx, dword [eax - 0xc]
push ecx
push eax
push 1
push str.Start_Page
push str.SOFTWAREMicrosoftInternet_ExplorerMain
push reloc.OLEAUT32.dll_SysReAllocString
call esi
lea edx, [esp + 0x18]
push edx
lea eax, [esp + 0x28]
push str.Msg:setIE_succeed_
push eax
call fcn.0040d960
push 0x56ece8
push eax
lea ecx, [esp + 0x28]
push ecx
mov byte [esp + 0x284], 7
call fcn.0040db20
mov eax, dword [eax]
add esp, 0x18
push eax
call edi
mov eax, dword [esp + 0x14]
add eax, 0xfffffff0
lea edx, [eax + 0xc]
or ecx, 0xffffffff
lock xadd dword [edx], ecx
dec ecx
test ecx, ecx
jg 0x403921
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
mov byte [esp + 0x26c], 6
mov eax, dword [esp + 0x24]
add eax, 0xfffffff0
jmp 0x40398e
call fcn.00415458
xor ecx, ecx
cmp eax, ebx
setne cl
cmp ecx, ebx
jne 0x40394c
push 0x80004005
call fcn.0040e230
mov edx, dword [eax]
mov ecx, eax
mov eax, dword [edx + 0xc]
call eax
add eax, 0x10
mov dword [esp + 0x14], eax
mov byte [esp + 0x26c], 8
mov ecx, dword [esp + 0x18]
push ebx
push ecx
lea edx, [esp + 0x1c]
push str.Msg:setIE_false__s___return__d__n
push edx
call fcn.0040de30
mov esi, dword [esp + 0x24]
add esp, 0x10
push esi
call edi
mov byte [esp + 0x26c], 6
lea eax, [esi - 0x10]
lea ecx, [eax + 0xc]
or edx, 0xffffffff
lock xadd dword [ecx], edx
dec edx
test edx, edx
jg 0x4039a7
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
mov byte [esp + 0x26c], 5
mov eax, dword [esp + 0x28]
add eax, 0xfffffff0
lea ecx, [eax + 0xc]
or edx, 0xffffffff
lock xadd dword [ecx], edx
dec edx
test edx, edx
jg 0x4039cf
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
mov byte [esp + 0x26c], 4
mov eax, dword [esp + 0x18]
add eax, 0xfffffff0
lea ecx, [eax + 0xc]
or edx, 0xffffffff
lock xadd dword [ecx], edx
dec edx
test edx, edx
jg 0x4039f7
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
mov byte [esp + 0x26c], 2
mov eax, dword [esp + 0x20]
add eax, 0xfffffff0
or edx, 0xffffffff
lea ecx, [eax + 0xc]
lock xadd dword [ecx], edx
dec edx
test edx, edx
jg 0x403a1f
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
mov dword [esp + 0x26c], 0xffffffff
mov eax, dword [esp + 0x1c]
add eax, 0xfffffff0
lea ecx, [eax + 0xc]
or edx, 0xffffffff
lock xadd dword [ecx], edx
dec edx
test edx, edx
jg 0x403a4a
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
xor eax, eax
jmp 0x4040c2
mov ecx, dword [esp + 0x20]
push str.setdeskbk
push ecx
call fcn.00506154
add esp, 8
cmp eax, ebx
jne 0x403d5c
call fcn.00415458
xor ecx, ecx
cmp eax, ebx
setne cl
cmp ecx, ebx
jne 0x403a85
push 0x80004005
call fcn.0040e230
mov edx, dword [eax]
mov ecx, eax
mov eax, dword [edx + 0xc]
call eax
add eax, 0x10
mov dword [esp + 0x2c], eax
mov byte [esp + 0x26c], 9
call fcn.00415458
xor ecx, ecx
cmp eax, ebx
setne cl
cmp ecx, ebx
jne 0x403ab7
push 0x80004005
call fcn.0040e230
mov edx, dword [eax]
mov ecx, eax
mov eax, dword [edx + 0xc]
call eax
add eax, 0x10
mov dword [esp + 0x30], eax
push 0x3b
mov byte [esp + 0x270], 0xa
mov ecx, dword [esp + 0x1c]
push ebx
push ecx
lea edx, [esp + 0x38]
push edx
call fcn.004183d5
mov eax, dword [esp + 0x18]
push 0x3b
mov ebp, 1
push ebp
push eax
lea ecx, [esp + 0x3c]
push ecx
call fcn.004183d5
push ebx
call dword [sym.imp.ole32.dll_CoInitialize]
lea edx, [esp + 0x24]
push edx
push 0x56e0bc
push ebp
push ebx
push 0x56e0ac
mov dword [esp + 0x38], ebx
call dword [sym.imp.ole32.dll_CoCreateInstance]
mov esi, eax
cmp esi, ebx
jge 0x403baf
lea ecx, [esp + 0x14]
call fcn.0040dfa0
push esi
lea eax, [esp + 0x18]
push str.Msg:SetDeskBk_:create_IActiveDesktop_fail:_d._n
push eax
mov byte [esp + 0x278], 0xb
call fcn.0040de30
mov esi, dword [esp + 0x20]
add esp, 0xc
push esi
call edi
lea eax, [esi - 0x10]
mov byte [esp + 0x26c], 0xa
lea ecx, [eax + 0xc]
or edx, 0xffffffff
lock xadd dword [ecx], edx
dec edx
test edx, edx
jg 0x403b73
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
mov byte [esp + 0x26c], 9
mov eax, dword [esp + 0x30]
add eax, 0xfffffff0
lea ecx, [eax + 0xc]
or edx, 0xffffffff
lock xadd dword [ecx], edx
dec edx
test edx, edx
jg 0x403b9b
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
mov byte [esp + 0x26c], 6
mov eax, dword [esp + 0x2c]
add eax, 0xfffffff0
jmp 0x40398e
mov eax, dword [esp + 0x24]
push ebx
lea edx, [esp + 0x38]
mov dword [esp + 0x38], 0xc
mov dword [esp + 0x40], ebp
mov dword [esp + 0x3c], ebp
mov ecx, dword [eax]
push edx
push eax
mov eax, dword [ecx + 0x2c]
call eax
mov esi, eax
cmp esi, ebx
jge 0x403c48
lea ecx, [esp + 0x14]
call fcn.0040dfa0
push esi
mov byte [esp + 0x270], 0xc
push str.Msg:SetDeskBk_:SetDesktopItemOptions_fail:_d._n
lea ecx, [esp + 0x1c]
push ecx
call fcn.0040de30
mov edx, dword [esp + 0x20]
add esp, 0xc
push edx
call edi
lea ecx, [esp + 0x14]
call fcn.0040e390
lea ecx, [esp + 0x30]
call fcn.0040e390
lea ecx, [esp + 0x2c]
call fcn.0040e390
lea ecx, [esp + 0x28]
call fcn.0040e390
lea ecx, [esp + 0x18]
call fcn.0040e390
lea ecx, [esp + 0x20]
call fcn.0040e390
lea ecx, [esp + 0x1c]
call fcn.0040e390
xor eax, eax
jmp 0x4040c2
mov eax, dword [esp + 0x30]
push eax
mov dword [esp + 0x48], 8
call fcn.0050535a
add esp, 4
mov dword [esp + 0x48], eax
mov eax, dword [esp + 0x24]
mov ecx, dword [eax]
push ebx
lea edx, [esp + 0x48]
push edx
push eax
mov eax, dword [ecx + 0x1c]
call eax
mov esi, eax
cmp esi, ebx
jge 0x403c95
lea ecx, [esp + 0x14]
call fcn.0040dfa0
push esi
mov byte [esp + 0x270], 0xd
push str.Msg:SetDeskBk_:SetWallpaperOptions_fail:_d._n
jmp 0x403bee
push 0x206
lea ecx, [esp + 0x5a]
xor eax, eax
push ebx
push ecx
mov word [esp + 0x60], ax
call fcn.00507960
mov eax, dword [esp + 0x38]
add esp, 0xc
push 0x104
lea edx, [esp + 0x58]
push edx
push 0xffffffffffffffff
push eax
push ebx
call dword [sym.imp.KERNEL32.dll_GetACP]
push eax
call dword [sym.imp.KERNEL32.dll_MultiByteToWideChar]
mov eax, dword [esp + 0x24]
mov ecx, dword [eax]
push ebx
lea edx, [esp + 0x58]
push edx
push eax
mov eax, dword [ecx + 0x14]
call eax
mov esi, eax
cmp esi, ebx
jge 0x403d02
lea ecx, [esp + 0x14]
call fcn.0040dfa0
push esi
mov byte [esp + 0x270], 0xe
push str.Msg:SetDeskBk_:SetWallpaper_fail:_d._n
jmp 0x403bee
mov eax, dword [esp + 0x24]
mov ecx, dword [eax]
mov edx, dword [ecx + 0xc]
push 7
push eax
call edx
mov esi, eax
cmp esi, ebx
jge 0x403d44
lea ecx, [esp + 0x14]
call fcn.0040dfa0
push esi
lea eax, [esp + 0x18]
push str.Msg:SetDeskBk_:ApplyChanges_fail:_d._n
push eax
mov byte [esp + 0x278], 0xf
call fcn.0040de30
mov ecx, dword [esp + 0x20]
add esp, 0xc
push ecx
jmp 0x403c00
mov eax, dword [esp + 0x24]
mov edx, dword [eax]
push eax
mov eax, dword [edx + 8]
call eax
push str.Msg:SetDeskBk_:Success._n
call edi
jmp 0x403c0b
mov ecx, dword [esp + 0x20]
push str.SetCookie
push ecx
call fcn.00506154
add esp, 8
cmp eax, ebx
jne 0x403ed1
lea ecx, [esp + 0x24]
call fcn.0040dfa0
mov byte [esp + 0x26c], 0x10
mov ebp, dword [sym.imp.KERNEL32.dll_GetLastError]
xor eax, eax
mov dword [esp + 0x14], eax
mov edx, dword [esp + 0x18]
push 9
push eax
push edx
lea eax, [esp + 0x30]
push eax
call fcn.004183d5
mov eax, dword [esp + 0x24]
cmp dword [eax - 0xc], ebx
je 0x403eb4
push eax
push ebx
push str.http:__i8.com.cn
call dword [sym.imp.WININET.dll_InternetSetCookieA]
test eax, eax
jne 0x403e25
call ebp
push 0x103
lea ecx, [esp + 0x59]
push ebx
push ecx
mov esi, eax
mov byte [esp + 0x60], bl
call fcn.00507960
add esp, 0xc
lea edi, [esp + 0x34]
mov dword [esp + 0x34], vtable._com_error.0
mov dword [esp + 0x38], esi
mov dword [esp + 0x3c], ebx
mov dword [esp + 0x40], ebx
call fcn.0040d540
mov edx, dword [esp + 0x24]
push eax
push edx
push esi
push str.Msg:SetCookie_i8_false:_d__s__s
lea edx, [esp + 0x64]
call fcn.0040cd80
add esp, 0x10
lea eax, [esp + 0x54]
push eax
call dword [sym.imp.KERNEL32.dll_OutputDebugStringA]
mov ecx, edi
call fcn.0040d600
mov ecx, dword [esp + 0x24]
push ecx
push ebx
push str.http:__i8cn.com
call dword [sym.imp.WININET.dll_InternetSetCookieA]
test eax, eax
jne 0x403e9c
call ebp
push 0x103
lea edx, [esp + 0x59]
push ebx
push edx
mov esi, eax
mov byte [esp + 0x60], bl
call fcn.00507960
add esp, 0xc
lea edi, [esp + 0x44]
mov dword [esp + 0x44], vtable._com_error.0
mov dword [esp + 0x48], esi
mov dword [esp + 0x4c], ebx
mov dword [esp + 0x50], ebx
call fcn.0040d540
push eax
mov eax, dword [esp + 0x28]
push eax
push esi
push str.Msg:SetCookie_i8cn_false:_d__s__s
lea edx, [esp + 0x64]
call fcn.0040cd80
add esp, 0x10
lea ecx, [esp + 0x54]
push ecx
call dword [sym.imp.KERNEL32.dll_OutputDebugStringA]
mov ecx, edi
call fcn.0040d600
mov eax, dword [esp + 0x14]
inc eax
cmp eax, 0x3e8
mov dword [esp + 0x14], eax
jl 0x403d93
mov eax, dword [esp + 0x24]
add eax, 0xfffffff0
mov byte [esp + 0x26c], 6
lea edx, [eax + 0xc]
or ecx, 0xffffffff
lock xadd dword [edx], ecx
dec ecx
test ecx, ecx
jmp 0x40399b
mov ecx, dword [esp + 0x20]
cmp dword [ecx - 0xc], ebx
lea ecx, [esp + 0x18]
jne 0x403f9a
push 0x5c
call fcn.0040a550
push eax
push ebx
lea edx, [esp + 0x1c]
push edx
lea ecx, [esp + 0x24]
call fcn.0040a5b0
mov byte [esp + 0x26c], 0x11
mov eax, dword [eax]
push eax
lea ecx, [ebp + 0xe8]
push 0x56eb90
push ecx
call fcn.0040de30
add esp, 0xc
lea ecx, [esp + 0x14]
mov byte [esp + 0x26c], 6
call fcn.0040e390
mov edx, dword [esp + 0x18]
mov eax, dword [edx - 0xc]
push eax
push 0x5c
lea ecx, [esp + 0x20]
call fcn.0040a550
inc eax
push eax
lea eax, [esp + 0x1c]
push eax
lea ecx, [esp + 0x24]
call fcn.0040a5b0
mov byte [esp + 0x26c], 0x12
mov ecx, dword [eax]
push ecx
lea edx, [ebp + 0xf4]
push 0x56eb90
push edx
call fcn.0040de30
add esp, 0xc
lea ecx, [esp + 0x14]
mov byte [esp + 0x26c], 6
call fcn.0040e390
mov eax, dword [esp + 0x28]
push eax
push 0x56eb90
add ebp, 0xfc
push ebp
call fcn.0040de30
add esp, 0xc
jmp 0x404099
push str.rungame.exe
call fcn.0040a2a0
test eax, eax
jne 0x404002
lea ecx, [esp + 0x14]
call fcn.0040dfa0
mov byte [esp + 0x26c], 0x13
mov ecx, dword [esp + 0x18]
mov edx, dword [esp + 0x20]
push ecx
push edx
lea eax, [esp + 0x1c]
push str._s_s
push eax
call fcn.0040de30
mov esi, dword [esp + 0x24]
add esp, 0x10
push esi
call dword [sym.imp.SHLWAPI.dll_PathFileExistsA]
test eax, eax
je 0x403ff9
mov ecx, dword [esp + 0x20]
push 1
push ecx
push ebx
push esi
push str.open
push ebx
call dword [sym.imp.SHELL32.dll_ShellExecuteA]
lea ecx, [esp + 0x14]
jmp 0x403c18
mov edx, dword [esp + 0x20]
push edx
lea esi, [ebp + 0xe8]
push 0x56eb90
push esi
call fcn.0040de30
add esp, 0xc
push 0x5c
mov ecx, esi
call fcn.0040a550
mov ecx, dword [esi]
mov ecx, dword [ecx - 0xc]
lea edx, [eax + 1]
cmp edx, ecx
jne 0x40406a
push eax
push ebx
lea eax, [esp + 0x1c]
push eax
mov ecx, esi
call fcn.0040a5b0
mov byte [esp + 0x26c], 0x14
mov ecx, dword [esp + 0x14]
push ecx
push 0x56eb90
push esi
call fcn.0040de30
add esp, 0xc
lea ecx, [esp + 0x14]
mov byte [esp + 0x26c], 6
call fcn.0040e390
mov edx, dword [esp + 0x18]
push edx
lea eax, [ebp + 0xf4]
push 0x56eb90
push eax
call fcn.0040de30
mov ecx, dword [esp + 0x34]
push ecx
push 0x56eb90
add ebp, 0xfc
push ebp
call fcn.0040de30
add esp, 0x18
lea ecx, [esp + 0x28]
call fcn.0040e390
lea ecx, [esp + 0x18]
call fcn.0040e390
lea ecx, [esp + 0x20]
call fcn.0040e390
lea ecx, [esp + 0x1c]
call fcn.0040e390
mov eax, 1
mov ecx, dword [esp + 0x264]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebp
pop ebx
mov ecx, dword [esp + 0x248]
xor ecx, esp
call fcn.005043e7
add esp, 0x25c
ret 4