Function at 0x405b10
Capabilities:
Move file

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x42bd46
mov eax, dword fs:[0]
push eax
mov eax, 0x606c
call fcn.0041a300
mov eax, dword [0x439190]
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 eax, dword [ebp + 8]
push 0x2f0c
lea edx, [ebp - 0x316c]
push 0x43f128
push edx
mov dword [ebp - 0x258], eax
mov dword [ebp - 0x260], ecx
call fcn.00419be0
push 0x2f0c
lea eax, [ebp - 0x316c]
push eax
lea ecx, [ebp - 0x6078]
push ecx
call fcn.00419be0
push 0x2f0c
lea edx, [ebp - 0x6078]
push edx
lea eax, [ebp - 0x316c]
push eax
call fcn.00419be0
xor ecx, ecx
push 0x206
push ecx
lea edx, [ebp - 0x216]
push edx
mov word [ebp - 0x218], cx
call fcn.00419b60
mov esi, dword [ebp - 0x3160]
add esi, dword [ebp - 0x316c]
add esp, 0x30
cmp dword [ebp - 0x3168], 0
mov dword [ebp - 0x25c], 0
jbe 0x405def
mov edi, dword [ebp - 0x3164]
mov ecx, dword [ebp - 0x260]
lea edx, [ebp - 0x254]
push edx
push edi
mov dword [ebp - 0x254], 0
call fcn.004015e0
push eax
mov eax, esi
call fcn.0040cd40
mov ebx, dword [ebp - 0x254]
mov eax, dword [ebx]
mov ecx, dword [ebp + 0xc]
add esp, 0xc
mov dword [ebp - 0x254], eax
add esi, edi
call fcn.004015e0
lea ecx, [ebx + 8]
mov dx, word [ecx]
cmp dx, word [eax]
jne 0x405c47
test dx, dx
je 0x405c43
mov dx, word [ecx + 2]
cmp dx, word [eax + 2]
jne 0x405c47
add ecx, 4
add eax, 4
test dx, dx
jne 0x405c21
xor eax, eax
jmp 0x405c4c
sbb eax, eax
sbb eax, 0xffffffff
test eax, eax
je 0x405c74
mov eax, dword [ebp - 0x25c]
add esi, dword [ebp - 0x254]
inc eax
mov dword [ebp - 0x25c], eax
cmp eax, dword [ebp - 0x3168]
jb 0x405bde
jmp 0x405def
mov eax, dword [ebp - 0x258]
add eax, 0x5e5c
cmp dword [eax + 0x14], 8
jb 0x405c87
mov eax, dword [eax]
add ebx, 8
push ebx
push eax
push 0x433890
lea ecx, [ebp - 0x218]
push 0x104
push ecx
call fcn.00418ae3
xor edi, edi
add esp, 0x14
xor edx, edx
mov ebx, 7
lea eax, [ebp - 0x218]
mov word [ebp - 0x250], dx
mov dword [ebp - 0x23c], ebx
mov dword [ebp - 0x240], edi
lea edx, [eax + 2]
lea ebx, [ebx]
mov cx, word [eax]
add eax, 2
cmp cx, di
jne 0x405cd0
sub eax, edx
sar eax, 1
push eax
lea eax, [ebp - 0x218]
push eax
lea ecx, [ebp - 0x250]
call fcn.004015f0
mov edx, dword [ebp - 0x258]
mov dword [ebp - 4], edi
cmp dword [edx + 0x14], 8
jb 0x405d03
mov edx, dword [edx]
xor ecx, ecx
mov eax, edx
mov dword [ebp - 0x220], ebx
mov dword [ebp - 0x224], edi
mov word [ebp - 0x234], cx
lea ebx, [eax + 2]
lea ecx, [ecx]
mov cx, word [eax]
add eax, 2
cmp cx, di
jne 0x405d20
sub eax, ebx
sar eax, 1
push eax
push edx
lea ecx, [ebp - 0x234]
call fcn.004015f0
mov byte [ebp - 4], 1
mov edx, dword [ebp - 0x254]
push edx
push esi
lea edx, [ebp - 0x250]
lea ecx, [ebp - 0x234]
call fcn.00404120
test eax, eax
mov esi, 8
sete bl
cmp dword [ebp - 0x220], esi
jb 0x405d7a
mov eax, dword [ebp - 0x234]
push eax
call fcn.0041866f
add esp, 4
xor ecx, ecx
mov dword [ebp - 4], 0xffffffff
mov dword [ebp - 0x220], 7
mov dword [ebp - 0x224], edi
mov word [ebp - 0x234], cx
cmp dword [ebp - 0x23c], esi
jb 0x405db1
mov edx, dword [ebp - 0x250]
push edx
call fcn.0041866f
add esp, 4
xor eax, eax
mov dword [ebp - 0x23c], 7
mov dword [ebp - 0x240], edi
mov word [ebp - 0x250], ax
test bl, bl
je 0x405ddf
push str.SaveFileBufferAsFile___return_false
call fcn.004166a0
add esp, 4
xor eax, eax
jmp 0x405df4
push 4
push edi
lea ecx, [ebp - 0x218]
push ecx
call dword [sym.imp.KERNEL32.dll_MoveFileExW]
mov eax, 1
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.004180c9
mov esp, ebp
pop ebp
ret 8