Function at 0x4020f4
Capabilities:
Create directory
Set current directory

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x44
mov dword [ebp - 0x34], ecx
mov eax, dword [ebp - 0x34]
add eax, 0x74
push eax
mov ecx, dword [ebp - 0x34]
mov edx, dword [ecx + 0x68]
mov eax, dword [ebp - 0x34]
mov ecx, dword [eax + 0x68]
mov eax, dword [ecx]
push edx
call dword [eax + 0xd4]
test eax, eax
jge 0x40212e
push 0x67
call fcn.00402a35
add esp, 4
xor eax, eax
jmp 0x4025bb
push 0
mov ecx, dword [ebp - 0x34]
add ecx, 0x78
push ecx
mov edx, dword [ebp - 0x34]
mov eax, dword [edx + 0x24]
push eax
mov ecx, dword [ebp - 0x34]
mov edx, dword [ecx + 0x74]
mov eax, dword [ebp - 0x34]
mov ecx, dword [eax + 0x74]
mov eax, dword [ecx]
push edx
call dword [eax + 0x16c]
test eax, eax
jge 0x402177
mov ecx, 1
test ecx, ecx
je 0x402169
mov dword [ebp - 0x38], 0
jmp 0x402170
mov dword [ebp - 0x38], str.GetJobByID_Failed
xor eax, eax
jmp 0x4025bb
mov edx, dword [ebp - 0x34]
cmp dword [edx + 0x78], 0
jne 0x402191
push 0x68
call fcn.00402a35
add esp, 4
xor eax, eax
jmp 0x4025bb
mov eax, dword [ebp - 0x34]
add eax, 0x7c
push eax
push 0
mov ecx, dword [ebp - 0x34]
mov edx, dword [ecx + 0x78]
mov eax, dword [ebp - 0x34]
mov ecx, dword [eax + 0x78]
mov eax, dword [ecx]
push edx
call dword [eax + 0xc8]
test eax, eax
jge 0x4021d3
mov ecx, 1
test ecx, ecx
je 0x4021c5
mov dword [ebp - 0x3c], 0
jmp 0x4021cc
mov dword [ebp - 0x3c], str.GetJobStepByOrd_Failed
xor eax, eax
jmp 0x4025bb
mov edx, dword [ebp - 0x34]
cmp dword [edx + 0x7c], 0
jne 0x4021ed
push 0x79
call fcn.00402a35
add esp, 4
xor eax, eax
jmp 0x4025bb
mov eax, dword [ebp - 0x34]
add eax, 0x2c
push eax
mov ecx, dword [ebp - 0x34]
mov edx, dword [ecx + 0x7c]
mov eax, dword [ebp - 0x34]
mov ecx, dword [eax + 0x7c]
mov eax, dword [ecx]
push edx
call dword [eax + 0x48]
test eax, eax
jge 0x40221b
push 0x69
call fcn.00402a35
add esp, 4
xor eax, eax
jmp 0x4025bb
mov ecx, dword [ebp - 0x34]
mov dword [ecx + 0x54], 1
mov edx, 1
test edx, edx
je 0x402237
mov dword [ebp - 0x40], 0
jmp 0x402240
mov eax, dword [ebp - 0x34]
mov ecx, dword [eax + 0x2c]
mov dword [ebp - 0x40], ecx
mov edx, dword [ebp - 0x34]
mov eax, dword [ebp - 0x34]
mov ecx, dword [eax + 0x2c]
mov dword [edx + 0x28], ecx
mov ecx, dword [ebp - 0x34]
call fcn.00401c9d
mov edx, dword [ebp - 0x34]
mov dword [edx], eax
mov eax, dword [ebp - 0x34]
cmp dword [eax], 0
jne 0x402268
xor eax, eax
jmp 0x4025bb
mov ecx, dword [ebp - 0x34]
call fcn.00401c9d
mov ecx, dword [ebp - 0x34]
mov dword [ecx + 4], eax
mov edx, dword [ebp - 0x34]
cmp dword [edx + 4], 0
jne 0x402286
xor eax, eax
jmp 0x4025bb
mov ecx, dword [ebp - 0x34]
call fcn.00401c9d
mov dword [ebp - 4], eax
cmp dword [ebp - 4], 0
jne 0x40229e
xor eax, eax
jmp 0x4025bb
push 0x200
call sub.MSVCRT.dll_void____cdecl_operator_new_unsigned_int_
add esp, 4
mov ecx, dword [ebp - 0x34]
mov dword [ecx + 8], eax
mov edx, dword [ebp - 0x34]
cmp dword [edx + 8], 0
jne 0x4022c1
xor eax, eax
jmp 0x4025bb
push 0x100
mov eax, dword [ebp - 0x34]
mov ecx, dword [eax + 8]
push ecx
mov edx, dword [ebp - 4]
push edx
call fcn.00401fe4
add esp, 0xc
mov eax, 1
test eax, eax
je 0x4022eb
mov dword [ebp - 0x44], 0
jmp 0x4022f4
mov ecx, dword [ebp - 0x34]
mov edx, dword [ecx + 8]
mov dword [ebp - 0x44], edx
mov eax, dword [ebp - 4]
mov dword [ebp - 0xc], eax
mov ecx, dword [ebp - 0xc]
push ecx
call sub.MSVCRT.dll_void___cdecl_operator_delete_void__
add esp, 4
mov ecx, dword [ebp - 0x34]
call fcn.00401c9d
mov dword [ebp - 4], eax
cmp dword [ebp - 4], 0
jne 0x40231e
xor eax, eax
jmp 0x4025bb
mov edx, dword [ebp - 4]
push edx
call dword [sym.imp.MSVCRT.dll__wtoi]
add esp, 4
mov ecx, dword [ebp - 0x34]
mov dword [ecx + 0x30], eax
mov edx, dword [ebp - 4]
mov dword [ebp - 0x10], edx
mov eax, dword [ebp - 0x10]
push eax
call sub.MSVCRT.dll_void___cdecl_operator_delete_void__
add esp, 4
mov ecx, dword [ebp - 0x34]
call fcn.00401c9d
mov ecx, dword [ebp - 0x34]
mov dword [ecx + 0xc], eax
mov edx, dword [ebp - 0x34]
cmp dword [edx + 0xc], 0
jne 0x402361
xor eax, eax
jmp 0x4025bb
mov ecx, dword [ebp - 0x34]
call fcn.00401c9d
mov dword [ebp - 4], eax
cmp dword [ebp - 4], 0
jne 0x402379
xor eax, eax
jmp 0x4025bb
mov eax, dword [ebp - 4]
push eax
call dword [sym.imp.MSVCRT.dll__wtoi]
add esp, 4
mov ecx, dword [ebp - 0x34]
mov dword [ecx + 0x58], eax
mov edx, dword [ebp - 4]
mov dword [ebp - 0x14], edx
mov eax, dword [ebp - 0x14]
push eax
call sub.MSVCRT.dll_void___cdecl_operator_delete_void__
add esp, 4
mov ecx, dword [ebp - 0x34]
call fcn.00401c9d
mov dword [ebp - 4], eax
cmp dword [ebp - 4], 0
jne 0x4023b6
xor eax, eax
jmp 0x4025bb
mov ecx, dword [ebp - 4]
push ecx
call dword [sym.imp.MSVCRT.dll__wtoi]
add esp, 4
mov edx, dword [ebp - 0x34]
mov dword [edx + 0x5c], eax
mov eax, dword [ebp - 4]
mov dword [ebp - 0x18], eax
mov ecx, dword [ebp - 0x18]
push ecx
call sub.MSVCRT.dll_void___cdecl_operator_delete_void__
add esp, 4
mov ecx, dword [ebp - 0x34]
call fcn.00401c9d
mov dword [ebp - 4], eax
cmp dword [ebp - 4], 0
jne 0x4023f3
xor eax, eax
jmp 0x4025bb
mov edx, dword [ebp - 4]
push edx
call dword [sym.imp.MSVCRT.dll__wtoi]
add esp, 4
mov ecx, dword [ebp - 0x34]
mov dword [ecx + 0x38], eax
mov edx, dword [ebp - 4]
mov dword [ebp - 0x1c], edx
mov eax, dword [ebp - 0x1c]
push eax
call sub.MSVCRT.dll_void___cdecl_operator_delete_void__
add esp, 4
mov ecx, dword [ebp - 0x34]
call fcn.00401c9d
mov dword [ebp - 4], eax
cmp dword [ebp - 4], 0
jne 0x402430
xor eax, eax
jmp 0x4025bb
mov ecx, dword [ebp - 4]
push ecx
call dword [sym.imp.MSVCRT.dll__wtoi]
add esp, 4
mov edx, dword [ebp - 0x34]
mov dword [edx + 0x3c], eax
mov eax, dword [ebp - 4]
mov dword [ebp - 0x20], eax
mov ecx, dword [ebp - 0x20]
push ecx
call sub.MSVCRT.dll_void___cdecl_operator_delete_void__
add esp, 4
mov ecx, dword [ebp - 0x34]
call fcn.00401c9d
mov dword [ebp - 4], eax
cmp dword [ebp - 4], 0
jne 0x40246d
xor eax, eax
jmp 0x4025bb
mov edx, dword [ebp - 4]
push edx
call dword [sym.imp.MSVCRT.dll__wtoi]
add esp, 4
mov ecx, dword [ebp - 0x34]
mov dword [ecx + 0x40], eax
mov edx, dword [ebp - 4]
mov dword [ebp - 0x24], edx
mov eax, dword [ebp - 0x24]
push eax
call sub.MSVCRT.dll_void___cdecl_operator_delete_void__
add esp, 4
mov ecx, dword [ebp - 0x34]
call fcn.00401c9d
mov dword [ebp - 4], eax
cmp dword [ebp - 4], 0
jne 0x4024aa
xor eax, eax
jmp 0x4025bb
mov ecx, dword [ebp - 4]
push ecx
call dword [sym.imp.MSVCRT.dll__wtoi]
add esp, 4
mov edx, dword [ebp - 0x34]
mov dword [edx + 0x48], eax
mov eax, dword [ebp - 4]
mov dword [ebp - 0x28], eax
mov ecx, dword [ebp - 0x28]
push ecx
call sub.MSVCRT.dll_void___cdecl_operator_delete_void__
add esp, 4
mov ecx, dword [ebp - 0x34]
call fcn.00401c9d
mov dword [ebp - 4], eax
cmp dword [ebp - 4], 0
jne 0x4024e7
xor eax, eax
jmp 0x4025bb
mov edx, dword [ebp - 4]
push edx
call dword [sym.imp.MSVCRT.dll__wtoi]
add esp, 4
mov ecx, dword [ebp - 0x34]
mov dword [ecx + 0x4c], eax
mov edx, dword [ebp - 4]
mov dword [ebp - 0x2c], edx
mov eax, dword [ebp - 0x2c]
push eax
call sub.MSVCRT.dll_void___cdecl_operator_delete_void__
add esp, 4
mov ecx, dword [ebp - 0x34]
call fcn.00401c9d
mov dword [ebp - 4], eax
cmp dword [ebp - 4], 0
jne 0x402524
xor eax, eax
jmp 0x4025bb
mov ecx, dword [ebp - 4]
push ecx
call dword [sym.imp.MSVCRT.dll__wtoi]
add esp, 4
mov edx, dword [ebp - 0x34]
mov dword [edx + 0x50], eax
mov eax, dword [ebp - 4]
mov dword [ebp - 0x30], eax
mov ecx, dword [ebp - 0x30]
push ecx
call sub.MSVCRT.dll_void___cdecl_operator_delete_void__
add esp, 4
mov ecx, dword [ebp - 0x34]
call fcn.00401c9d
mov edx, dword [ebp - 0x34]
mov dword [edx + 0x20], eax
mov eax, dword [ebp - 0x34]
cmp dword [eax + 0x20], 0
jne 0x402564
xor eax, eax
jmp 0x4025bb
mov ecx, dword [ebp - 0x34]
mov edx, dword [ecx + 0x20]
push edx
call dword [sym.imp.KERNEL32.dll_SetCurrentDirectoryW]
mov dword [ebp - 8], eax
cmp dword [ebp - 8], 0
jne 0x4025b6
push 0
mov eax, dword [ebp - 0x34]
mov ecx, dword [eax + 0x20]
push ecx
call dword [sym.imp.KERNEL32.dll_CreateDirectoryW]
mov dword [ebp - 8], eax
cmp dword [ebp - 8], 0
je 0x4025a2
mov edx, dword [ebp - 0x34]
mov eax, dword [edx + 0x20]
push eax
call dword [sym.imp.KERNEL32.dll_SetCurrentDirectoryW]
mov dword [ebp - 8], eax
cmp dword [ebp - 8], 0
jne 0x4025b6
push 0x6a
call fcn.00402a35
add esp, 4
xor eax, eax
jmp 0x4025bb
mov eax, 1
mov esp, ebp
pop ebp
ret