Function at 0x4010e0
Capabilities:
Create directory

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x405bf8
mov eax, dword fs:[0]
push eax
sub esp, 0x40
mov eax, dword [0x409018]
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 eax, dword [ebp + 8]
xor ebx, ebx
mov ecx, eax
mov dword [ebp - 0x2c], 0xf
mov dword [ebp - 0x30], ebx
mov byte [ebp - 0x40], bl
lea esi, [ecx + 1]
mov dl, byte [ecx]
inc ecx
cmp dl, bl
jne 0x401122
sub ecx, esi
mov edi, ecx
lea esi, [ebp - 0x40]
call fcn.00403b20
lea eax, [ebp - 0x44]
mov dword [ebp - 4], ebx
push eax
mov edi, esi
mov byte [ebp - 0x44], 0x5c
call fcn.00403830
lea ecx, [ebp - 0x4c]
push ecx
mov esi, eax
call dword [sym.imp.MSVCR100.dll__time64]
lea edx, [ebp - 0x4c]
push edx
call dword [sym.imp.MSVCR100.dll__localtime64]
xor ecx, ecx
mov dword [ebp - 0x23], ecx
mov dword [ebp - 0x1f], ecx
mov dword [ebp - 0x1b], ecx
mov dword [ebp - 0x17], ecx
mov word [ebp - 0x13], cx
mov byte [ebp - 0x11], cl
mov byte [ebp - 0x24], bl
mov ecx, dword [eax + 0xc]
mov edx, dword [eax + 0x10]
mov eax, dword [eax + 0x14]
push ecx
inc edx
push edx
add eax, 0x76c
push eax
lea ecx, [ebp - 0x24]
push str._4d__02d__02d
push ecx
call dword [sym.imp.MSVCR100.dll_sprintf]
add esp, 0x1c
cmp esi, 0xffffffff
jne 0x401201
mov eax, dword [ebp - 0x40]
mov edi, 0x10
mov dword [ebp - 0x30], ebx
cmp dword [ebp - 0x2c], edi
jae 0x4011b1
lea eax, [ebp - 0x40]
mov byte [eax], bl
push 9
mov eax, str.proxy_exe
lea ecx, [ebp - 0x40]
call fcn.00403670
push 4
mov eax, str..log
lea ecx, [ebp - 0x40]
call fcn.00403670
cmp dword [ebp - 0x2c], edi
jb 0x4011e3
mov edx, dword [ebp - 0x40]
push edx
call dword [sym.imp.MSVCR100.dll_void___cdecl_operator_delete_void__]
add esp, 4
xor eax, eax
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.00404137
mov esp, ebp
pop ebp
ret
lea ecx, [esi + 1]
or eax, 0xffffffff
lea esi, [ebp - 0x40]
call fcn.00403550
lea eax, [ebp - 0x24]
lea edx, [eax + 1]
mov cl, byte [eax]
inc eax
cmp cl, bl
jne 0x401215
sub eax, edx
push eax
lea eax, [ebp - 0x24]
lea ecx, [ebp - 0x40]
call fcn.00403670
mov eax, dword [ebp - 0x40]
mov edi, 0x10
cmp dword [ebp - 0x2c], edi
jae 0x40123a
lea eax, [ebp - 0x40]
mov esi, dword [sym.imp.MSVCR100.dll__access]
push ebx
push eax
call esi
mov eax, dword [ebp - 0x40]
add esp, 8
cmp dword [ebp - 0x2c], edi
jae 0x401252
lea eax, [ebp - 0x40]
push ebx
push eax
call esi
add esp, 8
test eax, eax
je 0x401272
mov eax, dword [ebp - 0x40]
cmp dword [ebp - 0x2c], edi
jae 0x401268
lea eax, [ebp - 0x40]
push eax
call dword [sym.imp.MSVCR100.dll__mkdir]
add esp, 4
push 1
mov eax, 0x407334
lea ecx, [ebp - 0x40]
call fcn.00403670
push 9
mov eax, str.proxy_exe
lea ecx, [ebp - 0x40]
call fcn.00403670
push 4
mov eax, str..log
lea ecx, [ebp - 0x40]
call fcn.00403670
mov eax, dword [ebp - 0x40]
cmp dword [ebp - 0x2c], edi
jae 0x4012aa
lea eax, [ebp - 0x40]
push 0x407338
push eax
call dword [sym.imp.MSVCR100.dll_fopen]
add esp, 8
mov dword [0x409404], eax
cmp eax, ebx
jne 0x4011d1
call dword [sym.imp.MSVCR100.dll__errno]
mov eax, dword [eax]
push eax
call dword [sym.imp.MSVCR100.dll_strerror]
push eax
push str.fopen_message_file_failed_:__s_n
push 1
push 3
push 0x409404
call sym.db_proxy.exe_log_output
add esp, 0x18
cmp dword [ebp - 0x2c], edi
jb 0x4012fe
mov ecx, dword [ebp - 0x40]
push ecx
call dword [sym.imp.MSVCR100.dll_void___cdecl_operator_delete_void__]
add esp, 4
or eax, 0xffffffff
jmp 0x4011e5