Function at 0x40bf80
Capabilities:
Create directory
Get common file path
Terminate process

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x449879
mov eax, dword fs:[0]
push eax
sub esp, 0x194
mov eax, dword [0x462014]
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
cmp byte [0x4664dd], 1
jne 0x40c541
mov dword [ebp - 0x138], 0
mov dword [ebp - 0x134], 0xf
mov byte [ebp - 0x148], 0
mov dword [ebp - 4], 0
mov dword [ebp - 0x120], 0
mov dword [ebp - 0x11c], 0xf
mov byte [ebp - 0x130], 0
mov byte [ebp - 4], 1
call fcn.00406d40
cmp eax, 0x11
je 0x40c1a5
cmp eax, 0x10
je 0x40c1a5
cmp eax, 2
je 0x40c1a5
sub esp, 0x18
mov ecx, esp
push 0x463238
call fcn.00417ed0
lea ecx, [ebp - 0x19c]
call fcn.00405370
add esp, 0x18
mov esi, eax
lea eax, [ebp - 0x118]
mov byte [ebp - 4], 4
push eax
push 0x104
call dword [sym.imp.KERNEL32.dll_GetTempPathA]
lea ecx, [ebp - 0x118]
mov dword [ebp - 0x154], 0
mov dword [ebp - 0x150], 0xf
lea edx, [ecx + 1]
mov byte [ebp - 0x164], 0
mov al, byte [ecx]
inc ecx
test al, al
jne 0x40c075
sub ecx, edx
lea eax, [ebp - 0x118]
push ecx
push eax
lea ecx, [ebp - 0x164]
call fcn.00418590
push esi
lea edx, [ebp - 0x164]
mov byte [ebp - 4], 5
lea ecx, [ebp - 0x180]
call fcn.004186f0
add esp, 4
lea ecx, [ebp - 0x148]
push eax
call fcn.00417e10
mov edx, dword [ebp - 0x16c]
cmp edx, 0x10
jb 0x40c0f0
mov ecx, dword [ebp - 0x180]
inc edx
mov eax, ecx
cmp edx, 0x1000
jb 0x40c0e6
mov ecx, dword [ecx - 4]
add edx, 0x23
sub eax, ecx
add eax, 0xfffffffc
cmp eax, 0x1f
ja 0x40c55d
push edx
push ecx
call fcn.0041d768
add esp, 8
mov byte [ebp - 4], 4
mov edx, dword [ebp - 0x150]
mov dword [ebp - 0x170], 0
mov dword [ebp - 0x16c], 0xf
mov byte [ebp - 0x180], 0
cmp edx, 0x10
jb 0x40c149
mov ecx, dword [ebp - 0x164]
inc edx
mov eax, ecx
cmp edx, 0x1000
jb 0x40c13f
mov ecx, dword [ecx - 4]
add edx, 0x23
sub eax, ecx
add eax, 0xfffffffc
cmp eax, 0x1f
ja 0x40c55d
push edx
push ecx
call fcn.0041d768
add esp, 8
mov byte [ebp - 4], 1
mov edx, dword [ebp - 0x188]
mov dword [ebp - 0x154], 0
mov dword [ebp - 0x150], 0xf
mov byte [ebp - 0x164], 0
cmp edx, 0x10
jb 0x40c291
mov ecx, dword [ebp - 0x19c]
inc edx
mov eax, ecx
cmp edx, 0x1000
jb 0x40c287
mov ecx, dword [ecx - 4]
add edx, 0x23
sub eax, ecx
add eax, 0xfffffffc
cmp eax, 0x1f
ja 0x40c55d
jmp 0x40c287
sub esp, 0x18
mov ecx, esp
push 0x463238
call fcn.00417ed0
lea ecx, [ebp - 0x19c]
call fcn.00405370
mov esi, eax
lea ecx, [ebp - 0x164]
mov byte [ebp - 4], 2
call fcn.00408240
push esi
mov edx, eax
mov byte [ebp - 4], 3
lea ecx, [ebp - 0x180]
call fcn.004186f0
add esp, 0x1c
lea ecx, [ebp - 0x148]
push eax
call fcn.00417e10
mov edx, dword [ebp - 0x16c]
cmp edx, 0x10
jb 0x40c22b
mov ecx, dword [ebp - 0x180]
inc edx
mov eax, ecx
cmp edx, 0x1000
jb 0x40c221
mov ecx, dword [ecx - 4]
add edx, 0x23
sub eax, ecx
add eax, 0xfffffffc
cmp eax, 0x1f
ja 0x40c55d
push edx
push ecx
call fcn.0041d768
add esp, 8
mov byte [ebp - 4], 2
mov edx, dword [ebp - 0x150]
mov dword [ebp - 0x170], 0
mov dword [ebp - 0x16c], 0xf
mov byte [ebp - 0x180], 0
cmp edx, 0x10
jb 0x40c149
mov ecx, dword [ebp - 0x164]
inc edx
mov eax, ecx
cmp edx, 0x1000
jb 0x40c13f
mov ecx, dword [ecx - 4]
add edx, 0x23
sub eax, ecx
add eax, 0xfffffffc
cmp eax, 0x1f
ja 0x40c55d
jmp 0x40c13f
push edx
push ecx
call fcn.0041d768
add esp, 8
sub esp, 0x18
mov ecx, esp
push 0x462de8
call fcn.00417ed0
lea ecx, [ebp - 0x19c]
call fcn.00405370
mov esi, eax
push 0x458e0c
lea edx, [ebp - 0x148]
mov byte [ebp - 4], 6
lea ecx, [ebp - 0x164]
call fcn.00418a80
add esp, 0x1c
push esi
mov edx, eax
mov byte [ebp - 4], 7
lea ecx, [ebp - 0x180]
call fcn.004186f0
add esp, 4
lea ecx, [ebp - 0x130]
push eax
call fcn.00417e10
mov edx, dword [ebp - 0x16c]
cmp edx, 0x10
jb 0x40c325
mov ecx, dword [ebp - 0x180]
inc edx
mov eax, ecx
cmp edx, 0x1000
jb 0x40c31b
mov ecx, dword [ecx - 4]
add edx, 0x23
sub eax, ecx
add eax, 0xfffffffc
cmp eax, 0x1f
ja 0x40c55d
push edx
push ecx
call fcn.0041d768
add esp, 8
mov byte [ebp - 4], 6
mov edx, dword [ebp - 0x150]
mov dword [ebp - 0x170], 0
mov dword [ebp - 0x16c], 0xf
mov byte [ebp - 0x180], 0
cmp edx, 0x10
jb 0x40c37e
mov ecx, dword [ebp - 0x164]
inc edx
mov eax, ecx
cmp edx, 0x1000
jb 0x40c374
mov ecx, dword [ecx - 4]
add edx, 0x23
sub eax, ecx
add eax, 0xfffffffc
cmp eax, 0x1f
ja 0x40c55d
push edx
push ecx
call fcn.0041d768
add esp, 8
mov byte [ebp - 4], 1
mov edx, dword [ebp - 0x188]
mov dword [ebp - 0x154], 0
mov dword [ebp - 0x150], 0xf
mov byte [ebp - 0x164], 0
cmp edx, 0x10
jb 0x40c3d7
mov ecx, dword [ebp - 0x19c]
inc edx
mov eax, ecx
cmp edx, 0x1000
jb 0x40c3cd
mov ecx, dword [ecx - 4]
add edx, 0x23
sub eax, ecx
add eax, 0xfffffffc
cmp eax, 0x1f
ja 0x40c55d
push edx
push ecx
call fcn.0041d768
add esp, 8
push 0x104
lea eax, [ebp - 0x118]
push eax
push 0
call dword [sym.imp.KERNEL32.dll_GetModuleFileNameA]
lea ecx, [ebp - 0x118]
mov dword [ebp - 0x154], 0
mov dword [ebp - 0x150], 0xf
lea edx, [ecx + 1]
mov byte [ebp - 0x164], 0
nop
mov al, byte [ecx]
inc ecx
test al, al
jne 0x40c410
sub ecx, edx
lea eax, [ebp - 0x118]
push ecx
push eax
lea ecx, [ebp - 0x164]
call fcn.00418590
cmp dword [ebp - 0x150], 0x10
lea eax, [ebp - 0x164]
mov edi, dword [ebp - 0x164]
lea ecx, [ebp - 0x130]
mov ebx, dword [ebp - 0x11c]
cmovae eax, edi
push dword [ebp - 0x154]
mov esi, dword [ebp - 0x130]
cmp ebx, 0x10
mov edx, dword [ebp - 0x120]
cmovae ecx, esi
push eax
call fcn.00419870
mov byte [ebp - 0x149], al
add esp, 8
mov eax, dword [ebp - 0x150]
cmp eax, 0x10
jb 0x40c4b7
lea ecx, [eax + 1]
mov eax, edi
cmp ecx, 0x1000
jb 0x40c4a1
mov edi, dword [edi - 4]
add ecx, 0x23
sub eax, edi
add eax, 0xfffffffc
cmp eax, 0x1f
ja 0x40c55d
push ecx
push edi
call fcn.0041d768
mov ebx, dword [ebp - 0x11c]
add esp, 8
mov esi, dword [ebp - 0x130]
cmp byte [ebp - 0x149], 0
je 0x40c562
cmp ebx, 0x10
jb 0x40c4f0
lea ecx, [ebx + 1]
mov eax, esi
cmp ecx, 0x1000
jb 0x40c4e6
mov esi, dword [esi - 4]
add ecx, 0x23
sub eax, esi
add eax, 0xfffffffc
cmp eax, 0x1f
ja 0x40c55d
push ecx
push esi
call fcn.0041d768
add esp, 8
mov edx, dword [ebp - 0x134]
mov dword [ebp - 0x120], 0
mov dword [ebp - 0x11c], 0xf
mov byte [ebp - 0x130], 0
cmp edx, 0x10
jb 0x40c541
mov ecx, dword [ebp - 0x148]
inc edx
mov eax, ecx
cmp edx, 0x1000
jb 0x40c537
mov ecx, dword [ecx - 4]
add edx, 0x23
sub eax, ecx
add eax, 0xfffffffc
cmp eax, 0x1f
ja 0x40c55d
push edx
push ecx
call fcn.0041d768
add esp, 8
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.0041d0f1
mov esp, ebp
pop ebp
ret
call fcn.00436d37
cmp ebx, 0x10
lea eax, [ebp - 0x130]
push 0x458e00
cmovae eax, esi
push eax
call fcn.004367f6
add esp, 8
test eax, eax
je 0x40c58e
push eax
call fcn.00436884
add esp, 4
jmp 0x40c64f
lea ecx, [ebp - 0x148]
call fcn.00407720
test al, al
jne 0x40c5b1
push 0
lea ecx, [ebp - 0x148]
call fcn.00417d50
push eax
call dword [sym.imp.KERNEL32.dll_CreateDirectoryA]
lea ecx, [ebp - 0x148]
call fcn.00407720
test al, al
je 0x40c5f1
sub esp, 0x18
lea eax, [ebp - 0x130]
mov ecx, esp
mov dword [ebp - 0x168], esp
push eax
call fcn.00417ed0
sub esp, 0x18
mov byte [ebp - 4], 8
mov ecx, esp
call fcn.004083c0
mov byte [ebp - 4], 1
call fcn.0040b2c0
add esp, 0x30
lea ecx, [ebp - 0x130]
call fcn.004076f0
test al, al
je 0x40c64f
sub esp, 0x18
mov ecx, esp
mov dword [ebp - 0x184], esp
push 0x45815b
call fcn.00417e90
sub esp, 0x18
mov byte [ebp - 4], 9
lea eax, [ebp - 0x130]
mov dword [ebp - 0x168], esp
mov ecx, esp
push eax
call fcn.00417ed0
sub esp, 0x18
mov byte [ebp - 4], 0xa
mov ecx, esp
push str.0123456789
call fcn.00417e90
mov byte [ebp - 4], 1
call fcn.004062c0
add esp, 0x48
push 0
call fcn.00436729
int3