Function at 0x40b1c0
Capabilities:
Move file

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x4176cc
mov eax, dword fs:[0]
push eax
sub esp, 0x354
mov eax, dword [0x427024]
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
mov esi, ecx
cmp dword [esi + 0x14], 0x10
jb 0x40b1fa
mov eax, dword [esi]
jmp 0x40b1fc
mov eax, esi
lea ecx, [ebp - 0x360]
push ecx
push eax
call dword [sym.imp.api_ms_win_crt_filesystem_l1_1_0.dll__stat64i32]
add esp, 8
test eax, eax
je 0x40b218
xor al, al
jmp 0x40b4a7
cmp dword [esi + 0x14], 0x10
mov eax, dword [esi + 0x10]
jb 0x40b223
mov esi, dword [esi]
push eax
mov edx, esi
lea ecx, [ebp - 0x278]
call fcn.0040c970
add esp, 4
lea edx, [ebp - 0x278]
mov dword [ebp - 4], 0
lea ecx, [ebp - 0x330]
call fcn.0040e170
xor eax, eax
mov byte [ebp - 4], 1
push 0xffffffffffffffff
push eax
mov word [ebp - 0x230], ax
lea ecx, [ebp - 0x230]
lea eax, [ebp - 0x318]
mov dword [ebp - 0x21c], 7
push eax
mov esi, 1
mov dword [ebp - 0x220], 0
call fcn.00405340
mov byte [ebp - 4], 2
lea ecx, [ebp - 0x230]
cmp dword [ebp - 0x21c], 8
mov edx, 0x5c
mov eax, dword [ebp - 0x220]
cmovae ecx, dword [ebp - 0x230]
cmp dx, word [ecx + eax*2 - 2]
je 0x40b2c2
push esi
push 0x421b88
lea ecx, [ebp - 0x230]
call fcn.00405460
push 0xffffffffffffffff
push 0
lea eax, [ebp - 0x2e8]
push eax
lea ecx, [ebp - 0x230]
call fcn.00405d10
push 3
push 0x421b8c
lea ecx, [ebp - 0x230]
call fcn.00405460
push 0xffffffffffffffff
push 0
lea eax, [ebp - 0x2d0]
push eax
lea ecx, [ebp - 0x230]
call fcn.00405d10
mov ebx, dword [sym.imp.api_ms_win_crt_filesystem_l1_1_0.dll__wstat64i32]
nop word [eax + eax]
xor eax, eax
lea edi, [ebp - 0x218]
cmp dword [ebp - 0x21c], 8
mov ecx, 0x82
rep stosd dword es:[edi], eax
lea eax, [ebp - 0x230]
cmovae eax, dword [ebp - 0x230]
push esi
push eax
lea eax, [ebp - 0x218]
push eax
call fcn.0040b7f0
add esp, 0xc
lea eax, [ebp - 0x360]
inc esi
push eax
lea eax, [ebp - 0x218]
push eax
call ebx
add esp, 8
test eax, eax
je 0x40b310
lea eax, [ebp - 0x218]
push 0x104
push eax
call dword [sym.imp.api_ms_win_crt_string_l1_1_0.dll_wcsnlen]
push eax
lea edx, [ebp - 0x218]
lea ecx, [ebp - 0x260]
call fcn.0040c880
add esp, 0xc
mov byte [ebp - 4], 3
lea edx, [ebp - 0x330]
cmp dword [ebp - 0x31c], 8
lea ecx, [ebp - 0x248]
push dword [ebp - 0x320]
cmovae edx, dword [ebp - 0x330]
call fcn.0040c880
add esp, 4
lea ecx, [ebp - 0x260]
cmp dword [ebp - 0x24c], 0x10
lea eax, [ebp - 0x248]
cmovae ecx, dword [ebp - 0x260]
cmp dword [ebp - 0x234], 0x10
push ecx
cmovae eax, dword [ebp - 0x248]
push eax
call dword [sym.imp.api_ms_win_crt_filesystem_l1_1_0.dll_rename]
add esp, 8
test eax, eax
mov eax, dword [ebp - 0x234]
sete bl
cmp eax, 0x10
jb 0x40b3ff
inc eax
push eax
push dword [ebp - 0x248]
call fcn.00405b90
mov eax, dword [ebp - 0x24c]
mov dword [ebp - 0x234], 0xf
mov dword [ebp - 0x238], 0
mov byte [ebp - 0x248], 0
cmp eax, 0x10
jb 0x40b432
inc eax
push eax
push dword [ebp - 0x260]
call fcn.00405b90
mov eax, dword [ebp - 0x21c]
mov dword [ebp - 0x24c], 0xf
mov dword [ebp - 0x250], 0
mov byte [ebp - 0x260], 0
cmp eax, 8
jb 0x40b465
inc eax
push eax
push dword [ebp - 0x230]
call fcn.00405b30
xor eax, eax
mov dword [ebp - 0x21c], 7
lea ecx, [ebp - 0x330]
mov dword [ebp - 0x220], 0
mov word [ebp - 0x230], ax
call fcn.0040b4d0
mov ecx, dword [ebp - 0x264]
cmp ecx, 8
jb 0x40b4a5
inc ecx
push ecx
push dword [ebp - 0x278]
call fcn.00405b30
mov al, bl
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.00415b3b
mov esp, ebp
pop ebp
ret