Function at 0x405510
Capabilities:
Move file
Set current directory

Disassembly:
push 0xffffffffffffffff
push 0x419ad4
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
sub esp, 0xa6c
mov eax, dword [0x42119c]
push ebx
push ebp
push esi
push edi
lea ecx, [esp + 0x1c]
mov dword [esp + 0xa78], eax
call fcn.00409a00
mov ebx, dword [esp + 0xa98]
xor edi, edi
lea eax, [ebx + 4]
push eax
mov dword [esp + 0xa88], edi
mov dword [esp + 0x14], edi
mov dword [esp + 0x28], edi
call dword [sym.imp.KERNEL32.dll_SetCurrentDirectoryA]
lea eax, [ebx + 0x210]
lea edx, [esp + 0x164]
sub edx, eax
mov cl, byte [eax]
mov byte [edx + eax], cl
inc eax
test cl, cl
jne 0x405575
mov ebp, dword [esp + 0xa90]
mov esi, dword [sym.imp.USER32.dll_wsprintfA]
lea ecx, [ebx + 0x418]
push ecx
push ebp
lea edx, [esp + 0x270]
push 0x41a368
push edx
call esi
lea eax, [esp + 0x278]
push 0x5f
push eax
call fcn.0040a250
lea ecx, [esp + 0x280]
push ecx
lea edx, [esp + 0x180]
push edx
lea eax, [esp + 0x594]
push str._s_s
push eax
call esi
push ebp
lea ecx, [esp + 0x190]
push ecx
lea edx, [esp + 0x90]
push str._s_s
push edx
call esi
lea eax, [esp + 0x98]
push eax
call fcn.00409f50
add esp, 0x3c
cmp eax, 1
jne 0x4056cd
cmp dword [ebp + 0x140], 1
jne 0x40563f
mov edx, dword [ebx + 0xa90]
lea ecx, [esp + 0x60]
push ecx
push 0x21
push 0x7e8
push edx
call dword [sym.imp.USER32.dll_SendMessageA]
lea ecx, [esp + 0x1c]
mov dword [esp + 0xa84], 0xffffffff
call fcn.00409b90
xor eax, eax
jmp 0x405aeb
cmp byte [ebx + 0xa72], 1
jne 0x405696
mov ecx, dword [ebx + 0xa90]
lea eax, [esp + 0x60]
push eax
push 0x17
push 0x7e8
push ecx
call dword [sym.imp.USER32.dll_SendMessageA]
lea edx, [esp + 0x574]
push edx
lea eax, [esp + 0x64]
push eax
call dword [sym.imp.KERNEL32.dll_MoveFileA]
test eax, eax
jne 0x4056e6
lea ecx, [esp + 0x1c]
mov dword [esp + 0xa84], 0xffffffff
call fcn.00409b90
mov eax, 0x1000b
jmp 0x405aeb
mov edx, dword [ebx + 0xa90]
lea ecx, [esp + 0x60]
push ecx
push 0xe
push 0x7e8
push edx
call dword [sym.imp.USER32.dll_SendMessageA]
lea ecx, [esp + 0x1c]
mov dword [esp + 0xa84], 0xffffffff
call fcn.00409b90
mov eax, 0x10012
jmp 0x405aeb
mov ecx, dword [ebx + 0xa90]
lea eax, [esp + 0x60]
push eax
push 0xe
push 0x7e8
push ecx
call dword [sym.imp.USER32.dll_SendMessageA]
push edi
push edi
lea edx, [esp + 0x374]
push edx
lea eax, [esp + 0x3c]
push eax
lea ecx, [esp + 0x70]
push ecx
call fcn.00411f6f
lea edx, [esp + 0x380]
push edx
lea eax, [esp + 0x48]
push eax
lea ecx, [esp + 0x48c]
push str._s_s
push ecx
call esi
lea edx, [esp + 0x494]
push edx
call fcn.00409fc0
add esp, 0x28
test eax, eax
jne 0x40574d
lea ecx, [esp + 0x1c]
mov dword [esp + 0xa84], 0xffffffff
call fcn.00409b90
mov eax, 0x1000c
jmp 0x405aeb
mov edi, 0xf
lea eax, [esp + 0x60]
mov dword [esp + 0x5c], edi
mov dword [esp + 0x58], 0
mov byte [esp + 0x48], 0
lea edx, [eax + 1]
lea ebx, [ebx]
mov cl, byte [eax]
inc eax
test cl, cl
jne 0x405770
sub eax, edx
push eax
lea eax, [esp + 0x64]
push eax
lea ecx, [esp + 0x4c]
call fcn.00401420
mov esi, dword [esp + 0xa94]
lea ecx, [esp + 0x44]
push ecx
lea ecx, [esi + 0x218]
mov byte [esp + 0xa88], 1
call fcn.00404550
cmp dword [esp + 0x5c], 0x10
mov byte [esp + 0xa84], 0
jb 0x4057c3
mov edx, dword [esp + 0x48]
push edx
call fcn.0041166d
add esp, 4
push 0x20
mov dword [esp + 0x60], edi
xor edi, edi
push edi
lea eax, [esp + 0x68]
push eax
lea ecx, [esp + 0x28]
mov dword [esp + 0x64], edi
mov byte [esp + 0x54], 0
call fcn.00409c10
test eax, eax
je 0x4057f4
mov dword [esp + 0x10], 0x1000c
jmp 0x405aca
cmp byte [ebx + 0xa74], 1
jne 0x405889
push 0x48
call fcn.004111e0
add esp, 4
mov dword [esp + 0x2c], eax
cmp eax, edi
mov byte [esp + 0xa84], 2
je 0x405829
push 0x2000
mov ecx, eax
call fcn.0040a640
mov edi, eax
mov ecx, dword [ebp + 0x13c]
mov eax, dword [esi + 0x208]
mov edx, dword [ebp + 0x138]
push 5
push ecx
add eax, dword [ebp + 0x130]
mov ecx, dword [esi + 0x20c]
mov esi, dword [ebp + 0x134]
push edx
adc ecx, esi
push ecx
mov ecx, dword [esp + 0xa9c]
push eax
mov byte [esp + 0xa98], 0
mov dword [esp + 0x38], edi
call fcn.00409a10
push eax
mov ecx, edi
call fcn.0040a980
cmp eax, 0x10000
jne 0x4058c6
mov dword [esp + 0x10], 0x10002
jmp 0x405a8f
mov eax, dword [esi + 0x208]
add eax, dword [ebp + 0x130]
mov esi, dword [esi + 0x20c]
adc esi, dword [ebp + 0x134]
mov ecx, dword [esp + 0xa8c]
mov edx, dword [ecx]
push edi
push esi
push eax
call dword [edx + 8]
cmp eax, 0xffffffff
jne 0x4058c6
cmp edx, edi
jne 0x4058c6
mov dword [esp + 0x10], 0x10002
jmp 0x405aca
mov ecx, dword [ebp + 0x13c]
mov esi, dword [ebp + 0x138]
xor eax, eax
mov dword [esp + 0x14], eax
mov dword [esp + 0x18], eax
cmp dword [ebx + 0xa9c], 1
mov dword [esp + 0x38], ecx
je 0x405a64
jmp 0x4058f3
mov ecx, dword [esp + 0x38]
cmp byte [ebx + 0xa74], 1
jne 0x405958
test ecx, ecx
jl 0x405911
jg 0x40590a
cmp esi, 0x400
jb 0x405911
mov eax, 0x400
jmp 0x405913
mov eax, esi
mov edx, esi
or edx, ecx
je 0x405922
sub esi, eax
sbb ecx, 0
mov dword [esp + 0x38], ecx
lea eax, [esp + 0x28]
push eax
push 0x400
lea ecx, [esp + 0x680]
push ecx
mov ecx, dword [esp + 0x30]
call fcn.0040a780
mov edi, eax
cmp edi, 0x10000
mov dword [esp + 0x2c], edi
jne 0x40599a
mov dword [esp + 0x10], 0x10002
jmp 0x405a76
test ecx, ecx
jl 0x40596d
jg 0x405966
cmp esi, 0x400
jb 0x40596d
mov eax, 0x400
jmp 0x40596f
mov eax, esi
sub esi, eax
sbb ecx, 0
lea edi, [esp + 0x28]
push edi
push eax
mov dword [esp + 0x40], ecx
mov ecx, dword [esp + 0xa94]
mov edx, dword [ecx]
lea eax, [esp + 0x680]
push eax
call dword [edx + 0xc]
test eax, eax
jne 0x40594b
mov edi, dword [esp + 0x2c]
mov eax, dword [esp + 0x28]
mov edx, dword [esp + 0x14]
mov ecx, dword [esp + 0x18]
add edx, eax
adc ecx, 0
push 0
mov dword [esp + 0x1c], ecx
push eax
lea ecx, [esp + 0x680]
push ecx
lea ecx, [esp + 0x28]
mov dword [esp + 0x20], edx
call fcn.00409b30
test eax, eax
jne 0x405a6e
cmp byte [ebx + 0xa74], 1
jne 0x405a21
test edi, edi
je 0x405a76
mov eax, dword [ebp + 0x13c]
cmp dword [esp + 0x18], eax
mov ecx, dword [ebp + 0x138]
mov dword [esp + 0x3c], ecx
mov dword [esp + 0x40], eax
jg 0x405a0c
jl 0x405a02
cmp dword [esp + 0x14], ecx
ja 0x405a0c
fild qword [esp + 0x14]
fild qword [esp + 0x3c]
jmp 0x405a35
mov eax, dword [ebx + 0xa90]
push 0x3e8
push 0xc
push 0x7e8
push eax
jmp 0x405a51
mov eax, dword [esp + 0x38]
mov ecx, esi
or ecx, eax
je 0x405a76
fild qword [esp + 0x14]
fild qword [ebp + 0x138]
fdivp st(1)
fmul qword [0x41a360]
call fcn.00412194
mov edx, dword [ebx + 0xa90]
push eax
push 0xc
push 0x7e8
push edx
call dword [sym.imp.USER32.dll_SendMessageA]
cmp dword [ebx + 0xa9c], 1
jne 0x4058ef
mov dword [esp + 0x10], 1
jmp 0x405a76
mov dword [esp + 0x10], 0x1000d
mov eax, dword [ebx + 0xa90]
push 0x3e8
push 0xc
push 0x7e8
push eax
call dword [sym.imp.USER32.dll_SendMessageA]
mov esi, dword [esp + 0x24]
test esi, esi
je 0x405aa7
mov ecx, esi
call fcn.0040a940
push esi
call fcn.0041166d
add esp, 4
mov eax, dword [esp + 0x10]
test eax, eax
jne 0x405aca
add ebp, 0x128
push ebp
push 0
push 0
lea ecx, [esp + 0x28]
call fcn.00409a10
push eax
call dword [sym.imp.KERNEL32.dll_SetFileTime]
lea ecx, [esp + 0x1c]
call fcn.00409a20
lea ecx, [esp + 0x1c]
mov dword [esp + 0xa84], 0xffffffff
call fcn.00409b90
mov eax, dword [esp + 0x10]
mov ecx, dword [esp + 0xa7c]
pop edi
pop esi
pop ebp
mov dword fs:[0], ecx
mov ecx, dword [esp + 0xa6c]
pop ebx
call fcn.004120e8
add esp, 0xa78
ret