Function at 0x505bb0
Capabilities:
Create directory

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x57beef
mov eax, dword fs:[0]
push eax
sub esp, 0x38
mov eax, dword [0x640040]
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 edi, edi
mov ebx, dword [ebp + 0xc]
mov dword [ebp - 0x44], eax
mov dword [ebp - 0x3c], eax
mov dword [ebp - 0x20], edi
mov dword [ebp - 4], 1
lea eax, [ebp + 0x10]
push ecx
mov ecx, esp
mov dword [ebp - 0x34], esp
push eax
call dword [sym.imp.mfc140u.dll_ATL::CStringT_wchar_t_StrTraitMFC_DLL_wchar_t_ATL::ChTraitsCRT_wchar_t__30]
mov byte [ebp - 4], 2
lea eax, [ebp - 0x18]
push eax
mov byte [ebp - 4], 1
call fcn.00505a90
mov byte [ebp - 4], 3
lea eax, [ebp - 0x18]
push ecx
mov ecx, esp
mov dword [ebp - 0x40], esp
push eax
call dword [sym.imp.mfc140u.dll_ATL::CStringT_wchar_t_StrTraitMFC_DLL_wchar_t_ATL::ChTraitsCRT_wchar_t__30]
mov byte [ebp - 4], 4
mov byte [ebp - 4], 3
call fcn.005046c0
lea ecx, [ebx + 0x1a8]
mov dword [ebp - 0x40], ecx
test al, al
jne 0x505e70
mov eax, dword [ebx]
mov ecx, ebx
call dword [eax + 0x78]
mov esi, eax
lea ecx, [ebx + 0x1a8]
push edi
lea eax, [ebp - 0x34]
push eax
call fcn.00512020
mov edi, eax
mov byte [ebp - 4], 6
lea ecx, [ebp - 0x30]
push 0x641cf4
call dword [sym.imp.mfc140u.dll_ATL::CStringT_wchar_t_StrTraitMFC_DLL_wchar_t_ATL::ChTraitsCRT_wchar_t__30]
mov dword [ebp - 0x20], 2
mov byte [ebp - 4], 7
lea ecx, [ebp - 0x30]
call dword [sym.imp.mfc140u.dll_Ordinal_5921]
push eax
lea ecx, [ebp - 0x2c]
call dword [sym.imp.mfc140u.dll_Ordinal_285]
mov eax, dword [ebp - 0x30]
push 1
push 0x5dd26c
mov dword [ebp - 0x20], 6
push dword [eax - 0xc]
push eax
lea eax, [ebp - 0x2c]
push eax
call dword [sym.imp.mfc140u.dll_ATL::CSimpleStringT_wchar_t_1_::Concatenate]
mov eax, dword [esi]
add esp, 0x14
mov ecx, esi
call dword [eax + 0x80]
mov esi, eax
mov byte [ebp - 4], 8
lea ecx, [ebp - 0x2c]
call dword [sym.imp.mfc140u.dll_Ordinal_5921]
push eax
lea ecx, [ebp - 0x28]
call dword [sym.imp.mfc140u.dll_Ordinal_285]
mov dword [ebp - 0x20], 0xe
test esi, esi
jne 0x505ce5
xor ecx, ecx
jmp 0x505cff
mov ecx, esi
lea edx, [ecx + 2]
nop word [eax + eax]
mov ax, word [ecx]
add ecx, 2
test ax, ax
jne 0x505cf0
sub ecx, edx
sar ecx, 1
mov eax, dword [ebp - 0x2c]
push ecx
push esi
push dword [eax - 0xc]
push eax
lea eax, [ebp - 0x28]
push eax
call dword [sym.imp.mfc140u.dll_ATL::CSimpleStringT_wchar_t_1_::Concatenate]
add esp, 0x14
mov byte [ebp - 4], 9
lea ecx, [ebp - 0x28]
call dword [sym.imp.mfc140u.dll_Ordinal_5921]
push eax
lea ecx, [ebp - 0x24]
call dword [sym.imp.mfc140u.dll_Ordinal_285]
mov eax, dword [ebp - 0x28]
push 1
push 0x593164
mov dword [ebp - 0x20], 0x1e
push dword [eax - 0xc]
push eax
lea eax, [ebp - 0x24]
push eax
call dword [sym.imp.mfc140u.dll_ATL::CSimpleStringT_wchar_t_1_::Concatenate]
add esp, 0x14
mov byte [ebp - 4], 0xa
lea ecx, [ebp - 0x24]
call dword [sym.imp.mfc140u.dll_Ordinal_5921]
push eax
lea ecx, [ebp - 0x38]
call dword [sym.imp.mfc140u.dll_Ordinal_285]
mov eax, dword [edi]
mov dword [ebp - 0x20], 0x3e
push dword [eax - 0xc]
push eax
mov eax, dword [ebp - 0x24]
push dword [eax - 0xc]
push eax
lea eax, [ebp - 0x38]
push eax
call dword [sym.imp.mfc140u.dll_ATL::CSimpleStringT_wchar_t_1_::Concatenate]
push str..csv
lea edx, [ebp - 0x38]
lea ecx, [ebp - 0x14]
call fcn.00402c50
add esp, 0x18
mov byte [ebp - 4], 0xb
mov edi, 0x3e
mov dword [ebp - 0x20], edi
and edi, 0xffffffdf
mov dword [ebp - 0x20], edi
mov byte [ebp - 4], 0xc
lea ecx, [ebp - 0x38]
call dword [sym.imp.mfc140u.dll_Ordinal_1045]
and edi, 0xffffffef
mov dword [ebp - 0x20], edi
mov byte [ebp - 4], 0xd
lea ecx, [ebp - 0x24]
call dword [sym.imp.mfc140u.dll_Ordinal_1045]
and edi, 0xfffffff7
mov dword [ebp - 0x20], edi
mov byte [ebp - 4], 0xe
lea ecx, [ebp - 0x28]
call dword [sym.imp.mfc140u.dll_Ordinal_1045]
and edi, 0xfffffffb
mov dword [ebp - 0x20], edi
mov byte [ebp - 4], 0xf
lea ecx, [ebp - 0x2c]
call dword [sym.imp.mfc140u.dll_Ordinal_1045]
and edi, 0xfffffffd
mov dword [ebp - 0x20], edi
mov byte [ebp - 4], 0x10
lea ecx, [ebp - 0x30]
call dword [sym.imp.mfc140u.dll_Ordinal_1045]
mov byte [ebp - 4], 0x11
lea ecx, [ebp - 0x34]
call dword [sym.imp.mfc140u.dll_Ordinal_1045]
cmp byte [ebp + 0x14], 0
jne 0x505e33
mov ecx, dword [ebp - 0x3c]
lea eax, [ebp - 0x14]
push eax
call dword [sym.imp.mfc140u.dll_ATL::CStringT_wchar_t_StrTraitMFC_DLL_wchar_t_ATL::ChTraitsCRT_wchar_t__30]
or edi, 1
mov dword [ebp - 0x20], edi
mov byte [ebp - 4], 3
lea ecx, [ebp - 0x14]
jmp 0x506295
push 0
push dword [ebp - 0x18]
call dword [sym.imp.KERNEL32.dll_CreateDirectoryW]
test eax, eax
jne 0x505e61
mov ecx, dword [ebp - 0x3c]
lea eax, [ebp - 0x14]
push eax
call dword [sym.imp.mfc140u.dll_ATL::CStringT_wchar_t_StrTraitMFC_DLL_wchar_t_ATL::ChTraitsCRT_wchar_t__30]
or edi, 1
mov dword [ebp - 0x20], edi
mov byte [ebp - 4], 3
lea ecx, [ebp - 0x14]
jmp 0x506295
mov byte [ebp - 4], 3
lea ecx, [ebp - 0x14]
call dword [sym.imp.mfc140u.dll_Ordinal_1045]
jmp 0x505e73
mov dword [ebp - 0x40], ecx
lea ecx, [ebp - 0x1c]
call dword [sym.imp.mfc140u.dll_Ordinal_296]
mov byte [ebp - 4], 0x12
cmp byte [ebp + 0x18], 0
jne 0x506080
cmp dword [ebx + 0x228], 0
je 0x506080
mov eax, dword [ebx]
mov ecx, ebx
call dword [eax + 0x78]
mov ecx, dword [ebp - 0x40]
mov esi, eax
push 0
lea eax, [ebp - 0x34]
push eax
call fcn.00512020
mov ebx, eax
mov byte [ebp - 4], 0x19
lea ecx, [ebp - 0x18]
call dword [sym.imp.mfc140u.dll_Ordinal_5921]
push eax
lea ecx, [ebp - 0x14]
call dword [sym.imp.mfc140u.dll_Ordinal_285]
or edi, 0x1000
mov dword [ebp - 0x20], edi
mov eax, dword [ebp - 0x18]
push 1
push 0x5dd26c
push dword [eax - 0xc]
push eax
lea eax, [ebp - 0x14]
push eax
call dword [sym.imp.mfc140u.dll_ATL::CSimpleStringT_wchar_t_1_::Concatenate]
mov eax, dword [esi]
add esp, 0x14
mov ecx, esi
call dword [eax + 0x80]
mov esi, eax
mov byte [ebp - 4], 0x1a
lea ecx, [ebp - 0x14]
call dword [sym.imp.mfc140u.dll_Ordinal_5921]
push eax
lea ecx, [ebp - 0x24]
call dword [sym.imp.mfc140u.dll_Ordinal_285]
or edi, 0x2000
mov dword [ebp - 0x20], edi
test esi, esi
jne 0x505f1f
xor ecx, ecx
jmp 0x505f33
mov ecx, esi
lea edx, [ecx + 2]
mov ax, word [ecx]
add ecx, 2
test ax, ax
jne 0x505f24
sub ecx, edx
sar ecx, 1
mov eax, dword [ebp - 0x14]
push ecx
push esi
push dword [eax - 0xc]
push eax
lea eax, [ebp - 0x24]
push eax
call dword [sym.imp.mfc140u.dll_ATL::CSimpleStringT_wchar_t_1_::Concatenate]
add esp, 0x14
mov byte [ebp - 4], 0x1b
lea ecx, [ebp - 0x24]
call dword [sym.imp.mfc140u.dll_Ordinal_5921]
push eax
lea ecx, [ebp - 0x28]
call dword [sym.imp.mfc140u.dll_Ordinal_285]
or edi, 0x4000
mov dword [ebp - 0x20], edi
mov eax, dword [ebp - 0x24]
push 1
push 0x593164
push dword [eax - 0xc]
push eax
lea eax, [ebp - 0x28]
push eax
call dword [sym.imp.mfc140u.dll_ATL::CSimpleStringT_wchar_t_1_::Concatenate]
add esp, 0x14
mov byte [ebp - 4], 0x1c
lea ecx, [ebp - 0x28]
call dword [sym.imp.mfc140u.dll_Ordinal_5921]
push eax
lea ecx, [ebp - 0x2c]
call dword [sym.imp.mfc140u.dll_Ordinal_285]
or edi, 0x8000
mov dword [ebp - 0x20], edi
mov eax, dword [ebx]
push dword [eax - 0xc]
push eax
mov eax, dword [ebp - 0x28]
push dword [eax - 0xc]
push eax
lea eax, [ebp - 0x2c]
push eax
call dword [sym.imp.mfc140u.dll_ATL::CSimpleStringT_wchar_t_1_::Concatenate]
add esp, 0x14
mov byte [ebp - 4], 0x1d
lea ecx, [ebp - 0x2c]
call dword [sym.imp.mfc140u.dll_Ordinal_5921]
push eax
lea ecx, [ebp - 0x30]
call dword [sym.imp.mfc140u.dll_Ordinal_285]
or edi, 0x10000
mov dword [ebp - 0x20], edi
mov eax, dword [ebp - 0x2c]
push 4
push str..csv
push dword [eax - 0xc]
push eax
lea eax, [ebp - 0x30]
push eax
call dword [sym.imp.mfc140u.dll_ATL::CSimpleStringT_wchar_t_1_::Concatenate]
add esp, 0x14
lea eax, [ebp - 0x30]
lea ecx, [ebp - 0x1c]
push eax
call dword [sym.imp.mfc140u.dll_ATL::CStringT_wchar_t_StrTraitMFC_DLL_wchar_t_ATL::ChTraitsCRT_wchar_t__27]
and edi, 0xfffeffff
mov dword [ebp - 0x20], edi
mov byte [ebp - 4], 0x1c
lea ecx, [ebp - 0x30]
call dword [sym.imp.mfc140u.dll_Ordinal_1045]
and edi, 0xffff7fff
mov dword [ebp - 0x20], edi
mov byte [ebp - 4], 0x1b
lea ecx, [ebp - 0x2c]
call dword [sym.imp.mfc140u.dll_Ordinal_1045]
and edi, 0xffffbfff
mov dword [ebp - 0x20], edi
mov byte [ebp - 4], 0x1a
lea ecx, [ebp - 0x28]
call dword [sym.imp.mfc140u.dll_Ordinal_1045]
and edi, 0xffffdfff
mov dword [ebp - 0x20], edi
mov byte [ebp - 4], 0x19
lea ecx, [ebp - 0x24]
call dword [sym.imp.mfc140u.dll_Ordinal_1045]
and edi, 0xffffefff
mov dword [ebp - 0x20], edi
mov byte [ebp - 4], 0x18
lea ecx, [ebp - 0x14]
call dword [sym.imp.mfc140u.dll_Ordinal_1045]
mov byte [ebp - 4], 0x12
lea ecx, [ebp - 0x34]
jmp 0x506275
mov eax, dword [ebx]
mov ecx, ebx
call dword [eax + 0x78]
mov esi, eax
mov byte [ebp - 4], 0x13
lea ecx, [ebp - 0x18]
call dword [sym.imp.mfc140u.dll_Ordinal_5921]
push eax
lea ecx, [ebp - 0x14]
call dword [sym.imp.mfc140u.dll_Ordinal_285]
or edi, 0x80
mov dword [ebp - 0x20], edi
mov eax, dword [ebp - 0x18]
push 1
push 0x5dd26c
push dword [eax - 0xc]
push eax
lea eax, [ebp - 0x14]
push eax
call dword [sym.imp.mfc140u.dll_ATL::CSimpleStringT_wchar_t_1_::Concatenate]
mov eax, dword [esi]
add esp, 0x14
mov ecx, esi
call dword [eax + 0x80]
mov esi, eax
mov byte [ebp - 4], 0x14
lea ecx, [ebp - 0x14]
call dword [sym.imp.mfc140u.dll_Ordinal_5921]
push eax
lea ecx, [ebp - 0x24]
call dword [sym.imp.mfc140u.dll_Ordinal_285]
or edi, 0x100
mov dword [ebp - 0x20], edi
test esi, esi
jne 0x5060f8
xor ecx, ecx
jmp 0x50610f
mov ecx, esi
lea edx, [ecx + 2]
nop dword [eax]
mov ax, word [ecx]
add ecx, 2
test ax, ax
jne 0x506100
sub ecx, edx
sar ecx, 1
mov eax, dword [ebp - 0x14]
push ecx
push esi
push dword [eax - 0xc]
push eax
lea eax, [ebp - 0x24]
push eax
call dword [sym.imp.mfc140u.dll_ATL::CSimpleStringT_wchar_t_1_::Concatenate]
add esp, 0x14
mov byte [ebp - 4], 0x15
lea ecx, [ebp - 0x24]
call dword [sym.imp.mfc140u.dll_Ordinal_5921]
push eax
lea ecx, [ebp - 0x28]
call dword [sym.imp.mfc140u.dll_Ordinal_285]
or edi, 0x200
mov dword [ebp - 0x20], edi
mov eax, dword [ebp - 0x24]
push 1
push 0x593164
push dword [eax - 0xc]
push eax
lea eax, [ebp - 0x28]
push eax
call dword [sym.imp.mfc140u.dll_ATL::CSimpleStringT_wchar_t_1_::Concatenate]
mov eax, dword [ebx]
add esp, 0x14
mov ecx, ebx
call dword [eax + 0x80]
mov esi, eax
mov byte [ebp - 4], 0x16
lea ecx, [ebp - 0x28]
call dword [sym.imp.mfc140u.dll_Ordinal_5921]
push eax
lea ecx, [ebp - 0x2c]
call dword [sym.imp.mfc140u.dll_Ordinal_285]
or edi, 0x400
mov dword [ebp - 0x20], edi
test esi, esi
jne 0x506194
xor ecx, ecx
jmp 0x5061af
mov ecx, esi
lea edx, [ecx + 2]
nop dword [eax]
mov ax, word [ecx]
add ecx, 2
test ax, ax
jne 0x5061a0
sub ecx, edx
sar ecx, 1
mov eax, dword [ebp - 0x28]
push ecx
push esi
push dword [eax - 0xc]
push eax
lea eax, [ebp - 0x2c]
push eax
call dword [sym.imp.mfc140u.dll_ATL::CSimpleStringT_wchar_t_1_::Concatenate]
add esp, 0x14
mov byte [ebp - 4], 0x17
lea ecx, [ebp - 0x2c]
call dword [sym.imp.mfc140u.dll_Ordinal_5921]
push eax
lea ecx, [ebp - 0x30]
call dword [sym.imp.mfc140u.dll_Ordinal_285]
or edi, 0x800
mov dword [ebp - 0x20], edi
mov eax, dword [ebp - 0x2c]
push 4
push str..csv
push dword [eax - 0xc]
push eax
lea eax, [ebp - 0x30]
push eax
call dword [sym.imp.mfc140u.dll_ATL::CSimpleStringT_wchar_t_1_::Concatenate]
add esp, 0x14
lea eax, [ebp - 0x30]
lea ecx, [ebp - 0x1c]
push eax
call dword [sym.imp.mfc140u.dll_ATL::CStringT_wchar_t_StrTraitMFC_DLL_wchar_t_ATL::ChTraitsCRT_wchar_t__27]
and edi, 0xfffff7ff
mov dword [ebp - 0x20], edi
mov byte [ebp - 4], 0x16
lea ecx, [ebp - 0x30]
call dword [sym.imp.mfc140u.dll_Ordinal_1045]
and edi, 0xfffffbff
mov dword [ebp - 0x20], edi
mov byte [ebp - 4], 0x15
lea ecx, [ebp - 0x2c]
call dword [sym.imp.mfc140u.dll_Ordinal_1045]
and edi, 0xfffffdff
mov dword [ebp - 0x20], edi
mov byte [ebp - 4], 0x14
lea ecx, [ebp - 0x28]
call dword [sym.imp.mfc140u.dll_Ordinal_1045]
and edi, 0xfffffeff
mov dword [ebp - 0x20], edi
mov byte [ebp - 4], 0x13
lea ecx, [ebp - 0x24]
call dword [sym.imp.mfc140u.dll_Ordinal_1045]
and edi, 0xffffff7f
mov dword [ebp - 0x20], edi
mov byte [ebp - 4], 0x12
lea ecx, [ebp - 0x14]
call dword [sym.imp.mfc140u.dll_Ordinal_1045]
mov ecx, dword [ebp - 0x3c]
lea eax, [ebp - 0x1c]
push eax
call dword [sym.imp.mfc140u.dll_ATL::CStringT_wchar_t_StrTraitMFC_DLL_wchar_t_ATL::ChTraitsCRT_wchar_t__30]
or edi, 1
mov dword [ebp - 0x20], edi
mov byte [ebp - 4], 3
lea ecx, [ebp - 0x1c]
call dword [sym.imp.mfc140u.dll_Ordinal_1045]
mov byte [ebp - 4], 1
lea ecx, [ebp - 0x18]
call dword [sym.imp.mfc140u.dll_Ordinal_1045]
mov byte [ebp - 4], 0
lea ecx, [ebp + 0x10]
call dword [sym.imp.mfc140u.dll_Ordinal_1045]
mov eax, dword [ebp - 0x3c]
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.0055c86d
mov esp, ebp
pop ebp
ret 0x14