Function at 0x40dd03
Capabilities:
Move file

Disassembly:
push ebp
mov ebp, esp
push ebx
push edi
push esi
sub esp, 0x88
lea eax, [ebp - 0x18]
mov dword [ebp - 0x40], ecx
lea edi, [ebp - 0x34]
mov dword [eax - 4], esp
or dword [eax + 8], 0xffffffff
mov dword [eax + 4], 0x4ed870
mov ecx, dword fs:[0]
mov dword [eax], ecx
mov ecx, edi
mov dword fs:[0], eax
call fcn.004caf60
lea esi, [ebp - 0x94]
mov edx, edi
mov ecx, esi
push 0x514448
call fcn.004033f3
pop eax
mov ecx, dword [esi + 4]
mov edx, dword [esi + 8]
mov dword [ebp - 0x60], ecx
call fcn.004d47c0
mov ecx, eax
push 0x514458
call fcn.0040327c
pop ecx
lea edi, [ebp - 0x6c]
mov ebx, eax
lea esi, [eax + edx]
mov dword [ebp - 0x24], edx
mov ecx, edi
mov edx, esi
push eax
call fcn.00402ebf
pop eax
mov edi, dword [edi + 8]
lea eax, [ebp - 0x34]
lea ecx, [ebp - 0x34]
mov dword [ebp - 0x20], esi
mov dword [eax], esi
mov dword [eax + 4], ebx
lea edx, [edi - 1]
call fcn.00402e1a
mov ecx, eax
mov edx, 0x514468
mov esi, eax
call fcn.004032c0
cmp esi, 0x65
jne 0x40de0c
mov eax, dword [ebp - 0x20]
lea ecx, [ebp - 0x34]
lea edx, [edi - 2]
mov dword [ecx], eax
mov dword [ecx + 4], ebx
call fcn.00402e1a
mov ecx, eax
mov edx, 0x514478
mov esi, eax
call fcn.004032c0
cmp esi, 0x78
jne 0x40de0c
mov edi, dword [ebp - 0x40]
mov ecx, dword [edi + 0x34]
mov edx, dword [edi + 0x38]
lea esi, [edi + 0x34]
call fcn.0043e31d
and dword [edi + 0x34], 0
mov dword [edi + 0x38], 1
and dword [edi + 0x3c], 0
mov edx, dword [ebp - 0x20]
mov ecx, esi
push ebx
call fcn.00419104
pop eax
mov dword [ebp - 0x20], 0
jmp 0x40df55
mov edx, dword [ebp - 0x24]
mov dword [ebp - 0x3c], ebx
mov ecx, ebx
push 0x2e
call fcn.00402a5a
pop ecx
test eax, eax
je 0x40e262
mov eax, dword [ebp - 0x68]
lea esi, [edi*4 + 4]
mov dword [ebp - 0x20], eax
mov ecx, dword [ebp - 0x20]
mov edx, edi
sub edi, 1
setb bl
push 0x514498
push edi
call fcn.004042bd
pop ecx
pop edx
add esi, 0xfffffffc
cmp dword [eax], 0x2e
je 0x40de55
test bl, bl
je 0x40de31
inc edi
mov ebx, dword [ebp - 0x20]
mov dword [ebp - 0x64], edi
lea edi, [ebp - 0x78]
mov eax, dword [ebp - 0x6c]
and dword [edi], 0
mov dword [edi + 4], 1
and dword [edi + 8], 0
mov dword [ebp - 0x38], eax
test esi, esi
je 0x40de88
mov edx, dword [ebx]
mov ecx, edi
add ebx, 4
call fcn.004037b4
add esi, 0xfffffffc
jmp 0x40de73
mov ecx, dword [ebp - 0x38]
mov edx, dword [ebp - 0x20]
call fcn.004e396b
lea edi, [ebp - 0x78]
mov eax, 0x5144a8
lea edx, [0x5144ab]
mov ecx, edi
push eax
call fcn.00419104
pop eax
mov esi, dword [ebp - 0x40]
mov ecx, dword [esi + 0x34]
mov edx, dword [esi + 0x38]
lea ebx, [esi + 0x34]
call fcn.0043e31d
and dword [esi + 0x34], 0
mov dword [esi + 0x38], 1
and dword [esi + 0x3c], 0
mov eax, dword [edi + 4]
mov esi, dword [edi + 8]
mov ecx, ebx
lea edx, [eax + esi]
mov dword [ebp - 0x20], eax
push eax
call fcn.00419104
pop eax
mov eax, dword [edi]
mov edx, dword [ebp - 0x3c]
lea edi, [ebp - 0x34]
mov ecx, edi
mov dword [ebp - 0x38], eax
push dword [ebp - 0x24]
call fcn.004c6640
pop eax
xor eax, eax
cmp dword [edi], eax
je 0x40df03
mov ebx, dword [ebp - 0x30]
mov eax, dword [ebp - 0x2c]
jmp 0x40df33
lea edx, [ebp - 0x34]
mov eax, dword [edx + 4]
mov ecx, dword [edx + 8]
mov edi, dword [edx + 0xc]
mov dword [edx + 4], ecx
mov dword [edx], eax
mov dword [edx + 8], edi
lea edi, [ebp - 0x50]
mov ecx, edi
call fcn.004cc2f0
cmp dword [edi], 0
je 0x40e168
mov ebx, dword [ebp - 0x4c]
mov eax, dword [ebp - 0x48]
lea edi, [ebp - 0x34]
mov dword [ebp - 0x34], ebx
mov dword [ebp - 0x30], eax
mov ecx, dword [ebp - 0x38]
mov edx, dword [ebp - 0x20]
call fcn.0043e31d
cmp bl, 4
je 0x40df50
push edi
call fcn.00402499
pop eax
mov al, 1
mov dword [ebp - 0x20], eax
call fcn.004d01d0
xor ecx, ecx
mov esi, eax
call fcn.004c3850
mov dword [ebp - 0x5c], eax
lock inc dword [eax]
jle 0x40e25e
lea ecx, [ebp - 0x34]
mov dword [ebp - 0x3c], esi
mov dword [ebp - 0x24], eax
and dword [ecx], 0
and dword [ecx + 4], 0
call fcn.0040375f
mov dword [ebp - 0x50], eax
lock inc dword [eax]
jle 0x40e25e
xor ecx, ecx
mov ebx, eax
xor edi, edi
call fcn.004cef80
mov esi, eax
test eax, eax
je 0x40dfac
lock inc dword [esi]
mov edi, esi
jle 0x40e25e
mov ecx, edi
call fcn.004cef80
lea ecx, [ebp - 0x34]
mov dword [ecx], eax
call fcn.004415f1
mov ecx, dword [ebx + 8]
test ecx, ecx
je 0x40dfcc
add ecx, 8
call fcn.004c6ba0
push 0xc
pop ecx
push 4
pop edx
call fcn.0040378a
mov edi, dword [ebp - 0x24]
mov edx, dword [ebp - 0x3c]
mov dword [eax], esi
lea esi, [ebp - 0x34]
mov ecx, esi
mov dword [eax + 4], edi
mov dword [eax + 8], ebx
push 0x5119c4
push eax
call fcn.004d02f0
pop eax
pop ecx
movzx esi, byte [esi]
cmp esi, 4
jne 0x40e00f
mov eax, dword [ebp - 0x30]
mov dword [ebp - 0x2c], edi
mov dword [ebp - 0x30], eax
mov dword [ebp - 0x28], ebx
xor eax, eax
jmp 0x40e043
mov eax, dword [ebp - 0x30]
movzx edi, byte [ebp - 0x31]
movzx ebx, word [ebp - 0x33]
lea ecx, [ebp - 0x50]
mov dword [ebp - 0x24], eax
call fcn.00441604
lea ecx, [ebp - 0x5c]
call fcn.004dbbdb
mov eax, dword [ebp - 0x24]
shl ebx, 8
shl edi, 0x18
or edi, ebx
or edi, esi
mov dword [ebp - 0x30], edi
mov dword [ebp - 0x2c], eax
xor eax, eax
inc eax
lea esi, [ebp - 0x50]
lea edx, [ebp - 0x34]
mov ecx, esi
mov dword [edx], eax
call fcn.004032de
mov ecx, esi
call fcn.0040286d
lea esi, [ebp - 0x84]
mov edx, 0x514400
mov ecx, esi
push 4
call fcn.004127c2
pop eax
mov ecx, esi
xor edx, edx
call fcn.004037b4
mov edx, dword [esi + 4]
lea edi, [ebp - 0x78]
mov ecx, edi
mov dword [ebp - 0x24], edx
push dword [esi + 8]
call fcn.004124bf
pop eax
mov eax, dword [edi + 4]
lea edi, [ebp - 0x5c]
mov edx, 0x5144ab
mov ecx, edi
mov dword [ebp - 0x38], eax
push 5
call fcn.004127c2
pop eax
mov ecx, edi
xor edx, edx
call fcn.004037b4
mov edx, dword [edi + 4]
lea esi, [ebp - 0x50]
mov ecx, esi
mov dword [ebp - 0x3c], edx
push dword [edi + 8]
call fcn.004124bf
pop eax
mov eax, dword [ebp - 0x40]
mov ebx, dword [esi + 4]
lea esi, [ebp - 0x34]
mov ecx, esi
mov edx, dword [eax + 0x38]
push dword [eax + 0x3c]
call fcn.004124bf
pop eax
mov edi, dword [esi + 4]
mov esi, dword [ebp - 0x38]
mov ecx, ebx
mov edx, edi
push esi
call fcn.00404021
pop ecx
lea ecx, [ebp - 0x34]
mov edx, edi
mov dword [ebp - 0x40], eax
mov ecx, dword [ecx]
call fcn.004024be
lea eax, [ebp - 0x50]
mov edx, ebx
mov ecx, dword [eax]
call fcn.004024be
lea eax, [ebp - 0x5c]
mov edx, dword [ebp - 0x3c]
mov ecx, dword [eax]
call fcn.0043e31d
lea eax, [ebp - 0x78]
mov edx, esi
mov ecx, dword [eax]
call fcn.004024be
lea eax, [ebp - 0x84]
mov edx, dword [ebp - 0x24]
mov ecx, dword [eax]
call fcn.0043e31d
cmp byte [ebp - 0x20], 0
jne 0x40e13d
mov ecx, dword [ebp - 0x6c]
mov edx, dword [ebp - 0x68]
call fcn.004e396b
cmp dword [ebp - 0x40], 0x21
mov ecx, dword [ebp - 0x94]
mov edx, dword [ebp - 0x60]
setge bl
call fcn.0043e31d
mov eax, dword [ebp - 0x18]
mov dword fs:[0], eax
mov eax, ebx
add esp, 0x88
pop esi
pop edi
pop ebx
pop ebp
ret
mov edx, dword [ebp - 0x4c]
mov ecx, dword [ebp - 0x48]
mov eax, dword [ebp - 0x44]
and dword [ebp - 0x10], 0
mov dword [ebp - 0x24], edx
mov dword [ebp - 0x5c], edx
mov edx, dword [ebp - 0x20]
mov dword [ebp - 0x58], ecx
mov dword [ebp - 0x3c], ecx
mov dword [ebp - 0x54], eax
lea ecx, [ebp - 0x34]
push esi
call fcn.004c6640
pop eax
cmp dword [ebp - 0x34], 0
lea edi, [ebp - 0x34]
je 0x40e1a2
mov ebx, dword [ebp - 0x30]
mov eax, dword [ebp - 0x2c]
jmp 0x40e1cd
lea edx, [ebp - 0x34]
mov ecx, dword [edx + 8]
mov eax, dword [edx + 4]
mov esi, dword [edx + 0xc]
mov dword [edx + 4], ecx
lea ecx, [ebp - 0x50]
mov dword [edx], eax
mov dword [edx + 8], esi
call fcn.004cc2f0
cmp dword [ebp - 0x50], 0
lea edi, [ebp - 0x34]
je 0x40e1ed
mov ebx, dword [ebp - 0x4c]
mov eax, dword [ebp - 0x48]
mov dword [ebp - 0x34], ebx
mov dword [ebp - 0x30], eax
cmp dword [ebp - 0x24], 0
je 0x40df39
push 2
pop edx
mov ecx, dword [ebp - 0x3c]
call fcn.00415e60
jmp 0x40df39
mov edi, dword [ebp - 0x4c]
mov esi, dword [ebp - 0x48]
push 1
push esi
mov ebx, dword [ebp - 0x3c]
push ebx
call dword [sym.imp.kernel32.dll_MoveFileExW]
test eax, eax
je 0x40e230
test edi, edi
mov byte [ebp - 0x34], 4
je 0x40e216
push 2
pop edx
mov ecx, esi
call fcn.00415e60
cmp dword [ebp - 0x24], 0
lea edi, [ebp - 0x34]
je 0x40e229
push 2
pop edx
mov ecx, ebx
call fcn.00415e60
mov bl, 4
jmp 0x40df39
call dword [sym.imp.kernel32.dll_GetLastError]
xor ebx, ebx
mov byte [ebp - 0x34], bl
and word [ebp - 0x33], 0
test edi, edi
lea edi, [ebp - 0x34]
mov byte [ebp - 0x31], bl
mov dword [ebp - 0x30], eax
je 0x40e1d3
push 2
pop edx
mov ecx, esi
call fcn.00415e60
xor ebx, ebx
jmp 0x40e1d3
ud2
push 0x2b
pop edx
mov ecx, str.called__Option::unwrap____on_a__None__value
push 0x514488
call fcn.0050d590
pop eax
ud2