Function at 0x40d680
Capabilities:
Create directory
Move file

Disassembly:
push 0xffffffffffffffff
push 0x435c47
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
sub esp, 0x648
mov eax, dword [0x4472e0]
mov dword [esp + 0x644], eax
mov eax, dword [esp + 0x658]
mov dword [esp + 0xc], ecx
push eax
lea ecx, [esp + 4]
call fcn.00404850
mov ecx, dword [esp + 0x65c]
push ecx
lea ecx, [esp + 8]
mov dword [esp + 0x654], 0
call fcn.00404850
mov edx, dword [esp]
mov eax, dword [edx - 0xc]
test eax, eax
mov byte [esp + 0x650], 1
je 0x40d70e
lea ecx, [eax - 1]
test ecx, ecx
jl 0x40d8f4
cmp ecx, eax
jg 0x40d8f4
cmp byte [ecx + edx], 0x5c
je 0x40d70e
push 0x5c
lea ecx, [esp + 4]
call fcn.0040b330
mov edx, dword [esp + 4]
mov ecx, dword [edx - 0xc]
test ecx, ecx
je 0x40d73d
lea eax, [ecx - 1]
test eax, eax
jl 0x40d8f4
cmp eax, ecx
jg 0x40d8f4
cmp byte [eax + edx], 0x5c
je 0x40d73d
push 0x5c
lea ecx, [esp + 8]
call fcn.0040b330
push ebx
push ebp
push esi
push edi
lea ecx, [esp + 0x24]
call fcn.00411b68
mov edx, dword [esp + 0x10]
push edx
lea eax, [esp + 0x248]
push str._s.
push eax
mov byte [esp + 0x66c], 2
call fcn.0041a23c
add esp, 0xc
push 0
lea ecx, [esp + 0x248]
push ecx
lea ecx, [esp + 0x2c]
call fcn.00411bfb
test eax, eax
je 0x40d95d
mov ebp, dword [sym.imp.KERNEL32.dll_MoveFileExA]
lea ecx, [ecx]
lea ecx, [esp + 0x24]
call fcn.00411a5f
lea ecx, [esp + 0x24]
mov edi, eax
call fcn.00411b2f
test eax, eax
jne 0x40d955
lea edx, [esp + 0x20]
push edx
lea ecx, [esp + 0x28]
call fcn.00411e23
mov esi, eax
mov eax, dword [esi]
mov edx, dword [eax - 4]
sub eax, 0x10
mov eax, dword [eax + 8]
mov ecx, 1
sub ecx, edx
sub eax, 0x104
or eax, ecx
mov byte [esp + 0x660], 3
jge 0x40d7eb
push 0x104
mov ecx, esi
call fcn.00401320
mov esi, dword [esi]
lea ecx, [esp + 0x3c]
mov al, byte [esi]
inc esi
mov byte [ecx], al
inc ecx
test al, al
jne 0x40d7f1
mov eax, dword [esp + 0x20]
add eax, 0xfffffff0
mov byte [esp + 0x660], 2
lea ecx, [eax + 0xc]
or edx, 0xffffffff
lock xadd dword [ecx], edx
dec edx
test edx, edx
jg 0x40d821
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
call dword [edx + 4]
mov eax, dword [esp + 0x24]
push 0x10
lea ecx, [esp + 0x28]
call dword [eax + 0x38]
test eax, eax
je 0x40d8fe
mov edx, dword [esp + 0x10]
lea ecx, [esp + 0x3c]
push ecx
push edx
lea eax, [esp + 0x454]
push 0x439b1c
push eax
call fcn.0041a23c
mov edx, dword [esp + 0x24]
lea ecx, [esp + 0x4c]
push ecx
push edx
lea eax, [esp + 0x158]
push 0x439b1c
push eax
call fcn.0041a23c
add esp, 0x20
lea ecx, [esp + 0x140]
push ecx
lea ecx, [esp + 0x1c]
call fcn.00404850
lea edx, [esp + 0x18]
push edx
mov byte [esp + 0x664], 4
call fcn.0040fc70
mov ebx, eax
mov eax, dword [esp + 0x1c]
add esp, 4
neg ebx
sbb bl, bl
add eax, 0xfffffff0
inc bl
mov byte [esp + 0x660], 2
lea ecx, [eax + 0xc]
or edx, 0xffffffff
lock xadd dword [ecx], edx
dec edx
test edx, edx
jg 0x40d8c5
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
call dword [edx + 4]
test bl, bl
je 0x40d8d9
push 0
lea eax, [esp + 0x144]
push eax
call dword [sym.imp.KERNEL32.dll_CreateDirectoryA]
lea ecx, [esp + 0x140]
push ecx
mov ecx, dword [esp + 0x20]
lea edx, [esp + 0x450]
push edx
call fcn.0040d680
jmp 0x40d955
push 0x80070057
call fcn.00401010
mov ecx, dword [esp + 0x10]
lea eax, [esp + 0x3c]
push eax
push ecx
lea edx, [esp + 0x558]
push 0x439b1c
push edx
call fcn.0041a23c
mov ecx, dword [esp + 0x24]
lea eax, [esp + 0x4c]
push eax
push ecx
lea edx, [esp + 0x360]
push 0x439b1c
push edx
call fcn.0041a23c
add esp, 0x20
push 3
lea eax, [esp + 0x34c]
push eax
lea ecx, [esp + 0x558]
push ecx
call ebp
test eax, eax
je 0x40d9f2
test edi, edi
jne 0x40d790
lea ecx, [esp + 0x24]
call fcn.0041198f
lea ecx, [esp + 0x24]
mov byte [esp + 0x660], 1
call fcn.00411b8c
mov eax, dword [esp + 0x14]
add eax, 0xfffffff0
mov byte [esp + 0x660], 0
lea ecx, [eax + 0xc]
or edx, 0xffffffff
lock xadd dword [ecx], edx
dec edx
test edx, edx
jg 0x40d99d
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
call dword [edx + 4]
mov eax, dword [esp + 0x10]
add eax, 0xfffffff0
mov dword [esp + 0x660], 0xffffffff
lea ecx, [eax + 0xc]
or edx, 0xffffffff
lock xadd dword [ecx], edx
dec edx
test edx, edx
jg 0x40d9c6
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
call dword [edx + 4]
mov eax, 1
mov ecx, dword [esp + 0x658]
pop edi
pop esi
pop ebp
mov dword fs:[0], ecx
mov ecx, dword [esp + 0x648]
pop ebx
call fcn.00419e6b
add esp, 0x654
ret 8
mov esi, dword [esp + 0x1c]
push 0
push 0x437690
push 0x43a264
mov ecx, esi
call fcn.00428f30
mov ecx, esi
call fcn.0040d450
lea ecx, [esp + 0x24]
mov byte [esp + 0x660], 1
call fcn.00411b8c
mov eax, dword [esp + 0x14]
add eax, 0xfffffff0
mov byte [esp + 0x660], 0
lea edx, [eax + 0xc]
or ecx, 0xffffffff
lock xadd dword [edx], ecx
dec ecx
test ecx, ecx
jg 0x40da47
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
call dword [edx + 4]
mov eax, dword [esp + 0x10]
add eax, 0xfffffff0
mov dword [esp + 0x660], 0xffffffff
lea ecx, [eax + 0xc]
or edx, 0xffffffff
lock xadd dword [ecx], edx
dec edx
test edx, edx
jg 0x40da70
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
call dword [edx + 4]
xor eax, eax
jmp 0x40d9cb