Function at 0x403370
Capabilities:
Create process on windows
Read .ini file

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x57b367
mov eax, dword fs:[0]
push eax
sub esp, 0x89c
mov eax, dword [0x5ef220]
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 ebx, ecx
mov dword [ebp - 0x848], ebx
mov edx, dword [ebx]
add edx, 4
lea ecx, [edx + 2]
mov edi, edi
mov ax, word [edx]
add edx, 2
test ax, ax
jne 0x4033b0
sub edx, ecx
sar edx, 1
jne 0x4033c8
xor al, al
jmp 0x40380e
xor eax, eax
push 0x206
push eax
mov word [ebp - 0x218], ax
lea eax, [ebp - 0x216]
push eax
call fcn.0055c960
lea eax, [ebx + 4]
push eax
lea eax, [ebp - 0x218]
push 0x104
push eax
call fcn.00558864
add esp, 0x18
lea eax, [ebp - 0x218]
push eax
call dword [sym.imp.SHLWAPI.dll_PathAddBackslashW]
mov eax, dword [ebx]
add eax, 4
push eax
lea eax, [ebp - 0x218]
push eax
call dword [sym.imp.SHLWAPI.dll_StrCatW]
lea eax, [ebp - 0x218]
push eax
lea ecx, [ebp - 0x834]
call fcn.0040f690
mov dword [ebp - 4], 0
push 0x2e
push dword [ebp - 0x834]
call fcn.00559a33
add esp, 8
test eax, eax
jne 0x40344d
or eax, 0xffffffff
jmp 0x403455
sub eax, dword [ebp - 0x834]
sar eax, 1
inc eax
lea ecx, [ebp - 0x834]
push eax
lea eax, [ebp - 0x850]
push eax
call fcn.0040c090
mov byte [ebp - 4], 1
mov esi, dword [ebp - 0x850]
push 0x5c3a9c
push esi
call fcn.005594af
add esp, 8
test eax, eax
je 0x4034a1
push 0x5c3aa4
push esi
call fcn.005594af
add esp, 8
mov dword [ebp - 0x840], 1
test eax, eax
jne 0x4034ab
mov dword [ebp - 0x840], 0
xor eax, eax
push 0x206
push eax
mov word [ebp - 0x420], ax
lea eax, [ebp - 0x41e]
push eax
call fcn.0055c960
lea edx, [ebp - 0x420]
lea ecx, [ebp - 0x218]
call fcn.0042aab0
lea ecx, [ebp - 0x84c]
call fcn.004299d0
push str.gamepatchConfig.ini
push eax
lea eax, [ebp - 0x83c]
mov byte [ebp - 4], 2
push eax
call fcn.0040f190
add esp, 0x18
push dword [eax]
push 0
push str.putnetbarparam
push 0x5c39b0
call dword [sym.imp.KERNEL32.dll_GetPrivateProfileIntW]
mov dword [ebp - 0x844], eax
or edi, 0xffffffff
mov eax, dword [ebp - 0x83c]
mov ecx, edi
add eax, 0xfffffff0
mov dword [ebp - 0x838], eax
lea edx, [eax + 0xc]
lock xadd dword [edx], ecx
dec ecx
test ecx, ecx
jg 0x403542
mov ecx, dword [eax]
push dword [ebp - 0x838]
mov eax, dword [ecx]
call dword [eax + 4]
mov byte [ebp - 4], 1
mov ecx, edi
mov edx, dword [ebp - 0x84c]
add edx, 0xfffffff0
lea eax, [edx + 0xc]
lock xadd dword [eax], ecx
dec ecx
test ecx, ecx
jg 0x403565
mov ecx, dword [edx]
push edx
mov eax, dword [ecx]
call dword [eax + 4]
cmp dword [ebp - 0x844], 1
jne 0x403778
call fcn.004311d4
xor ecx, ecx
mov edx, eax
test edx, edx
setne cl
test ecx, ecx
jne 0x40358e
push 0x80004005
call fcn.0040fbb0
mov eax, dword [edx]
mov ecx, edx
call dword [eax + 0xc]
add eax, 0x10
mov dword [ebp - 0x838], eax
mov byte [ebp - 4], 3
call fcn.004311d4
xor ecx, ecx
mov edx, eax
test edx, edx
setne cl
test ecx, ecx
jne 0x4035be
push 0x80004005
call fcn.0040fbb0
mov eax, dword [edx]
mov ecx, edx
call dword [eax + 0xc]
add eax, 0x10
mov dword [ebp - 0x83c], eax
lea eax, [ebp - 0x838]
mov byte [ebp - 4], 4
push eax
push 0x5c3af8
mov edx, 0x5c3b08
call fcn.0042a740
lea eax, [ebp - 0x83c]
mov edx, 0x5c3b08
push eax
push str.agid
call fcn.0042a740
mov ebx, dword [ebp - 0x838]
add esp, 0x10
mov edi, dword [ebp - 0x83c]
cmp dword [ebx - 0xc], 0
je 0x403735
cmp dword [edi - 0xc], 0
je 0x403735
xor eax, eax
push 0x206
push eax
mov word [ebp - 0x830], ax
lea eax, [ebp - 0x82e]
push eax
call fcn.0055c960
push ebx
push edi
push str.ygxqdid_s_ygxwbid_s
lea eax, [ebp - 0x830]
push 0x104
push eax
call fcn.00558848
xor eax, eax
push 0x206
push eax
mov word [ebp - 0x628], ax
lea eax, [ebp - 0x626]
push eax
call fcn.0055c960
lea eax, [ebp - 0x830]
push eax
lea eax, [ebp - 0x218]
push eax
lea eax, [ebp - 0x628]
push str._s__s
push eax
call fcn.0040e0a0
push 0x40
lea eax, [ebp - 0x894]
push 0
push eax
call fcn.0055c960
add esp, 0x48
mov dword [ebp - 0x898], 0x44
mov eax, 5
mov dword [ebp - 0x86c], 1
mov word [ebp - 0x868], ax
lea eax, [ebp - 0x8a8]
push eax
lea eax, [ebp - 0x898]
push eax
lea eax, [ebp - 0x420]
push eax
push 0
push 0x20
push 0
push 0
push 0
lea eax, [ebp - 0x628]
push eax
push 0
call dword [sym.imp.KERNEL32.dll_CreateProcessW]
lea edx, [edi - 0x10]
mov byte [ebp - 4], 3
or edi, 0xffffffff
lea eax, [edx + 0xc]
mov ecx, edi
lock xadd dword [eax], ecx
dec ecx
test ecx, ecx
jg 0x40370f
mov ecx, dword [edx]
push edx
mov eax, dword [ecx]
call dword [eax + 4]
add ebx, 0xfffffff0
mov byte [ebp - 4], 1
mov ecx, edi
lea eax, [ebx + 0xc]
lock xadd dword [eax], ecx
dec ecx
test ecx, ecx
jg 0x4037cb
mov ecx, dword [ebx]
push ebx
mov eax, dword [ecx]
call dword [eax + 4]
jmp 0x4037cb
lea edx, [edi - 0x10]
mov byte [ebp - 4], 3
or edi, 0xffffffff
lea eax, [edx + 0xc]
mov ecx, edi
lock xadd dword [eax], ecx
dec ecx
test ecx, ecx
jg 0x403755
mov ecx, dword [edx]
push edx
mov eax, dword [ecx]
call dword [eax + 4]
add ebx, 0xfffffff0
mov byte [ebp - 4], 1
mov ecx, edi
lea eax, [ebx + 0xc]
lock xadd dword [eax], ecx
dec ecx
test ecx, ecx
jg 0x403772
mov ecx, dword [ebx]
push ebx
mov eax, dword [ecx]
call dword [eax + 4]
mov ebx, dword [ebp - 0x848]
push dword [ebp - 0x840]
lea eax, [ebp - 0x420]
push eax
mov eax, dword [ebx]
add eax, 0x20c
push eax
lea eax, [ebp - 0x218]
push eax
push str.open
push 0
call dword [sym.imp.SHELL32.dll_ShellExecuteW]
call dword [sym.imp.KERNEL32.dll_GetLastError]
push eax
lea eax, [ebp - 0x420]
push eax
mov eax, dword [ebx]
add eax, 0x20c
push eax
lea eax, [ebp - 0x218]
push eax
push str.MSG:_Execute:_file_s__param_s__workdir_s__code_d
call fcn.0042abd0
add esp, 0x14
add esi, 0xfffffff0
mov byte [ebp - 4], 0
mov ecx, edi
lea eax, [esi + 0xc]
lock xadd dword [eax], ecx
dec ecx
test ecx, ecx
jg 0x4037e8
mov ecx, dword [esi]
push esi
mov eax, dword [ecx]
call dword [eax + 4]
mov dword [ebp - 4], 0xffffffff
mov edx, dword [ebp - 0x834]
add edx, 0xfffffff0
lea eax, [edx + 0xc]
lock xadd dword [eax], edi
dec edi
test edi, edi
jg 0x40380c
mov ecx, dword [edx]
push edx
mov eax, dword [ecx]
call dword [eax + 4]
mov al, 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.00557f7f
mov esp, ebp
pop ebp
ret