Function at 0x407610
Capabilities:
Create directory
Create process on windows
Delete file
Get common file path

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x41c689
mov eax, dword fs:[0]
push eax
mov eax, 0x12c98
call fcn.0040fad0
mov eax, dword [0x425008]
xor eax, ebp
mov dword [ebp - 0x10], eax
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov byte [ebp - 0x114], 0
push 0x103
push 0
lea eax, [ebp - 0x113]
push eax
call fcn.0040ae60
add esp, 0xc
mov byte [ebp - 0x218], 0
push 0x103
push 0
lea ecx, [ebp - 0x217]
push ecx
call fcn.0040ae60
add esp, 0xc
push 0
mov edx, dword [ebp + 8]
push edx
call fcn.0040ce05
add esp, 8
test eax, eax
je 0x40769a
push 0x4264e8
mov eax, dword [ebp + 8]
push eax
call dword [sym.imp.KERNEL32.dll_CreateDirectoryA]
push 0x103
lea ecx, [ebp - 0x218]
push ecx
call fcn.004038d0
add esp, 8
lea edx, [ebp - 0x114]
push edx
push 0
push 0x42282c
lea eax, [ebp - 0x218]
push eax
call dword [sym.imp.KERNEL32.dll_GetTempFileNameA]
mov ecx, dword [ebp + 8]
push ecx
lea ecx, [ebp - 0x2a8]
call fcn.00406280
mov dword [ebp - 4], 0
lea ecx, [ebp - 0x2a8]
call fcn.00404820
sub eax, 1
push eax
lea ecx, [ebp - 0x2a8]
call fcn.004062c0
movsx edx, byte [eax]
cmp edx, 0x5c
je 0x407711
push 0x422884
lea ecx, [ebp - 0x2a8]
call fcn.004047d0
lea ecx, [ebp - 0x12ba8]
call fcn.004012b0
mov byte [ebp - 4], 1
lea eax, [ebp - 0x114]
push eax
mov ecx, dword [ebp + 0xc]
push ecx
lea ecx, [ebp - 0x12ba8]
call fcn.00401fc0
mov dword [ebp - 0x12bc8], 0
lea ecx, [ebp - 0x12bb4]
call fcn.00406e70
mov byte [ebp - 4], 2
push 0x4000100
push 0x4264e8
push 3
push 0
push 0x80000000
lea edx, [ebp - 0x114]
push edx
lea ecx, [ebp - 0x12bb4]
call fcn.00406eb0
test eax, eax
je 0x4082c2
push 0
push 2
push 0xfffffffffffffffc
lea ecx, [ebp - 0x12bb4]
call fcn.00407030
call dword [sym.imp.KERNEL32.dll_GetLastError]
test eax, eax
je 0x4077de
mov eax, dword [ebp - 0x12bc8]
mov dword [ebp - 0x12c30], eax
mov byte [ebp - 4], 1
lea ecx, [ebp - 0x12bb4]
call fcn.00406e90
mov byte [ebp - 4], 0
lea ecx, [ebp - 0x12ba8]
call fcn.004013e0
mov dword [ebp - 4], 0xffffffff
lea ecx, [ebp - 0x2a8]
call fcn.00406430
mov eax, dword [ebp - 0x12c30]
jmp 0x40836b
mov dword [ebp - 0x12bc0], 0
push 4
lea ecx, [ebp - 0x12bc0]
push ecx
lea ecx, [ebp - 0x12bb4]
call fcn.00406f90
mov dword [ebp - 0x12bd0], eax
cmp dword [ebp - 0x12bd0], 4
jne 0x407826
cmp dword [ebp - 0x12bd0], 0xffffffff
je 0x407826
cmp dword [ebp - 0x12bc0], 0
je 0x407826
cmp dword [ebp - 0x12bc0], 0xffffffff
jne 0x40786d
mov edx, dword [ebp - 0x12bc8]
mov dword [ebp - 0x12c1c], edx
mov byte [ebp - 4], 1
lea ecx, [ebp - 0x12bb4]
call fcn.00406e90
mov byte [ebp - 4], 0
lea ecx, [ebp - 0x12ba8]
call fcn.004013e0
mov dword [ebp - 4], 0xffffffff
lea ecx, [ebp - 0x2a8]
call fcn.00406430
mov eax, dword [ebp - 0x12c1c]
jmp 0x40836b
mov eax, dword [ebp - 0x12bc0]
push eax
call fcn.00409e37
add esp, 4
mov dword [ebp - 0x12c34], eax
mov ecx, dword [ebp - 0x12c34]
mov dword [ebp - 0x12bac], ecx
cmp dword [ebp - 0x12bac], 0
jne 0x4078de
mov edx, dword [ebp - 0x12bc8]
mov dword [ebp - 0x12c24], edx
mov byte [ebp - 4], 1
lea ecx, [ebp - 0x12bb4]
call fcn.00406e90
mov byte [ebp - 4], 0
lea ecx, [ebp - 0x12ba8]
call fcn.004013e0
mov dword [ebp - 4], 0xffffffff
lea ecx, [ebp - 0x2a8]
call fcn.00406430
mov eax, dword [ebp - 0x12c24]
jmp 0x40836b
mov eax, dword [ebp - 0x12bc0]
push eax
push 0
mov ecx, dword [ebp - 0x12bac]
push ecx
call fcn.0040ae60
add esp, 0xc
push 0
push 2
mov edx, dword [ebp - 0x12bc0]
neg edx
push edx
lea ecx, [ebp - 0x12bb4]
call fcn.00407030
call dword [sym.imp.KERNEL32.dll_GetLastError]
test eax, eax
je 0x40798d
cmp dword [ebp - 0x12bac], 0
je 0x407946
mov eax, dword [ebp - 0x12bac]
mov dword [ebp - 0x12c44], eax
mov ecx, dword [ebp - 0x12c44]
push ecx
call fcn.0040d278
add esp, 4
mov dword [ebp - 0x12bac], 0
mov edx, dword [ebp - 0x12bc8]
mov dword [ebp - 0x12c04], edx
mov byte [ebp - 4], 1
lea ecx, [ebp - 0x12bb4]
call fcn.00406e90
mov byte [ebp - 4], 0
lea ecx, [ebp - 0x12ba8]
call fcn.004013e0
mov dword [ebp - 4], 0xffffffff
lea ecx, [ebp - 0x2a8]
call fcn.00406430
mov eax, dword [ebp - 0x12c04]
jmp 0x40836b
mov eax, dword [ebp - 0x12bc0]
push eax
mov ecx, dword [ebp - 0x12bac]
push ecx
lea ecx, [ebp - 0x12bb4]
call fcn.00406f90
mov dword [ebp - 0x12bd0], eax
cmp dword [ebp - 0x12bd0], 0
je 0x4079be
cmp dword [ebp - 0x12bd0], 0xffffffff
jne 0x407a05
mov edx, dword [ebp - 0x12bc8]
mov dword [ebp - 0x12c08], edx
mov byte [ebp - 4], 1
lea ecx, [ebp - 0x12bb4]
call fcn.00406e90
mov byte [ebp - 4], 0
lea ecx, [ebp - 0x12ba8]
call fcn.004013e0
mov dword [ebp - 4], 0xffffffff
lea ecx, [ebp - 0x2a8]
call fcn.00406430
mov eax, dword [ebp - 0x12c08]
jmp 0x40836b
push 0xc
push 0
lea eax, [ebp - 0x12be4]
push eax
call fcn.0040ae60
add esp, 0xc
lea ecx, [ebp - 0x12be4]
push ecx
mov edx, dword [ebp - 0x12bc0]
push edx
mov eax, dword [ebp - 0x12bac]
push eax
call fcn.00407450
add esp, 0xc
cmp dword [ebp - 0x12bac], 0
je 0x407a63
mov ecx, dword [ebp - 0x12bac]
mov dword [ebp - 0x12c10], ecx
mov edx, dword [ebp - 0x12c10]
push edx
call fcn.0040d278
add esp, 4
mov dword [ebp - 0x12bac], 0
lea ecx, [ebp - 0x12bf4]
call fcn.00406cb0
mov byte [ebp - 4], 3
push 0x104
push 0
push 0x4274d8
call fcn.0040ae60
add esp, 0xc
mov dword [ebp - 0x12bb8], 0
push fcn.00406430
push fcn.00405cf0
push 4
push 0x18
lea eax, [ebp - 0x278]
push eax
call fcn.0040d518
mov byte [ebp - 4], 4
mov dword [ebp - 0x12c4c], 0
mov dword [ebp - 0x12bd4], 0
mov ecx, dword [ebp - 0x12bd4]
mov dword [ebp - 0x12c18], ecx
mov edx, dword [ebp - 0x12bd4]
add edx, 1
mov dword [ebp - 0x12bd4], edx
cmp dword [ebp - 0x12c18], 0
je 0x407b57
push 0x42269b
imul eax, dword [ebp - 0x12bb8], 0x18
lea ecx, [ebp + eax - 0x278]
call fcn.004047b0
mov ecx, dword [ebp - 0x12bd4]
mov dword [ebp - 0x12bfc], ecx
cmp dword [ebp - 0x12bfc], 4
jae 0x407b15
jmp 0x407b1a
call fcn.0040cf9d
mov edx, dword [ebp - 0x12bfc]
mov byte [ebp + edx - 0x12bd8], 0
mov eax, dword [ebp - 0x12bd4]
mov dword [ebp - 0x12bf8], eax
cmp dword [ebp - 0x12bf8], 4
jae 0x407b3f
jmp 0x407b44
call fcn.0040cf9d
mov ecx, dword [ebp - 0x12bf8]
mov byte [ebp + ecx - 0x12be8], 0
jmp 0x407ac2
mov edx, 0x18
imul eax, edx, 0
lea ecx, [ebp + eax - 0x278]
push ecx
call fcn.004030e0
add esp, 4
mov edx, 1
imul ecx, edx, 0
mov byte [ebp + ecx - 0x12bd8], al
mov edx, 0x18
shl edx, 0
lea eax, [ebp + edx - 0x278]
push eax
call fcn.00404400
add esp, 4
mov ecx, 1
shl ecx, 0
mov byte [ebp + ecx - 0x12bd8], al
push 0
mov edx, 0x18
shl edx, 1
lea eax, [ebp + edx - 0x278]
push eax
call fcn.00403de0
add esp, 8
mov ecx, 1
shl ecx, 1
mov byte [ebp + ecx - 0x12bd8], al
push 1
mov edx, 0x18
imul eax, edx, 3
lea ecx, [ebp + eax - 0x278]
push ecx
call fcn.00403de0
add esp, 8
mov edx, 1
imul ecx, edx, 3
mov byte [ebp + ecx - 0x12bd8], al
mov edx, dword [ebp - 0x12be0]
sub edx, 1
mov dword [ebp - 0x12bb8], edx
jmp 0x407c15
mov eax, dword [ebp - 0x12bb8]
sub eax, 1
mov dword [ebp - 0x12bb8], eax
cmp dword [ebp - 0x12bb8], 0
jl 0x408276
mov ecx, dword [ebp - 0x12bb8]
shl ecx, 4
mov edx, dword [ebp - 0x12bdc]
mov eax, dword [edx + ecx + 4]
mov dword [ebp - 0x12bc4], eax
cmp dword [ebp - 0x12bc4], 0
jne 0x407c46
jmp 0x407c06
mov ecx, dword [ebp - 0x12bc4]
push ecx
call fcn.00409e37
add esp, 4
mov dword [ebp - 0x12c20], eax
mov edx, dword [ebp - 0x12c20]
mov dword [ebp - 0x12bac], edx
mov eax, dword [ebp - 0x12bc4]
push eax
push 0
mov ecx, dword [ebp - 0x12bac]
push ecx
call fcn.0040ae60
add esp, 0xc
push 0
push 0
mov edx, dword [ebp - 0x12bb8]
shl edx, 4
mov eax, dword [ebp - 0x12bdc]
mov ecx, dword [eax + edx]
push ecx
lea ecx, [ebp - 0x12bb4]
call fcn.00407030
mov edx, dword [ebp - 0x12bc4]
push edx
mov eax, dword [ebp - 0x12bac]
push eax
lea ecx, [ebp - 0x12bb4]
call fcn.00406f90
cmp eax, dword [ebp - 0x12bc4]
jne 0x4081ee
mov ecx, dword [ebp - 0x12bb8]
shl ecx, 4
mov edx, dword [ebp - 0x12bdc]
mov eax, dword [edx + ecx + 0xc]
push eax
lea ecx, [ebp - 0x290]
call fcn.00406280
mov byte [ebp - 4], 5
lea ecx, [ebp - 0x290]
push ecx
call fcn.00408f60
add esp, 4
lea ecx, [ebp - 0x290]
call fcn.004062e0
push eax
lea ecx, [ebp - 0x2a8]
call fcn.004062e0
push eax
call fcn.00408d60
add esp, 8
lea edx, [ebp - 0x290]
push edx
lea eax, [ebp - 0x2a8]
push eax
lea ecx, [ebp - 0x308]
push ecx
call fcn.00405200
add esp, 0xc
mov byte [ebp - 4], 6
lea ecx, [ebp - 0x290]
call fcn.00409690
push eax
call dword [sym.imp.USER32.dll_CharLowerA]
mov byte [ebp - 0x12bb9], 0
lea edx, [ebp - 0x290]
push edx
push 0x4279e0
call fcn.00409790
add esp, 8
movzx eax, al
test eax, eax
je 0x407e2b
mov ecx, dword [ebp - 0x12bac]
push ecx
call fcn.00409050
add esp, 4
call fcn.00409350
cmp dword [ebp - 0x12bac], 0
je 0x407db3
mov edx, dword [ebp - 0x12bac]
mov dword [ebp - 0x12c28], edx
mov eax, dword [ebp - 0x12c28]
push eax
call fcn.0040d278
add esp, 4
mov dword [ebp - 0x12bac], 0
mov ecx, dword [ebp - 0x12bb8]
shl ecx, 4
mov edx, dword [ebp - 0x12bdc]
cmp dword [edx + ecx + 0xc], 0
je 0x407e08
mov eax, dword [ebp - 0x12bb8]
shl eax, 4
mov ecx, dword [ebp - 0x12bdc]
mov edx, dword [ecx + eax + 0xc]
mov dword [ebp - 0x12c00], edx
mov eax, dword [ebp - 0x12c00]
push eax
call fcn.0040d278
add esp, 4
mov ecx, dword [ebp - 0x12bb8]
shl ecx, 4
mov edx, dword [ebp - 0x12bdc]
mov dword [edx + ecx + 0xc], 0
mov byte [ebp - 4], 5
lea ecx, [ebp - 0x308]
call fcn.00406430
mov byte [ebp - 4], 4
lea ecx, [ebp - 0x290]
call fcn.00406430
jmp 0x407c06
push 0
push 0x422888
lea ecx, [ebp - 0x290]
call fcn.004096b0
mov dword [ebp - 0x12c38], eax
cmp dword [ebp - 0x12c38], 0
jl 0x407e53
mov byte [ebp - 0x12bb9], 1
movzx eax, byte [ebp - 0x12bb9]
test eax, eax
jne 0x407f89
push 0x427a28
lea ecx, [ebp - 0x2c0]
call fcn.00406c50
mov byte [ebp - 4], 7
lea ecx, [ebp - 0x290]
call fcn.004062e0
push eax
lea ecx, [ebp - 0x2c0]
call fcn.004062e0
push eax
call fcn.00408d60
add esp, 8
lea ecx, [ebp - 0x2c0]
push ecx
call fcn.00403770
add esp, 4
lea edx, [ebp - 0x290]
push edx
lea eax, [ebp - 0x2c0]
push eax
lea ecx, [ebp - 0x350]
push ecx
call fcn.00405200
add esp, 0xc
mov dword [ebp - 0x12c40], eax
mov edx, dword [ebp - 0x12c40]
push edx
lea ecx, [ebp - 0x2c0]
call fcn.00404700
lea ecx, [ebp - 0x350]
call fcn.00406430
push 0
lea ecx, [ebp - 0x2c0]
call fcn.004062e0
push eax
call fcn.0040ce05
add esp, 8
test eax, eax
jne 0x407f11
lea ecx, [ebp - 0x2c0]
call fcn.004062e0
push eax
call dword [sym.imp.KERNEL32.dll_DeleteFileA]
push 0x422894
lea ecx, [ebp - 0x2c0]
call fcn.004062e0
push eax
lea ecx, [ebp - 0x12bf4]
call fcn.00406d00
test eax, eax
je 0x407f57
push 1
mov eax, dword [ebp - 0x12bc4]
push eax
mov ecx, dword [ebp - 0x12bac]
push ecx
lea ecx, [ebp - 0x12bf4]
call fcn.00406dd0
lea ecx, [ebp - 0x12bf4]
call fcn.00406d80
mov byte [ebp - 4], 6
lea ecx, [ebp - 0x2c0]
call fcn.00406430
mov byte [ebp - 4], 5
lea ecx, [ebp - 0x308]
call fcn.00406430
mov byte [ebp - 4], 4
lea ecx, [ebp - 0x290]
call fcn.00406430
jmp 0x407c06
mov dword [ebp - 0x12bcc], 0
jmp 0x407fa4
mov edx, dword [ebp - 0x12bcc]
add edx, 1
mov dword [ebp - 0x12bcc], edx
cmp dword [ebp - 0x12bcc], 3
jge 0x4080c4
mov eax, dword [ebp - 0x12bcc]
movzx ecx, byte [ebp + eax - 0x12bd8]
test ecx, ecx
jne 0x407fc5
jmp 0x407f95
imul edx, dword [ebp - 0x12bcc], 0x18
lea eax, [ebp + edx - 0x278]
push eax
lea ecx, [ebp - 0x2d8]
call fcn.00406c50
mov byte [ebp - 4], 8
lea ecx, [ebp - 0x2d8]
push ecx
call fcn.00403770
add esp, 4
push 0x422898
lea edx, [ebp - 0x2d8]
push edx
lea eax, [ebp - 0x320]
push eax
call fcn.00405140
add esp, 0xc
mov dword [ebp - 0x12c48], eax
mov ecx, dword [ebp - 0x12c48]
push ecx
lea ecx, [ebp - 0x2d8]
call fcn.00404700
lea ecx, [ebp - 0x320]
call fcn.00406430
push 0
lea ecx, [ebp - 0x2d8]
call fcn.004062e0
push eax
call fcn.0040ce05
add esp, 8
test eax, eax
jne 0x40805c
lea ecx, [ebp - 0x2d8]
call fcn.004062e0
push eax
call dword [sym.imp.KERNEL32.dll_DeleteFileA]
push 0x4228a4
lea ecx, [ebp - 0x2d8]
call fcn.004062e0
push eax
lea ecx, [ebp - 0x12bf4]
call fcn.00406d00
test eax, eax
je 0x4080b0
push 1
mov edx, dword [ebp - 0x12bc4]
push edx
mov eax, dword [ebp - 0x12bac]
push eax
lea ecx, [ebp - 0x12bf4]
call fcn.00406dd0
lea ecx, [ebp - 0x12bf4]
call fcn.00406d80
mov ecx, dword [ebp - 0x12bcc]
mov byte [ebp + ecx - 0x12be8], 1
mov byte [ebp - 4], 6
lea ecx, [ebp - 0x2d8]
call fcn.00406430
jmp 0x407f95
mov byte [ebp - 0x12bad], 0
mov edx, 1
imul eax, edx, 0
movzx ecx, byte [ebp + eax - 0x12be8]
test ecx, ecx
jne 0x4080f9
mov edx, 1
shl edx, 1
movzx eax, byte [ebp + edx - 0x12be8]
test eax, eax
jne 0x4080f9
mov byte [ebp - 0x12bad], 1
movzx ecx, byte [ebp - 0x12bad]
test ecx, ecx
je 0x4081d0
mov edx, 0x18
imul eax, edx, 3
lea ecx, [ebp + eax - 0x278]
push ecx
lea ecx, [ebp - 0x2f0]
call fcn.00406c50
mov byte [ebp - 4], 9
lea edx, [ebp - 0x2f0]
push edx
call fcn.00403770
add esp, 4
push str.npatgpc.dll
lea eax, [ebp - 0x2f0]
push eax
lea ecx, [ebp - 0x338]
push ecx
call fcn.00405140
add esp, 0xc
mov dword [ebp - 0x12c3c], eax
mov edx, dword [ebp - 0x12c3c]
push edx
lea ecx, [ebp - 0x2f0]
call fcn.00404700
lea ecx, [ebp - 0x338]
call fcn.00406430
push 0x4228b4
lea ecx, [ebp - 0x2f0]
call fcn.004062e0
push eax
lea ecx, [ebp - 0x12bf4]
call fcn.00406d00
test eax, eax
je 0x4081c1
push 1
mov eax, dword [ebp - 0x12bc4]
push eax
mov ecx, dword [ebp - 0x12bac]
push ecx
lea ecx, [ebp - 0x12bf4]
call fcn.00406dd0
lea ecx, [ebp - 0x12bf4]
call fcn.00406d80
mov byte [ebp - 0x12bad], 0
mov byte [ebp - 4], 6
lea ecx, [ebp - 0x2f0]
call fcn.00406430
mov byte [ebp - 4], 5
lea ecx, [ebp - 0x308]
call fcn.00406430
mov byte [ebp - 4], 4
lea ecx, [ebp - 0x290]
call fcn.00406430
cmp dword [ebp - 0x12bac], 0
je 0x40821c
mov edx, dword [ebp - 0x12bac]
mov dword [ebp - 0x12c2c], edx
mov eax, dword [ebp - 0x12c2c]
push eax
call fcn.0040d278
add esp, 4
mov dword [ebp - 0x12bac], 0
mov ecx, dword [ebp - 0x12bb8]
shl ecx, 4
mov edx, dword [ebp - 0x12bdc]
cmp dword [edx + ecx + 0xc], 0
je 0x408271
mov eax, dword [ebp - 0x12bb8]
shl eax, 4
mov ecx, dword [ebp - 0x12bdc]
mov edx, dword [ecx + eax + 0xc]
mov dword [ebp - 0x12c0c], edx
mov eax, dword [ebp - 0x12c0c]
push eax
call fcn.0040d278
add esp, 4
mov ecx, dword [ebp - 0x12bb8]
shl ecx, 4
mov edx, dword [ebp - 0x12bdc]
mov dword [edx + ecx + 0xc], 0
jmp 0x407c06
mov eax, dword [ebp - 0x12bdc]
push eax
call fcn.0040cdcd
add esp, 4
lea ecx, [ebp - 0x12bb4]
call fcn.00406f20
mov dword [ebp - 0x12bc8], 1
mov byte [ebp - 4], 3
push fcn.00406430
push 4
push 0x18
lea ecx, [ebp - 0x278]
push ecx
call fcn.0040d57a
mov byte [ebp - 4], 2
lea ecx, [ebp - 0x12bf4]
call fcn.00406ce0
mov ecx, 0x4279f8
call fcn.00404820
test eax, eax
jbe 0x408329
push 0x44
push 0
lea edx, [ebp - 0x12ca4]
push edx
call fcn.0040ae60
add esp, 0xc
mov dword [ebp - 0x12ca4], 0x44
lea eax, [ebp - 0x12c60]
push eax
lea ecx, [ebp - 0x12ca4]
push ecx
push 0
push 0
push 0
push 1
push 0
push 0
mov ecx, 0x427a10
call fcn.004062e0
push eax
mov ecx, 0x4279f8
call fcn.004062e0
push eax
call dword [sym.imp.KERNEL32.dll_CreateProcessA]
mov dword [ebp - 0x12c50], eax
mov edx, dword [ebp - 0x12bc8]
mov dword [ebp - 0x12c14], edx
mov byte [ebp - 4], 1
lea ecx, [ebp - 0x12bb4]
call fcn.00406e90
mov byte [ebp - 4], 0
lea ecx, [ebp - 0x12ba8]
call fcn.004013e0
mov dword [ebp - 4], 0xffffffff
lea ecx, [ebp - 0x2a8]
call fcn.00406430
mov eax, dword [ebp - 0x12c14]
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
mov ecx, dword [ebp - 0x10]
xor ecx, ebp
call fcn.00409e94
mov esp, ebp
pop ebp
ret