Function at 0x41c95c
Capabilities:
Set current directory

Disassembly:
sub esp, 0x43c
push ebp
push edi
push esi
push ebx
mov esi, dword [esp + 0x450]
call fcn.0041af5c
call fcn.0040668c
mov ebp, eax
push 0x41c5c0
push 0x512b60
call fcn.0040bf28
push eax
push ebp
mov eax, dword [esi]
push dword [eax + 0xc]
push dword [eax]
push 0x41c5e0
lea ebx, [esp + 0x5c]
push ebx
call sub.USER32.dll_wsprintfA
add esp, 0x20
cmp dword [0x4dffac], 0
jne 0x41c9bb
push 0x10
push 0x41c6a3
push ebx
push 0
call sub.USER32.dll_MessageBoxA
add esp, 0xfffffff4
push 0x512b60
call sub.KERNEL32.dll_SetCurrentDirectoryA
add esp, 0xfffffff4
push 0x41c6b2
push 0x41c5c0
call sub.crtdll.dll_fopen
mov ebx, eax
add esp, 0x20
lea edi, [esp + 0x20]
test ebx, ebx
je 0x41cbce
add esp, 0xfffffff4
push 0
call sub.crtdll.dll_time
mov dword [esp + 0x2c], eax
add esp, 0xfffffff8
push 0x41c6c0
push ebx
call fcn.0041b1a8
add esp, 0x20
add esp, 0xfffffffc
add esp, 0xfffffff4
lea eax, [esp + 0x2c]
push eax
call sub.crtdll.dll_ctime
push eax
push 0x41c707
push ebx
call fcn.0041b1a8
add esp, 0x20
mov eax, dword [esi]
push dword [eax + 0xc]
push dword [eax]
push 0x41c720
push ebx
call fcn.0041b1a8
mov eax, dword [esi]
add esp, 0x10
cmp dword [eax], 0xc0000005
jne 0x41ca6a
push dword [eax + 0x18]
mov edx, 0x41c758
cmp dword [eax + 0x14], 0
je 0x41ca5b
mov edx, 0x41c74b
push edx
push 0x41c780
push ebx
call fcn.0041b1a8
add esp, 0x10
add esp, 0xfffffff8
mov eax, dword [esi + 4]
push dword [eax + 0xa8]
push dword [eax + 0xac]
push dword [eax + 0xa4]
push dword [eax + 0xb0]
push 0x41c7a0
push ebx
call fcn.0041b1a8
add esp, 0x20
add esp, 0xfffffff8
mov eax, dword [esi + 4]
push dword [eax + 0xc4]
push dword [eax + 0xb4]
push dword [eax + 0x9c]
push dword [eax + 0xa0]
push 0x41c7e0
push ebx
call fcn.0041b1a8
add esp, 0x20
mov eax, dword [esi + 4]
push dword [eax + 0xc0]
push dword [eax + 0xb8]
push 0x41c805
push ebx
call fcn.0041b1a8
add esp, 0xfffffff4
mov eax, dword [esi + 4]
push dword [eax + 0x24]
push dword [eax + 0x20]
push dword [eax + 0x1c]
push 0x41c820
push ebx
call fcn.0041b1a8
add esp, 0x30
add esp, 0xfffffffc
push dword [0x4dfe84]
push 0x41c854
push ebx
call fcn.0041b1a8
add esp, 0xfffffffc
push dword [0x4dfe80]
push 0x41c854
push ebx
call fcn.0041b1a8
add esp, 0x20
add esp, 0xfffffffc
push dword [0x4dfe88]
push 0x41c854
push ebx
call fcn.0041b1a8
add esp, 0xfffffffc
push 0x41c860
push 0x41c8b2
push ebx
call fcn.0041b1a8
add esp, 0x20
add esp, 0xfffffff4
push ebx
call sub.crtdll.dll_fflush
call fcn.0040bf28
push eax
push ebp
push 0x41c8e0
push ebx
call fcn.0041b1a8
add esp, 0x20
add esp, 0xfffffff4
push ebx
call sub.crtdll.dll_fflush
add esp, 0xfffffff8
push 0x41c90c
push ebx
call fcn.0041b1a8
mov esi, 1
add esp, 0x20
lea edi, [esp + 0x20]
jmp 0x41cbad
add esp, 0xfffffffc
push eax
push 0x41c91e
push ebx
call fcn.0041b1a8
add esp, 0xfffffff4
push ebx
call sub.crtdll.dll_fflush
inc esi
add esp, 0x20
add esp, 0xfffffff4
push esi
call fcn.004254b0
add esp, 0x10
test eax, eax
jne 0x41cb91
add esp, 0xfffffff8
push 0x41c923
push ebx
call fcn.0041b1a8
add esp, 0x10
add esp, 0xfffffff4
push ebx
call sub.crtdll.dll_fflush
mov esi, dword [sym.imp.crtdll.dll__iob]
add esi, 0x20
cld
mov ecx, 8
rep movsd dword es:[edi], dword [esi]
mov edi, dword [sym.imp.crtdll.dll__iob]
add edi, 0x20
mov esi, ebx
cld
mov ecx, 8
rep movsd dword es:[edi], dword [esi]
call fcn.00415ca8
mov edi, ebx
mov esi, dword [sym.imp.crtdll.dll__iob]
add esi, 0x20
cld
mov ecx, 8
rep movsd dword es:[edi], dword [esi]
mov edi, dword [sym.imp.crtdll.dll__iob]
add edi, 0x20
lea esi, [esp + 0x30]
cld
mov ecx, 8
rep movsd dword es:[edi], dword [esi]
add esp, 0xfffffff8
push 0x41ba05
push ebx
call fcn.0041b1a8
add esp, 0x20
add esp, 0xfffffff4
push ebx
call sub.crtdll.dll_fclose
add esp, 0x10
pop ebx
pop esi
pop edi
pop ebp
add esp, 0x43c
ret