Function at 0x468eb0
Capabilities:
Create process on windows
Enumerate files on windows
Enumerate files recursively
Read .ini file

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x49976b
mov eax, dword fs:[0]
push eax
mov eax, 0x2be0
call fcn.00497d20
mov eax, dword [0x4cc99c]
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 esi, dword [ebp + 0xc]
mov ebx, dword [ebp + 8]
xor edi, edi
mov dword [ebp - 0x2bec], ebx
mov dword [ebp - 0x14], edi
cmp esi, edi
jne 0x468f18
push edi
xor eax, eax
mov dword [ebx + 0x14], 7
mov dword [ebx + 0x10], edi
push 0x4ab248
mov ecx, ebx
mov word [ebx], ax
call fcn.004027c0
jmp 0x4692bb
test byte [0x4cf010], 1
jne 0x468f68
or dword [0x4cf010], 1
xor ecx, ecx
push edi
mov word [0x4ceff4], cx
push 0x4ab248
mov ecx, 0x4ceff4
mov dword [ebp - 4], edi
mov dword [0x4cf008], 7
mov dword [0x4cf004], edi
call fcn.004027c0
push 0x4a2a30
call fcn.00497967
add esp, 4
mov dword [ebp - 4], 0xffffffff
push esi
push 0x4ab4fc
lea edx, [ebp - 0x8f0]
push 0x400
push edx
call dword [sym.imp.MSVCR100.dll_swprintf_s]
push 0x7fe
lea ecx, [ebp - 0x10ee]
xor eax, eax
push edi
push ecx
mov word [ebp - 0x10f0], ax
call sub.MSVCR100.dll_memset
add esp, 0x1c
lea edx, [ebp - 0x8f0]
push edx
lea eax, [ebp - 0x10f0]
push eax
call dword [sym.imp.KERNEL32.dll_lstrcpyW]
movzx ecx, word [ebp - 0x10f0]
push ecx
lea edx, [ebp - 0x18]
push str._c:_
push edx
call dword [sym.imp.USER32.dll_wsprintfW]
add esp, 0xc
lea eax, [ebp - 0x10f0]
push eax
lea ecx, [ebp - 0x18]
push ecx
call dword [sym.imp.KERNEL32.dll_lstrcmpW]
mov esi, dword [sym.imp.KERNEL32.dll_lstrcatW]
test eax, eax
je 0x468ff5
push 0x4adfcc
lea edx, [ebp - 0x10f0]
push edx
call esi
push 0x4ae910
lea eax, [ebp - 0x10f0]
push eax
call esi
lea ecx, [ebp - 0x2be8]
push ecx
lea edx, [ebp - 0x10f0]
push edx
call dword [sym.imp.KERNEL32.dll_FindFirstFileW]
mov dword [ebp - 0x14], eax
cmp eax, 0xffffffff
jne 0x46904e
xor eax, eax
mov dword [ebx + 0x14], 7
mov dword [ebx + 0x10], edi
mov word [ebx], ax
lea edx, [eax + 2]
mov cx, word [eax]
add eax, 2
cmp cx, di
jne 0x469031
sub eax, edx
sar eax, 1
push eax
push edi
mov ecx, ebx
call fcn.004027c0
jmp 0x4692bb
mov esi, dword [sym.imp.USER32.dll_wsprintfW]
cmp word [ebp - 0x2bbc], 0x2e
jne 0x469081
mov ax, word [ebp - 0x2bba]
cmp ax, di
je 0x46927a
cmp ax, 0x2e
jne 0x469081
cmp word [ebp - 0x2bb8], di
je 0x46927a
test byte [ebp - 0x2be8], 0x10
je 0x469109
movzx ecx, word [ebp - 0x8f0]
push ecx
lea edx, [ebp - 0x20]
push str._c:_
push edx
call esi
add esp, 0xc
lea eax, [ebp - 0x8f0]
push eax
lea ecx, [ebp - 0x20]
push ecx
call dword [sym.imp.KERNEL32.dll_lstrcmpW]
lea edx, [ebp - 0x2bbc]
test eax, eax
push edx
lea eax, [ebp - 0x8f0]
lea ecx, [ebp - 0x18f0]
push eax
jne 0x4690d0
push 0x4ae918
jmp 0x4690d5
push str._s_s
push ecx
call esi
add esp, 0x10
lea edx, [ebp - 0x18f0]
push edx
lea eax, [ebp - 0x2960]
push eax
call fcn.00468eb0
add esp, 8
cmp dword [ebp - 0x294c], 8
jb 0x46927a
mov ecx, dword [ebp - 0x2960]
jmp 0x469271
movzx edx, word [ebp - 0x8f0]
push edx
lea eax, [ebp - 0x28]
push str._c:_
push eax
call esi
add esp, 0xc
lea ecx, [ebp - 0x8f0]
push ecx
lea edx, [ebp - 0x28]
push edx
call dword [sym.imp.KERNEL32.dll_lstrcmpW]
test eax, eax
lea eax, [ebp - 0x2bbc]
lea ecx, [ebp - 0x8f0]
push eax
lea edx, [ebp - 0x20f0]
push ecx
jne 0x46914f
push 0x4ae918
jmp 0x469154
push str._s_s
push edx
call esi
add esp, 0x10
xor eax, eax
mov word [ebp - 0x290c], ax
lea eax, [ebp - 0x8f0]
mov dword [ebp - 0x28f8], 7
mov dword [ebp - 0x28fc], edi
lea edx, [eax + 2]
lea esp, [esp]
mov cx, word [eax]
add eax, 2
cmp cx, di
jne 0x469180
sub eax, edx
sar eax, 1
push eax
lea ecx, [ebp - 0x8f0]
push ecx
lea ecx, [ebp - 0x290c]
call fcn.004027c0
push 1
push 0x4adfcc
lea ecx, [ebp - 0x290c]
mov dword [ebp - 4], 1
call fcn.004026a0
lea eax, [ebp - 0x2bbc]
lea edx, [eax + 2]
mov cx, word [eax]
add eax, 2
cmp cx, di
jne 0x4691c4
sub eax, edx
sar eax, 1
push eax
lea edx, [ebp - 0x2bbc]
push edx
lea ecx, [ebp - 0x290c]
call fcn.004026a0
mov ecx, str.config.ini
lea eax, [ebp - 0x2bbc]
mov dx, word [eax]
cmp dx, word [ecx]
jne 0x469217
cmp dx, di
je 0x469213
mov dx, word [eax + 2]
cmp dx, word [ecx + 2]
jne 0x469217
add eax, 4
add ecx, 4
cmp dx, di
jne 0x4691f1
xor eax, eax
jmp 0x46921c
sbb eax, eax
sbb eax, 0xffffffff
cmp eax, edi
jne 0x46925b
cmp dword [ebp - 0x28f8], 8
mov eax, dword [ebp - 0x290c]
jae 0x469235
lea eax, [ebp - 0x290c]
push eax
push 0x400
lea eax, [ebp - 0x18f0]
push eax
push edi
push str.data_dir_name
push str.Game
call dword [sym.imp.KERNEL32.dll_GetPrivateProfileStringW]
cmp eax, edi
ja 0x4692df
cmp dword [ebp - 0x28f8], 8
mov dword [ebp - 4], 0xffffffff
jb 0x46927a
mov ecx, dword [ebp - 0x290c]
push ecx
call sub.MSVCR100.dll_void___cdecl_operator_delete_void__
add esp, 4
mov eax, dword [ebp - 0x14]
lea edx, [ebp - 0x2be8]
push edx
push eax
call dword [sym.imp.KERNEL32.dll_FindNextFileW]
test eax, eax
jne 0x469054
mov ecx, dword [ebp - 0x14]
push ecx
call dword [sym.imp.KERNEL32.dll_FindClose]
push 0xffffffffffffffff
push edi
xor edx, edx
mov dword [ebx + 0x14], 7
mov dword [ebx + 0x10], edi
push 0x4ceff4
mov ecx, ebx
mov word [ebx], dx
call fcn.00402530
mov eax, ebx
lea esp, [ebp - 0x2bfc]
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.00497792
mov esp, ebp
pop ebp
ret
lea eax, [ebp - 0x8f0]
lea edx, [eax + 2]
jmp 0x4692f0
mov cx, word [eax]
add eax, 2
cmp cx, di
jne 0x4692f0
sub eax, edx
sar eax, 1
push eax
lea ecx, [ebp - 0x8f0]
push ecx
mov ecx, 0x4ceff4
call fcn.004027c0
push 1
push 0x4adfcc
mov ecx, 0x4ceff4
call fcn.004026a0
lea eax, [ebp - 0x18f0]
lea ecx, [eax + 2]
jmp 0x469330
mov dx, word [eax]
add eax, 2
cmp dx, di
jne 0x469330
sub eax, ecx
sar eax, 1
push eax
lea edx, [ebp - 0x18f0]
push edx
mov ecx, 0x4ceff4
call fcn.004026a0
push 1
push 0x4adfcc
mov ecx, 0x4ceff4
call fcn.004026a0
push 0xffffffffffffffff
push edi
xor eax, eax
mov esi, 7
push 0x4ceff4
lea ecx, [ebp - 0x2928]
mov dword [ebp - 0x2914], esi
mov dword [ebp - 0x2918], edi
mov word [ebp - 0x2928], ax
call fcn.00402530
push 0x12
push str.doyo_run_param.ini
lea ecx, [ebp - 0x2928]
mov byte [ebp - 4], 2
call fcn.004026a0
push 0xffffffffffffffff
xor ecx, ecx
push edi
mov word [ebp - 0x2944], cx
push 0x4ceff4
lea ecx, [ebp - 0x2944]
mov dword [ebp - 0x2930], esi
mov dword [ebp - 0x2934], edi
call fcn.00402530
push 0x10
push str.doyo_install.bat
lea ecx, [ebp - 0x2944]
mov byte [ebp - 4], 3
call fcn.004026a0
mov eax, dword [ebp - 0x2944]
mov esi, 8
cmp dword [ebp - 0x2930], esi
jae 0x4693fc
lea eax, [ebp - 0x2944]
push edi
push eax
call dword [sym.imp.MSVCR100.dll__waccess]
add esp, 8
mov ebx, 5
test eax, eax
jne 0x46944b
mov ecx, dword [0x4ceff4]
cmp dword [0x4cf008], esi
jae 0x469423
mov ecx, 0x4ceff4
mov eax, dword [ebp - 0x2944]
cmp dword [ebp - 0x2930], esi
jae 0x469437
lea eax, [ebp - 0x2944]
push ebx
push ecx
push 0x4ab248
push eax
push str.open
push edi
call dword [sym.imp.SHELL32.dll_ShellExecuteW]
cmp dword [ebp - 0x2914], esi
jb 0x469461
mov edi, dword [ebp - 0x2928]
test edi, edi
jne 0x469467
xor eax, eax
jmp 0x469490
lea edi, [ebp - 0x2928]
push edi
call dword [sym.imp.KERNEL32.dll_lstrlenW]
inc eax
cmp eax, 0x3fffffff
jle 0x46947a
xor eax, eax
jmp 0x469490
lea esi, [eax + eax]
mov eax, esi
call fcn.00497dd0
mov eax, esp
push 3
push esi
push edi
push eax
call fcn.00403590
push 0
push eax
call dword [sym.imp.MSVCR100.dll__access]
add esp, 8
test eax, eax
jne 0x469545
cmp dword [ebp - 0x2914], 8
mov eax, dword [ebp - 0x2928]
jae 0x4694b9
lea eax, [ebp - 0x2928]
push eax
push 0x64
lea edx, [ebp - 0xf0]
push edx
push 0
push str.path
push str.doyo
call dword [sym.imp.KERNEL32.dll_GetPrivateProfileStringW]
lea eax, [ebp - 0xf0]
lea edx, [eax + 2]
mov edi, edi
mov cx, word [eax]
add eax, 2
test cx, cx
jne 0x4694e0
sub eax, edx
sar eax, 1
push eax
lea eax, [ebp - 0xf0]
push eax
mov ecx, 0x4ceff4
call fcn.004026a0
mov ecx, dword [ebp - 0x14]
push ecx
call dword [sym.imp.KERNEL32.dll_FindClose]
mov esi, dword [ebp - 0x2bec]
push 0x4ceff4
mov ecx, esi
call fcn.004083d0
lea ecx, [ebp - 0x2944]
call fcn.004024d0
lea ecx, [ebp - 0x2928]
call fcn.004024d0
lea ecx, [ebp - 0x290c]
call fcn.004024d0
mov eax, esi
jmp 0x4692bd
mov eax, dword [0x4ceff4]
mov esi, 8
cmp dword [0x4cf008], esi
jae 0x46955c
mov eax, 0x4ceff4
push eax
push 0x4ab4fc
lea edx, [ebp - 0x28f0]
push 0x400
push edx
call dword [sym.imp.MSVCR100.dll_swprintf_s]
push str.doyo_run_param.ini
lea eax, [ebp - 0x28f0]
push eax
lea ecx, [ebp - 0x297c]
push ecx
call fcn.00462950
add esp, 0x1c
mov eax, dword [ebp - 0x297c]
mov byte [ebp - 4], 4
cmp dword [ebp - 0x2968], esi
jae 0x4695a7
lea eax, [ebp - 0x297c]
push eax
push 0x64
lea edx, [ebp - 0xf0]
push edx
push 0
push str.path
push str.doyo
call dword [sym.imp.KERNEL32.dll_GetPrivateProfileStringW]
lea eax, [ebp - 0xf0]
push eax
lea ecx, [ebp - 0x2960]
call fcn.00402480
push 1
push 0xffffffffffffffff
push 0x4adfcc
lea ecx, [ebp - 0x2960]
mov byte [ebp - 4], bl
call fcn.00408640
cmp eax, 0xffffffff
jle 0x46962a
mov ecx, dword [ebp - 0x2950]
push ecx
inc eax
push eax
lea edx, [ebp - 0x2998]
push edx
lea ecx, [ebp - 0x2960]
call fcn.00408400
push eax
lea ecx, [ebp - 0x2960]
mov byte [ebp - 4], 6
call fcn.004085c0
lea ecx, [ebp - 0x2998]
mov byte [ebp - 4], bl
call fcn.004024d0
push 1
push 0xffffffffffffffff
push 0x4adfcc
lea ecx, [ebp - 0x297c]
call fcn.00408640
push eax
push 0
lea eax, [ebp - 0x2998]
push eax
lea ecx, [ebp - 0x297c]
call fcn.00408400
push eax
lea ecx, [ebp - 0x297c]
mov byte [ebp - 4], 7
call fcn.004085c0
lea ecx, [ebp - 0x2998]
mov byte [ebp - 4], bl
call fcn.004024d0
push 0xffffffffffffffff
push 0
lea ecx, [ebp - 0x297c]
push ecx
mov ecx, 0x4ceff4
call fcn.00402530
push 1
push 0x4adfcc
mov ecx, 0x4ceff4
call fcn.004026a0
push 0xffffffffffffffff
push 0
lea edx, [ebp - 0x2960]
push edx
mov ecx, 0x4ceff4
call fcn.00402d10
mov eax, dword [ebp - 0x14]
push eax
call dword [sym.imp.KERNEL32.dll_FindClose]
mov esi, dword [ebp - 0x2bec]
push 0x4ceff4
mov ecx, esi
call fcn.004083d0
lea ecx, [ebp - 0x2960]
call fcn.004024d0
lea ecx, [ebp - 0x297c]
call fcn.004024d0
jmp 0x46951d