Function at 0x41c70610
Capabilities:
Get common file path

Disassembly:
sub esp, 0x430
mov eax, dword [0x41caa230]
push ebx
push ebp
push esi
push edi
mov dword [esp + 0x43c], eax
mov byte [esp + 0x24], 0
call dword [sym.imp.KERNEL32.dll_GetCurrentProcessId]
mov esi, eax
call dword [sym.imp.KERNEL32.dll_GetCurrentThreadId]
mov edi, eax
mov eax, dword [esp + 0x444]
test eax, eax
je 0x41c7065b
lea edx, [eax + 1]
lea esp, [esp]
mov cl, byte [eax]
inc eax
test cl, cl
jne 0x41c70650
sub eax, edx
jmp 0x41c7066b
lea eax, [esp + 0x3c]
push eax
push 0x400
call dword [sym.imp.KERNEL32.dll_GetTempPathA]
mov ebp, eax
mov eax, dword [esp + 0x448]
test eax, eax
je 0x41c7068b
lea edx, [eax + 1]
jmp 0x41c70680
mov cl, byte [eax]
inc eax
test cl, cl
jne 0x41c70680
sub eax, edx
add ebp, eax
mov eax, dword [esp + 0x44c]
test eax, eax
je 0x41c706ad
lea edx, [eax + 1]
lea esp, [esp]
mov cl, byte [eax]
inc eax
test cl, cl
jne 0x41c706a0
sub eax, edx
add ebp, eax
jmp 0x41c706b0
add ebp, 3
mov ebx, dword [esp + 0x450]
add ebp, 0x1a
test ebx, ebx
mov dword [esp + 0x14], ebp
je 0x41c708f3
mov eax, dword [esp + 0x454]
cmp eax, ebp
jb 0x41c708ec
call dword [sym.imp.MSVCR71.dll_clock]
lea ecx, [esp + 0x10]
push ecx
mov dword [esp + 0x14], eax
call fcn.41c70270
push edi
push esi
push str._x_x
lea edx, [esp + 0x34]
push 0x15
push edx
call fcn.41c4f400
mov ebp, dword [sym.imp.MSVCR71.dll_rand]
add esp, 0x18
mov dword [esp + 0x10], 0x1e
lea ecx, [ecx]
mov eax, dword [esp + 0x444]
test eax, eax
mov byte [ebx], 0
je 0x41c7073a
mov edx, eax
mov cl, byte [eax]
inc eax
test cl, cl
jne 0x41c70720
mov edi, ebx
sub eax, edx
dec edi
lea esp, [esp]
mov cl, byte [edi + 1]
inc edi
test cl, cl
jne 0x41c70730
jmp 0x41c70758
lea eax, [esp + 0x3c]
mov edx, eax
mov cl, byte [eax]
inc eax
test cl, cl
jne 0x41c70740
mov edi, ebx
sub eax, edx
dec edi
lea esp, [esp]
mov cl, byte [edi + 1]
inc edi
test cl, cl
jne 0x41c70750
mov ecx, eax
shr ecx, 2
mov esi, edx
rep movsd dword es:[edi], dword [esi]
mov ecx, eax
mov eax, dword [esp + 0x448]
and ecx, 3
test eax, eax
rep movsb byte es:[edi], byte [esi]
je 0x41c70799
mov edx, eax
mov cl, byte [eax]
inc eax
test cl, cl
jne 0x41c70775
mov edi, ebx
sub eax, edx
dec edi
mov cl, byte [edi + 1]
inc edi
test cl, cl
jne 0x41c70781
mov ecx, eax
shr ecx, 2
mov esi, edx
rep movsd dword es:[edi], dword [esi]
mov ecx, eax
and ecx, 3
rep movsb byte es:[edi], byte [esi]
lea eax, [esp + 0x24]
mov esi, eax
nop
mov cl, byte [eax]
inc eax
test cl, cl
jne 0x41c707a0
mov edi, ebx
sub eax, esi
dec edi
lea esp, [esp]
mov cl, byte [edi + 1]
inc edi
test cl, cl
jne 0x41c707b0
mov ecx, eax
shr ecx, 2
rep movsd dword es:[edi], dword [esi]
mov ecx, eax
and ecx, 3
rep movsb byte es:[edi], byte [esi]
call ebp
push eax
push 0x41c9e6c0
lea eax, [esp + 0x20]
push 0xb
push eax
call fcn.41c4f400
lea eax, [esp + 0x28]
add esp, 0x10
mov ecx, eax
mov dl, byte [eax]
inc eax
test dl, dl
jne 0x41c707e3
mov edi, ebx
sub eax, ecx
mov esi, ecx
dec edi
mov cl, byte [edi + 1]
inc edi
test cl, cl
jne 0x41c707f1
mov ecx, eax
shr ecx, 2
rep movsd dword es:[edi], dword [esi]
mov ecx, eax
and ecx, 3
rep movsb byte es:[edi], byte [esi]
mov edi, ebx
dec edi
lea ebx, [ebx]
mov al, byte [edi + 1]
inc edi
test al, al
jne 0x41c70810
mov eax, dword [esp + 0x44c]
test eax, eax
mov cx, word [0x41c9e6bc]
mov word [edi], cx
je 0x41c7085a
mov edx, eax
nop
mov cl, byte [eax]
inc eax
test cl, cl
jne 0x41c70830
mov edi, ebx
sub eax, edx
dec edi
lea esp, [esp]
mov cl, byte [edi + 1]
inc edi
test cl, cl
jne 0x41c70840
mov ecx, eax
shr ecx, 2
mov esi, edx
rep movsd dword es:[edi], dword [esi]
mov ecx, eax
and ecx, 3
rep movsb byte es:[edi], byte [esi]
jmp 0x41c70870
mov edi, ebx
dec edi
lea ecx, [ecx]
mov al, byte [edi + 1]
inc edi
test al, al
jne 0x41c70860
mov edx, dword [0x41c9e6b8]
mov dword [edi], edx
push 0x180
push 0x500
push ebx
call dword [sym.imp.MSVCR71.dll__open]
add esp, 0xc
cmp eax, 0xffffffff
jne 0x41c70895
mov ecx, dword [esp + 0x10]
test ecx, ecx
je 0x41c70895
xor cl, cl
jmp 0x41c70897
mov cl, 1
mov esi, dword [esp + 0x10]
dec esi
test cl, cl
mov dword [esp + 0x10], esi
je 0x41c70710
cmp eax, 0xffffffff
je 0x41c708d2
push eax
call dword [sym.imp.MSVCR71.dll__close]
mov eax, dword [esp + 0x18]
add esp, 4
pop edi
pop esi
pop ebp
pop ebx
mov ecx, dword [esp + 0x42c]
call fcn.41c9a4ee
add esp, 0x430
ret
pop edi
pop esi
pop ebp
or eax, 0xffffffff
pop ebx
mov ecx, dword [esp + 0x42c]
call fcn.41c9a4ee
add esp, 0x430
ret
test eax, eax
jbe 0x41c708f3
mov byte [ebx], 0
mov ecx, dword [esp + 0x43c]
pop edi
pop esi
mov eax, ebp
pop ebp
pop ebx
call fcn.41c9a4ee
add esp, 0x430
ret