Function at 0x4142b0
Capabilities:
Delete file
Move file

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x54c
mov eax, dword [0x47c554]
xor eax, ebp
mov dword [ebp - 4], eax
mov ecx, dword [ebp + 8]
mov eax, dword [ebp + 0x10]
push ebx
push esi
mov esi, dword [ebp + 0x14]
mov bl, 1
mov dword [ebp - 0x540], ecx
mov dword [ebp - 0x51c], eax
mov byte [ebp - 0x50d], bl
push edi
mov edi, dword [ebp + 0xc]
mov dword [ebp - 0x520], edi
push 0
push 0x80
push 3
push 0
push 1
test esi, esi
je 0x414317
push 0xc0000000
push ecx
call dword [sym.imp.KERNEL32.dll_CreateFileA]
mov ecx, eax
xor eax, eax
cmp ecx, 0xffffffff
cmovne eax, ecx
mov dword [esi], eax
jmp 0x414325
push closesocket
push ecx
call dword [sym.imp.KERNEL32.dll_CreateFileA]
mov ecx, eax
mov dword [ebp - 0x530], ecx
cmp ecx, 0xffffffff
je 0x414b91
push 0
push dword [0x47cea0]
push 0
push 0
push closesocket
push closesocket
push closesocket
push closesocket
push 0x84
push 0x46a930
push 0x45bc30
push 0
call dword [sym.imp.USER32.dll_CreateWindowExA]
mov ebx, dword [sym.imp.USER32.dll_SendMessageA]
lea ecx, [ebp - 0x530]
mov dword [ebp - 0x54c], ecx
lea ecx, [ebp - 0x54c]
push ecx
push 1
push 0x449
push eax
mov dword [ebp - 0x52c], eax
mov dword [ebp - 0x544], 0x412200
mov dword [ebp - 0x548], 0
call ebx
test esi, esi
jne 0x4143b8
push dword [ebp - 0x530]
call dword [sym.imp.KERNEL32.dll_CloseHandle]
push 0
push 0
push 0xba
push dword [ebp - 0x52c]
mov dword [edi + 0x18], 0
call ebx
mov dword [ebp - 0x528], eax
imul eax, eax, 0x8c
push eax
push 8
push dword [0x47ceb4]
call dword [sym.imp.KERNEL32.dll_HeapAlloc]
push str.define__s___
mov dword [edi + 0x1c], eax
lea eax, [ebp - 0x104]
push 0x100
push eax
call fcn.0043f2f3
add esp, 0xc
mov dword [ebp - 0x514], 0
mov esi, 0x46f014
mov ebx, 0x100
nop dword [eax + eax]
cmp dword [edi + 0x1c], 0
je 0x4144cf
lea ecx, [ebp - 0x104]
lea edx, [ecx + 1]
mov al, byte [ecx]
inc ecx
test al, al
jne 0x414433
sub ecx, edx
mov eax, ebx
sub eax, ecx
push 0x45bc4c
push eax
lea eax, [ebp - 0x104]
push eax
call fcn.0043f34d
lea ecx, [ebp - 0x104]
add esp, 0xc
lea edx, [ecx + 1]
nop
mov al, byte [ecx]
inc ecx
test al, al
jne 0x414460
push dword [esi]
sub ecx, edx
mov eax, ebx
sub eax, ecx
push eax
lea eax, [ebp - 0x104]
push eax
call fcn.0043f34d
lea ecx, [ebp - 0x104]
add esp, 0xc
lea edx, [ecx + 1]
mov al, byte [ecx]
inc ecx
test al, al
jne 0x414488
sub ecx, edx
mov eax, 0x45bc54
cmp dword [ebp - 0x514], 8
mov edx, 0x45bc50
cmovl eax, edx
push eax
mov eax, ebx
sub eax, ecx
push eax
lea eax, [ebp - 0x104]
push eax
call fcn.0043f34d
inc dword [ebp - 0x514]
add esi, 0x1c
add esp, 0xc
cmp esi, 0x46f110
jl 0x414420
lea ecx, [ebp - 0x104]
lea edx, [ecx + 1]
mov al, byte [ecx]
inc ecx
test al, al
jne 0x4144d8
sub ecx, edx
lea eax, [ebp - 0x104]
push str.__u__u_
sub ebx, ecx
push ebx
push eax
call fcn.0043f34d
mov dl, byte [ebp - 0x50d]
xor esi, esi
add esp, 0xc
mov dword [ebp - 0x514], esi
cmp dword [ebp - 0x528], esi
jle 0x414896
cmp dl, 1
jne 0x414896
push 0xff
lea eax, [ebp - 0x203]
push 0
push eax
call fcn.0043d400
mov ebx, dword [sym.imp.USER32.dll_SendMessageA]
lea eax, [ebp - 0x204]
add esp, 0xc
mov byte [ebp - 0x204], 0xff
push eax
push esi
push 0xc4
push dword [ebp - 0x52c]
call ebx
push 0
push 0
push esi
mov esi, dword [ebp - 0x52c]
push 0xbb
push esi
call ebx
push eax
push 0xc1
push esi
call ebx
cmp eax, 0x100
jae 0x414ba6
mov byte [ebp + eax - 0x204], 0
cmp byte [ebp - 0x204], 0
je 0x414875
lea eax, [ebp - 0x538]
push eax
lea eax, [ebp - 0x534]
push eax
push 0x100
lea eax, [ebp - 0x50c]
push eax
push 0x100
lea eax, [ebp - 0x40c]
push eax
lea eax, [ebp - 0x104]
push eax
lea eax, [ebp - 0x204]
push eax
call fcn.0040c170
add esp, 0x20
mov dword [ebp - 0x524], eax
cmp eax, 3
jl 0x414875
xor ebx, ebx
mov esi, 0x46f014
mov ecx, dword [esi]
lea eax, [ebp - 0x50c]
nop dword [eax]
mov dl, byte [ecx]
cmp dl, byte [eax]
jne 0x414610
test dl, dl
je 0x41460c
mov dl, byte [ecx + 1]
cmp dl, byte [eax + 1]
jne 0x414610
add ecx, 2
add eax, 2
test dl, dl
jne 0x4145f0
xor eax, eax
jmp 0x414615
sbb eax, eax
or eax, 1
test eax, eax
je 0x41465e
add esi, 0x1c
inc ebx
cmp esi, 0x46f110
jl 0x4145e1
mov eax, dword [ebp - 0x51c]
test eax, eax
je 0x414875
lea ecx, [ebp - 0x204]
mov dword [eax], 4
push ecx
add eax, 4
push 0x100
push eax
call fcn.0043f2f3
add esp, 0xc
xor dl, dl
mov byte [ebp - 0x50d], dl
jmp 0x41487b
cmp ebx, 9
jge 0x414625
mov eax, dword [ebp - 0x524]
cmp eax, 3
jne 0x41468a
lea eax, [ebx*8]
sub eax, ebx
cmp byte [eax*4 + 0x46f01c], 0
lea esi, [eax*4 + 0x46f01c]
je 0x4146ad
jmp 0x414625
cmp eax, 4
jne 0x414625
lea eax, [ebx*8]
sub eax, ebx
cmp byte [eax*4 + 0x46f01c], 1
lea esi, [eax*4 + 0x46f01c]
jne 0x414625
imul ecx, dword [edi + 0x18], 0x8c
lea eax, [ebp - 0x40c]
push 0x19
push eax
mov eax, dword [edi + 0x1c]
push 0x1a
add ecx, 8
add eax, ecx
push eax
call fcn.0044a3ea
imul ecx, dword [edi + 0x18], 0x8c
add esp, 0x10
mov eax, dword [edi + 0x1c]
mov byte [ecx + eax + 0x22], 0
imul ecx, dword [edi + 0x18], 0x8c
cmp dword [ebp - 0x524], 3
mov eax, dword [edi + 0x1c]
mov dword [ecx + eax + 4], ebx
jne 0x414710
cmp byte [esi], 0
jne 0x414710
imul edx, dword [edi + 0x18], 0x8c
mov ecx, dword [edi + 0x1c]
mov eax, dword [ebp - 0x534]
mov dword [edx + ecx], eax
jmp 0x41472f
mov ecx, dword [ebp - 0x534]
mov edx, dword [ebp - 0x538]
mov eax, dword [edi + 0x1c]
dec edx
shl ecx, 4
add edx, ecx
imul ecx, dword [edi + 0x18], 0x8c
mov dword [ecx + eax], edx
imul ecx, dword [edi + 0x18], 0x8c
mov eax, dword [edi + 0x1c]
push 0x65
push 0
add ecx, 0x22
add eax, ecx
push eax
call fcn.0043d400
lea eax, [ebp - 0x204]
push 0x45bc60
push eax
call fcn.0043cc10
add esp, 0x14
test eax, eax
jne 0x414778
lea eax, [ebp - 0x204]
push 0x45bc64
push eax
call fcn.0043cc10
add esp, 8
test eax, eax
je 0x4147b9
imul ecx, dword [edi + 0x18], 0x8c
add eax, 2
push 0x64
push eax
mov eax, dword [edi + 0x1c]
push 0x65
add ecx, 0x22
add eax, ecx
push eax
call fcn.0044a3ea
imul ecx, dword [edi + 0x18], 0x8c
mov eax, dword [edi + 0x1c]
push 0x45bc68
add ecx, 0x22
add eax, ecx
push eax
call fcn.0043cc10
add esp, 0x18
test eax, eax
je 0x4147b9
mov byte [eax], 0
mov esi, dword [ebp - 0x51c]
test esi, esi
je 0x414853
lea ecx, [ebp - 0x40c]
lea edx, [ecx + 1]
mov al, byte [ecx]
inc ecx
test al, al
jne 0x4147d0
sub ecx, edx
lea ebx, [esi + 4]
cmp ecx, 0x19
jb 0x41480c
mov dword [esi], 1
mov ecx, 0x23
imul esi, dword [edi + 0x18], 0x8c
mov byte [ebp - 0x50d], al
add esi, dword [edi + 0x1c]
mov edi, ebx
rep movsd dword es:[edi], dword [esi]
mov edi, dword [ebp - 0x520]
mov esi, dword [ebp - 0x51c]
imul ecx, dword [edi + 0x18], 0x8c
mov eax, dword [edi + 0x1c]
push 0x47cec0
push dword [ecx + eax]
push dword [ecx + eax + 4]
call fcn.004207d0
add esp, 0xc
test al, al
jne 0x414853
mov dword [esi], 2
mov ecx, 0x23
imul esi, dword [edi + 0x18], 0x8c
mov byte [ebp - 0x50d], al
add esi, dword [edi + 0x1c]
mov edi, ebx
rep movsd dword es:[edi], dword [esi]
mov edi, dword [ebp - 0x520]
imul edx, dword [edi + 0x18], 0x8c
add edx, dword [edi + 0x1c]
lea ecx, [edx + 8]
lea esi, [ecx + 1]
mov al, byte [ecx]
inc ecx
test al, al
jne 0x414863
sub ecx, esi
mov dword [edx + 0x88], ecx
inc dword [edi + 0x18]
mov dl, byte [ebp - 0x50d]
mov eax, dword [ebp - 0x514]
inc eax
mov esi, eax
mov dword [ebp - 0x514], eax
cmp eax, dword [ebp - 0x528]
jl 0x414512
mov ebx, dword [ebp - 0x51c]
test ebx, ebx
je 0x414a60
mov ecx, dword [edi + 0x18]
lea eax, [ecx - 1]
test eax, eax
jle 0x414a60
xor esi, esi
mov ebx, 1
mov dword [ebp - 0x514], esi
mov dword [ebp - 0x524], ebx
nop word [eax + eax]
mov dword [ebp - 0x53c], ebx
cmp dl, 1
jne 0x414b6c
mov dword [ebp - 0x528], ebx
mov eax, ecx
cmp ebx, ecx
jge 0x414a38
lea ebx, [esi + 0x8c]
mov byte [ebp - 0x515], dl
mov eax, ecx
cmp dl, 1
jne 0x414a2c
mov esi, dword [edi + 0x1c]
mov eax, dword [ebp - 0x514]
cmp dword [esi + eax + 4], 7
je 0x414a0c
lea ecx, [ebx + 8]
add eax, 8
add ecx, esi
add eax, esi
mov dl, byte [eax]
cmp dl, byte [ecx]
jne 0x414944
test dl, dl
je 0x414940
mov dl, byte [eax + 1]
cmp dl, byte [ecx + 1]
jne 0x414944
add eax, 2
add ecx, 2
test dl, dl
jne 0x414924
xor eax, eax
jmp 0x414949
sbb eax, eax
or eax, 1
test eax, eax
jne 0x414996
mov eax, dword [ebp - 0x51c]
mov ecx, 0x23
xor dl, dl
mov byte [ebp - 0x50d], dl
mov dword [eax], 0
mov esi, dword [edi + 0x1c]
lea edi, [eax + 4]
add esi, dword [ebp - 0x514]
mov eax, dword [ebp - 0x520]
rep movsd dword es:[edi], dword [esi]
mov edi, dword [ebp - 0x51c]
mov ecx, 0x23
mov esi, dword [eax + 0x1c]
add esi, ebx
add edi, 0x90
rep movsd dword es:[edi], dword [esi]
mov edi, eax
jmp 0x414a0c
mov ecx, dword [ebp - 0x514]
mov al, byte [ebp - 0x515]
mov edx, dword [ebp - 0x51c]
mov byte [ebp - 0x50d], al
mov eax, dword [esi + ecx + 4]
cmp eax, dword [esi + ebx + 4]
jne 0x414a06
mov al, byte [ebp - 0x515]
mov byte [ebp - 0x50d], al
mov eax, dword [esi + ecx]
cmp eax, dword [esi + ebx]
jne 0x414a06
mov eax, edx
mov byte [ebp - 0x50d], 0
mov dword [eax], 0
mov esi, dword [edi + 0x1c]
lea edi, [edx + 4]
mov eax, dword [ebp - 0x520]
add esi, ecx
mov ecx, 0x23
rep movsd dword es:[edi], dword [esi]
mov esi, dword [eax + 0x1c]
mov edi, edx
add esi, ebx
mov ecx, 0x23
add edi, 0x90
rep movsd dword es:[edi], dword [esi]
mov edi, eax
mov dl, byte [ebp - 0x50d]
mov esi, dword [ebp - 0x528]
add ebx, 0x8c
mov eax, dword [edi + 0x18]
inc esi
mov dword [ebp - 0x528], esi
mov ecx, eax
cmp esi, eax
jl 0x4148f5
mov esi, dword [ebp - 0x514]
mov ebx, dword [ebp - 0x524]
mov ecx, eax
inc ebx
add esi, 0x8c
mov dword [ebp - 0x524], ebx
dec eax
mov dword [ebp - 0x514], esi
cmp dword [ebp - 0x53c], eax
jl 0x4148d0
mov ebx, dword [ebp - 0x51c]
cmp dl, 1
jne 0x414b6c
test ebx, ebx
je 0x414b2f
cmp byte [0x4afd4c], 0
je 0x414b2f
push 0x47ced4
push str._sTmpMnemo.h
lea eax, [ebp - 0x30c]
push 0x105
push eax
call fcn.004038d0
mov esi, dword [ebp - 0x540]
lea eax, [ebp - 0x30c]
push eax
push esi
call fcn.00443047
add esp, 0x18
test eax, eax
je 0x414ac3
push 0xb
lea eax, [ebp - 0x30c]
push eax
push esi
call dword [sym.imp.KERNEL32.dll_MoveFileExA]
push 0x4ae238
push 0x40e290
push 0
push 0xbd
push dword [0x47cea0]
mov dword [0x4ae238], 0
mov word [0x4ae23c], 0x101
call dword [sym.imp.USER32.dll_DialogBoxParamA]
test eax, eax
jne 0x414b01
mov dword [ebx], 3
xor bl, bl
jmp 0x414b07
mov bl, byte [ebp - 0x50d]
lea eax, [ebp - 0x30c]
push eax
push esi
call fcn.00443047
add esp, 8
test eax, eax
je 0x414b28
lea eax, [ebp - 0x30c]
push eax
call dword [sym.imp.KERNEL32.dll_DeleteFileA]
cmp bl, 1
jne 0x414b72
jmp 0x414b35
mov bl, byte [ebp - 0x50d]
push 0x4158d0
push 0x8c
push dword [edi + 0x18]
push dword [edi + 0x1c]
call fcn.0044a570
add esp, 0x10
push dword [ebp - 0x52c]
call dword [sym.imp.USER32.dll_DestroyWindow]
pop edi
pop esi
mov al, bl
pop ebx
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.0043b572
mov esp, ebp
pop ebp
ret
mov bl, byte [ebp - 0x50d]
push dword [ebp - 0x52c]
call dword [sym.imp.USER32.dll_DestroyWindow]
pop edi
pop esi
mov al, bl
pop ebx
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.0043b572
mov esp, ebp
pop ebp
ret
mov ecx, dword [ebp - 4]
xor bl, bl
pop edi
pop esi
mov al, bl
xor ecx, ebp
pop ebx
call fcn.0043b572
mov esp, ebp
pop ebp
ret
call fcn.0043b497
int3