Function at 0x41d090
Capabilities:
Create directory
Get common file path

Disassembly:
mov eax, dword [0x483978]
sub esp, 0x830
mov ecx, dword [eax - 0xc]
push ebx
push ebp
push esi
test ecx, ecx
push edi
jl 0x41d0b6
mov dword [esp + 0x34], eax
add eax, 0xfffffff4
push eax
call dword [sym.imp.KERNEL32.dll_InterlockedIncrement]
jmp 0x41d0ca
mov ecx, dword [0x46b21c]
push eax
mov dword [esp + 0x38], ecx
lea ecx, [esp + 0x38]
call fcn.00402e60
mov edx, dword [0x4837e4]
mov ecx, 0x1ff
xor eax, eax
lea edi, [esp + 0x44]
mov dword [esp + 0x40], edx
rep stosd dword es:[edi], eax
lea eax, [esp + 0x40]
push eax
push 0x400
call dword [sym.imp.KERNEL32.dll_GetTempPathW]
mov ecx, dword [0x46b21c]
lea edx, [esp + 0x40]
test edx, edx
mov dword [esp + 0x18], ecx
je 0x41d159
lea eax, [esp + 0x40]
shr eax, 0x10
jne 0x41d121
xor ecx, ecx
lea edx, [esp + 0x40]
mov cx, dx
push ecx
lea ecx, [esp + 0x1c]
call fcn.00402fe0
jmp 0x41d159
lea eax, [esp + 0x40]
push eax
call dword [sym.imp.KERNEL32.dll_lstrlenW]
mov esi, eax
test esi, esi
je 0x41d159
push esi
lea ecx, [esp + 0x1c]
call fcn.00401ce0
test eax, eax
je 0x41d159
mov edi, dword [esp + 0x18]
lea ecx, [esi + esi]
mov edx, ecx
lea esi, [esp + 0x40]
shr ecx, 2
rep movsd dword es:[edi], dword [esi]
mov ecx, edx
and ecx, 3
rep movsb byte es:[edi], byte [esi]
lea eax, [esp + 0x20]
push eax
call fcn.0041c900
mov ecx, dword [0x46b21c]
mov edi, dword [sym.imp.KERNEL32.dll_lstrlenA]
mov edx, 0x46bdd0
add esp, 4
test edx, edx
mov dword [esp + 0x10], ecx
je 0x41d1b5
push edx
call edi
mov esi, eax
test esi, esi
je 0x41d1b5
push esi
lea ecx, [esp + 0x14]
call fcn.00401ce0
test eax, eax
je 0x41d1b5
mov eax, dword [esp + 0x10]
inc esi
push esi
push 0x46bdd0
push eax
call fcn.00402650
add esp, 0xc
lea ecx, [esp + 0x10]
push 0xffffffffffffffff
call fcn.00401f50
mov eax, dword [esp + 0x10]
push eax
mov ecx, dword [eax - 8]
push ecx
lea ecx, [esp + 0x20]
call fcn.004026d0
mov eax, dword [esp + 0x10]
mov ecx, dword [0x46b220]
mov ebx, dword [sym.imp.KERNEL32.dll_InterlockedDecrement]
lea edx, [eax - 0xc]
cmp edx, ecx
je 0x41d1f8
add eax, 0xfffffff4
push eax
call ebx
test eax, eax
jg 0x41d1f8
mov eax, dword [esp + 0x10]
add eax, 0xfffffff4
push eax
call fcn.00459de2
add esp, 4
mov ecx, dword [0x46b21c]
mov edx, 0x46bdd0
test edx, edx
mov dword [esp + 0x10], ecx
je 0x41d241
push edx
call edi
mov esi, eax
test esi, esi
je 0x41d241
push esi
lea ecx, [esp + 0x14]
call fcn.00401ce0
test eax, eax
je 0x41d241
mov eax, dword [esp + 0x10]
inc esi
push esi
push 0x46bdd0
push eax
call fcn.00402650
add esp, 0xc
lea ecx, [esp + 0x10]
push 0xffffffffffffffff
call fcn.00401f50
mov eax, dword [esp + 0x10]
push eax
mov ecx, dword [eax - 8]
push ecx
lea ecx, [esp + 0x28]
call fcn.004026d0
mov eax, dword [esp + 0x10]
mov ecx, dword [0x46b220]
lea edx, [eax - 0xc]
cmp edx, ecx
je 0x41d27e
add eax, 0xfffffff4
push eax
call ebx
test eax, eax
jg 0x41d27e
mov eax, dword [esp + 0x10]
add eax, 0xfffffff4
push eax
call fcn.00459de2
add esp, 4
mov ecx, 0x46d528
test ecx, ecx
je 0x41d5e1
push ecx
call dword [sym.imp.KERNEL32.dll_lstrlenW]
mov ebx, eax
test ebx, ebx
je 0x41d434
mov edx, 0x46c140
test edx, edx
jne 0x41d2ab
mov dword [esp + 0x10], edx
jmp 0x41d2ba
push 0x46c140
call dword [sym.imp.KERNEL32.dll_lstrlenW]
mov dword [esp + 0x10], eax
mov esi, dword [esp + 0x18]
xor edi, edi
mov eax, dword [esi - 8]
lea ebp, [esi + eax*2]
cmp esi, ebp
jae 0x41d434
push 0x46d528
push esi
call fcn.00459e1d
add esp, 8
test eax, eax
je 0x41d2f6
lea esi, [eax + ebx*2]
push 0x46d528
push esi
inc edi
call fcn.00459e1d
add esp, 8
test eax, eax
jne 0x41d2e0
push esi
call dword [sym.imp.KERNEL32.dll_lstrlenW]
lea esi, [esi + eax*2 + 2]
cmp esi, ebp
jb 0x41d2ce
test edi, edi
jle 0x41d434
lea ecx, [esp + 0x18]
call fcn.00401d40
mov ebp, dword [esp + 0x10]
mov esi, dword [esp + 0x18]
sub ebp, ebx
imul ebp, edi
mov eax, dword [esi - 8]
mov dword [esp + 0x24], eax
add ebp, eax
mov eax, dword [esi - 4]
mov dword [esp + 0x1c], ebp
cmp eax, ebp
jl 0x41d33d
cmp dword [esi - 0xc], 1
jle 0x41d37b
lea ecx, [esi - 0xc]
push ebp
mov dword [esp + 0x18], ecx
lea ecx, [esp + 0x1c]
call fcn.00401ce0
test eax, eax
je 0x41d434
mov eax, dword [esp + 0x14]
mov edi, dword [esp + 0x18]
push eax
mov ecx, dword [eax + 4]
shl ecx, 1
mov edx, ecx
shr ecx, 2
rep movsd dword es:[edi], dword [esi]
mov ecx, edx
and ecx, 3
rep movsb byte es:[edi], byte [esi]
call fcn.004028a0
mov esi, dword [esp + 0x18]
mov eax, dword [esi - 8]
lea eax, [esi + eax*2]
cmp esi, eax
mov dword [esp + 0x28], eax
jae 0x41d431
push 0x46d528
push esi
call fcn.00459e1d
mov edi, eax
add esp, 8
test edi, edi
je 0x41d416
mov eax, dword [esp + 0x18]
mov edx, dword [esp + 0x10]
mov ecx, edi
sub ecx, eax
mov eax, dword [esp + 0x24]
sar ecx, 1
sub eax, ecx
lea esi, [edx + edx]
sub eax, ebx
lea ecx, [edi + ebx*2]
lea ebp, [eax + eax]
lea eax, [edi + esi]
push ebp
push ecx
push eax
mov dword [esp + 0x20], eax
call fcn.0045a220
mov ecx, esi
mov esi, 0x46c140
mov edx, ecx
mov eax, dword [esp + 0x1c]
shr ecx, 2
rep movsd dword es:[edi], dword [esi]
mov ecx, edx
sub eax, ebx
and ecx, 3
push 0x46d528
rep movsb byte es:[edi], byte [esi]
mov esi, dword [esp + 0x24]
push esi
mov word [esi + ebp], 0
mov ebp, dword [esp + 0x38]
add ebp, eax
mov dword [esp + 0x38], ebp
call fcn.00459e1d
mov edi, eax
add esp, 0x14
test edi, edi
jne 0x41d3a1
mov ebp, dword [esp + 0x1c]
push esi
call dword [sym.imp.KERNEL32.dll_lstrlenW]
lea esi, [esi + eax*2 + 2]
mov eax, dword [esp + 0x28]
cmp esi, eax
jb 0x41d38d
mov esi, dword [esp + 0x18]
mov dword [esi - 8], ebp
push 0x46d528
call dword [sym.imp.KERNEL32.dll_lstrlenW]
mov ebx, eax
test ebx, ebx
je 0x41d5e1
mov ecx, 0x46c140
test ecx, ecx
jne 0x41d458
mov dword [esp + 0x10], ecx
jmp 0x41d467
push 0x46c140
call dword [sym.imp.KERNEL32.dll_lstrlenW]
mov dword [esp + 0x10], eax
mov esi, dword [esp + 0x20]
xor edi, edi
mov edx, dword [esi - 8]
lea ebp, [esi + edx*2]
cmp esi, ebp
jae 0x41d5e1
push 0x46d528
push esi
call fcn.00459e1d
add esp, 8
test eax, eax
je 0x41d4a3
lea esi, [eax + ebx*2]
push 0x46d528
push esi
inc edi
call fcn.00459e1d
add esp, 8
test eax, eax
jne 0x41d48d
push esi
call dword [sym.imp.KERNEL32.dll_lstrlenW]
lea esi, [esi + eax*2 + 2]
cmp esi, ebp
jb 0x41d47b
test edi, edi
jle 0x41d5e1
lea ecx, [esp + 0x20]
call fcn.00401d40
mov ebp, dword [esp + 0x10]
mov esi, dword [esp + 0x20]
sub ebp, ebx
imul ebp, edi
mov eax, dword [esi - 8]
mov dword [esp + 0x24], eax
add ebp, eax
mov eax, dword [esi - 4]
mov dword [esp + 0x1c], ebp
cmp eax, ebp
jl 0x41d4ea
cmp dword [esi - 0xc], 1
jle 0x41d528
lea eax, [esi - 0xc]
push ebp
lea ecx, [esp + 0x24]
mov dword [esp + 0x18], eax
call fcn.00401ce0
test eax, eax
je 0x41d5e1
mov eax, dword [esp + 0x14]
mov edi, dword [esp + 0x20]
push eax
mov ecx, dword [eax + 4]
shl ecx, 1
mov edx, ecx
shr ecx, 2
rep movsd dword es:[edi], dword [esi]
mov ecx, edx
and ecx, 3
rep movsb byte es:[edi], byte [esi]
call fcn.004028a0
mov esi, dword [esp + 0x20]
mov eax, dword [esi - 8]
lea eax, [esi + eax*2]
cmp esi, eax
mov dword [esp + 0x28], eax
jae 0x41d5de
push 0x46d528
push esi
call fcn.00459e1d
mov edi, eax
add esp, 8
test edi, edi
je 0x41d5c3
mov eax, dword [esp + 0x20]
mov edx, dword [esp + 0x10]
mov ecx, edi
sub ecx, eax
mov eax, dword [esp + 0x24]
sar ecx, 1
sub eax, ecx
lea esi, [edx + edx]
sub eax, ebx
lea ecx, [edi + ebx*2]
lea ebp, [eax + eax]
lea eax, [edi + esi]
push ebp
push ecx
push eax
mov dword [esp + 0x20], eax
call fcn.0045a220
mov ecx, esi
mov esi, 0x46c140
mov edx, ecx
mov eax, dword [esp + 0x1c]
shr ecx, 2
rep movsd dword es:[edi], dword [esi]
mov ecx, edx
sub eax, ebx
and ecx, 3
push 0x46d528
rep movsb byte es:[edi], byte [esi]
mov esi, dword [esp + 0x24]
push esi
mov word [esi + ebp], 0
mov ebp, dword [esp + 0x38]
add ebp, eax
mov dword [esp + 0x38], ebp
call fcn.00459e1d
mov edi, eax
add esp, 0x14
test edi, edi
jne 0x41d54e
mov ebp, dword [esp + 0x1c]
push esi
call dword [sym.imp.KERNEL32.dll_lstrlenW]
lea esi, [esi + eax*2 + 2]
mov eax, dword [esp + 0x28]
cmp esi, eax
jb 0x41d53a
mov esi, dword [esp + 0x20]
mov dword [esi - 8], ebp
lea ecx, [esp + 0x18]
call fcn.00401d40
mov ecx, dword [esp + 0x18]
mov edi, dword [sym.imp.USER32.dll_CharLowerW]
push ecx
call edi
lea ecx, [esp + 0x20]
call fcn.00401d40
mov edx, dword [esp + 0x20]
push edx
call edi
mov eax, dword [0x46b21c]
mov ecx, 0x46b4b4
test ecx, ecx
mov dword [esp + 0x10], eax
je 0x41d653
push ecx
call dword [sym.imp.KERNEL32.dll_lstrlenA]
mov esi, eax
test esi, esi
je 0x41d653
push esi
lea ecx, [esp + 0x14]
call fcn.00401ce0
test eax, eax
je 0x41d653
mov edx, dword [esp + 0x10]
inc esi
push esi
push 0x46b4b4
push edx
call fcn.00402650
add esp, 0xc
lea ecx, [esp + 0x10]
push 0xffffffffffffffff
call fcn.00401f50
mov eax, dword [0x46b21c]
mov ecx, 0x46c140
test ecx, ecx
mov dword [esp + 0x24], eax
jne 0x41d669
xor eax, eax
jmp 0x41d674
push 0x46c140
call dword [sym.imp.KERNEL32.dll_lstrlenW]
mov ecx, dword [esp + 0x34]
push ecx
mov edx, dword [ecx - 8]
lea ecx, [esp + 0x28]
push edx
push 0x46c140
push eax
call fcn.00401eb0
lea eax, [esp + 0x24]
lea ecx, [esp + 0x1c]
push eax
call fcn.00429290
lea ecx, [esp + 0x24]
call fcn.00401e80
mov ecx, dword [0x46b21c]
mov eax, dword [esp + 0x10]
mov dword [esp + 0x3c], ecx
push eax
mov edx, dword [eax - 8]
mov eax, dword [esp + 0x20]
push edx
push eax
mov eax, dword [eax - 8]
lea ecx, [esp + 0x48]
push eax
call fcn.00401eb0
lea ecx, [esp + 0x3c]
push ecx
lea ecx, [esp + 0x2c]
call fcn.00429290
lea ecx, [esp + 0x3c]
call fcn.00401e80
lea edx, [esp + 0x14]
push edx
call fcn.0041c900
add esp, 4
mov esi, eax
mov eax, dword [esp + 0x28]
mov ecx, esi
push eax
mov eax, dword [eax - 8]
push eax
call fcn.004026d0
mov eax, dword [esi]
mov ecx, dword [eax - 0xc]
test ecx, ecx
jl 0x41d717
mov dword [esp + 0x2c], eax
add eax, 0xfffffff4
push eax
call dword [sym.imp.KERNEL32.dll_InterlockedIncrement]
jmp 0x41d72d
mov ecx, dword [0x46b21c]
mov dword [esp + 0x2c], ecx
mov edx, dword [esi]
push edx
lea ecx, [esp + 0x30]
call fcn.00402e60
mov eax, dword [esp + 0x14]
mov edx, dword [0x46b220]
lea ecx, [eax - 0xc]
cmp ecx, edx
je 0x41d760
mov esi, dword [sym.imp.KERNEL32.dll_InterlockedDecrement]
add eax, 0xfffffff4
push eax
call esi
test eax, eax
jg 0x41d766
mov edx, dword [esp + 0x14]
add edx, 0xfffffff4
push edx
call fcn.00459de2
add esp, 4
jmp 0x41d766
mov esi, dword [sym.imp.KERNEL32.dll_InterlockedDecrement]
mov eax, dword [esp + 0x28]
mov edx, dword [0x46b220]
lea ecx, [eax - 0xc]
cmp ecx, edx
je 0x41d791
add eax, 0xfffffff4
push eax
call esi
test eax, eax
jg 0x41d791
mov edx, dword [esp + 0x28]
add edx, 0xfffffff4
push edx
call fcn.00459de2
add esp, 4
mov eax, dword [esp + 0x1c]
mov edx, dword [0x46b220]
lea ecx, [eax - 0xc]
cmp ecx, edx
je 0x41d7bc
add eax, 0xfffffff4
push eax
call esi
test eax, eax
jg 0x41d7bc
mov edx, dword [esp + 0x1c]
add edx, 0xfffffff4
push edx
call fcn.00459de2
add esp, 4
mov eax, dword [esp + 0x10]
mov edx, dword [0x46b220]
lea ecx, [eax - 0xc]
cmp ecx, edx
je 0x41d7e7
add eax, 0xfffffff4
push eax
call esi
test eax, eax
jg 0x41d7e7
mov edx, dword [esp + 0x10]
add edx, 0xfffffff4
push edx
call fcn.00459de2
add esp, 4
lea eax, [esp + 0x2c]
mov ecx, 0x4ab7a0
push eax
call fcn.004082c0
lea ecx, [esp + 0x30]
push ecx
call fcn.0041cca0
add esp, 4
lea ecx, [esp + 0x30]
call fcn.00401d40
mov edx, dword [esp + 0x30]
push edx
call edi
push 0x46d524
lea ecx, [esp + 0x18]
call fcn.00402a90
mov eax, dword [eax]
push 0
push eax
lea ecx, [esp + 0x38]
call fcn.004075c0
test eax, eax
lea ecx, [esp + 0x14]
setg bl
call fcn.00401e80
test bl, bl
mov esi, 1
je 0x41d84c
mov dword [0x4ab7a4], esi
push str._portable
lea ecx, [esp + 0x18]
call fcn.00402a90
mov eax, dword [eax]
push 0
push eax
lea ecx, [esp + 0x38]
call fcn.004075c0
test eax, eax
lea ecx, [esp + 0x14]
setg bl
call fcn.00401e80
test bl, bl
je 0x41d880
mov dword [0x4ab7a4], esi
push str._port
lea ecx, [esp + 0x18]
call fcn.00402a90
mov eax, dword [eax]
push 0
push eax
lea ecx, [esp + 0x38]
call fcn.004075c0
test eax, eax
lea ecx, [esp + 0x14]
setg bl
call fcn.00401e80
test bl, bl
je 0x41d8b6
mov dword [0x4ab7a4], esi
jmp 0x41d8bf
mov eax, dword [0x4ab7a4]
test eax, eax
je 0x41d8d1
push 0x46d50c
push str.TestIni
call fcn.0041ddc0
add esp, 8
mov eax, dword [esp + 0x18]
push 0
push eax
lea ecx, [esp + 0x28]
call fcn.004075c0
test eax, eax
je 0x41d97e
push ecx
lea edx, [esp + 0x30]
mov ecx, esp
push edx
call fcn.00429290
call fcn.0041cbc0
add esp, 4
cmp eax, esi
jne 0x41d97e
push str.eeee
lea ecx, [esp + 0x14]
call fcn.004028d0
push 0
lea ecx, [esp + 0x14]
call fcn.00402f30
push eax
push str.TestIni
call fcn.0041ddc0
add esp, 8
lea ecx, [esp + 0x10]
push 0x4837e0
call fcn.00402bd0
push 0x6f
lea ecx, [esp + 0x14]
call fcn.00402f30
push eax
push str.TestIni
call fcn.0041dd80
add esp, 8
lea ecx, [esp + 0x10]
push 0xffffffffffffffff
call fcn.00401f50
mov eax, dword [esp + 0x10]
push str.eeee
push eax
call fcn.0045a1b7
add esp, 8
lea ecx, [esp + 0x10]
test eax, eax
je 0x41dba2
call fcn.00401e80
mov ecx, dword [0x46b21c]
push 0
mov dword [esp + 0x14], ecx
push 0x1a
push 0x400
lea ecx, [esp + 0x1c]
call fcn.00402f30
push eax
push 0
call dword [sym.imp.SHELL32.dll_SHGetSpecialFolderPathW]
push 0xffffffffffffffff
lea ecx, [esp + 0x14]
call fcn.00401f50
push 0x46bdd0
lea ecx, [esp + 0x18]
call fcn.00402a90
lea edx, [esp + 0x34]
lea eax, [esp + 0x14]
push edx
lea ecx, [esp + 0x20]
push eax
push ecx
call fcn.00402d10
mov eax, dword [eax]
lea ecx, [esp + 0x10]
push eax
mov edx, dword [eax - 8]
push edx
call fcn.004026d0
lea ecx, [esp + 0x1c]
call fcn.00401e80
lea ecx, [esp + 0x14]
call fcn.00401e80
mov eax, dword [esp + 0x10]
push 0
push eax
call dword [sym.imp.KERNEL32.dll_CreateDirectoryW]
push 0x46b4b4
lea ecx, [esp + 0x18]
call fcn.00402a90
lea ecx, [esp + 0x14]
lea edx, [esp + 0x34]
push ecx
push edx
lea eax, [esp + 0x18]
push 0x46c140
lea ecx, [esp + 0x48]
push eax
push ecx
call fcn.00403460
lea edx, [esp + 0x30]
push eax
push edx
call fcn.00402d10
push eax
lea eax, [esp + 0x24]
push eax
call fcn.00402d10
push eax
lea ecx, [esp + 0x30]
call fcn.004082c0
lea ecx, [esp + 0x1c]
call fcn.00401e80
lea ecx, [esp + 0x28]
call fcn.00401e80
lea ecx, [esp + 0x3c]
call fcn.00401e80
lea ecx, [esp + 0x14]
call fcn.00401e80
lea ecx, [esp + 0x10]
call fcn.00401e80
lea ecx, [esp + 0x2c]
push ecx
mov ecx, 0x4ab7a0
call fcn.004082c0
push 0x4ab7a8
call dword [sym.imp.KERNEL32.dll_lstrlenW]
cmp eax, 3
jle 0x41daa6
push 0x4ab7a8
mov ecx, 0x4ab7a0
call fcn.00402e60
push str.eeee
lea ecx, [esp + 0x3c]
call fcn.004028d0
push 0
lea ecx, [esp + 0x3c]
call fcn.00402f30
push eax
push str.TestIni
call fcn.0041ddc0
add esp, 8
lea ecx, [esp + 0x38]
push 0x4837e0
call fcn.00402bd0
push 0x6f
lea ecx, [esp + 0x3c]
call fcn.00402f30
push eax
push str.TestIni
call fcn.0041dd80
add esp, 8
lea ecx, [esp + 0x38]
push 0xffffffffffffffff
call fcn.00401f50
push ecx
mov ecx, esp
push 0x4ab7a0
call fcn.00429290
call fcn.0041ce80
add esp, 4
test eax, eax
jne 0x41db5f
mov edx, dword [0x46b21c]
lea eax, [esp + 0x1c]
push eax
push ecx
mov ecx, esp
push 0x4ab7a0
mov dword [esp + 0x28], edx
call fcn.00429290
call fcn.00434bd0
add esp, 8
lea ecx, [esp + 0x1c]
push ecx
push ecx
mov ecx, esp
push 0x4ab7a0
call fcn.00429290
call fcn.0041cf20
add esp, 8
lea ecx, [esp + 0x1c]
call fcn.00401e80
lea ecx, [esp + 0x38]
call fcn.00401e80
lea ecx, [esp + 0x30]
call fcn.00401e80
lea ecx, [esp + 0x2c]
call fcn.00401e80
lea ecx, [esp + 0x20]
call fcn.00401e80
lea ecx, [esp + 0x18]
call fcn.00401e80
lea ecx, [esp + 0x34]
call fcn.00401e80
mov eax, esi
pop edi
pop esi
pop ebp
pop ebx
add esp, 0x830
ret
call fcn.00401e80
jmp 0x41daa6