Function at 0x41d270
Capabilities:
Check if file exists
Get file attributes

Disassembly:
mov eax, dword fs:[0]
push 0xffffffffffffffff
push 0x474be3
push eax
mov dword fs:[0], esp
sub esp, 0x38
push ebx
push ebp
push esi
mov esi, dword [esp + 0x54]
cmp esi, 0xffffffff
push edi
mov ebp, ecx
jne 0x41d2b7
mov eax, dword [ebp + 0x5c4]
push 2
push esi
push 0x100c
push eax
call dword [sym.imp.USER32.dll_SendMessageA]
mov esi, eax
cmp esi, 0xffffffff
je 0x41d387
push 1
mov ecx, ebp
call fcn.00451d09
lea edi, [ebp + 0x5a8]
push esi
mov ecx, edi
call fcn.0044cefb
lea ecx, [eax + eax*4]
lea edx, [ebp + 0x5e4]
push edx
lea esi, [eax + ecx*2]
mov eax, dword [ebp + 0x610]
shl esi, 2
lea ecx, [eax + esi + 8]
call fcn.004534ea
mov ecx, dword [ebp + 0x610]
mov edx, dword [ebp + 0x600]
lea ebx, [ebp + 0x5e8]
mov dword [ecx + esi + 0x28], edx
mov eax, dword [ebp + 0x610]
mov ecx, dword [ebp + 0x604]
mov dword [eax + esi + 0xc], ecx
mov edx, dword [ebp + 0x610]
mov eax, dword [ebp + 0x608]
mov dword [edx + esi + 0x10], eax
mov eax, dword [ebx]
push eax
call dword [sym.imp.KERNEL32.dll_GetFileAttributesA]
cmp eax, 0xffffffff
jne 0x41d39e
mov ecx, dword [0x496a38]
mov dword [esp + 0x58], ecx
push 0xf01a
lea ecx, [esp + 0x5c]
mov dword [esp + 0x54], 0
call fcn.004539c9
mov edx, dword [esp + 0x58]
push 0x30
push str.FTP_Server
push edx
mov ecx, ebp
call fcn.00451092
mov eax, dword [ebp + 0x67c]
push 3
push 3
push eax
mov ecx, edi
call fcn.0044ce00
lea ecx, [esp + 0x58]
mov dword [esp + 0x50], 0xffffffff
call fcn.004533b1
xor eax, eax
mov ecx, dword [esp + 0x48]
pop edi
pop esi
pop ebp
pop ebx
mov dword fs:[0], ecx
add esp, 0x44
ret 4
mov ecx, dword [ebp + 0x610]
xor edi, edi
lea eax, [ecx + esi]
mov ecx, dword [ecx + esi + 0x1c]
cmp ecx, edi
jle 0x41d421
mov ecx, dword [eax + 0x18]
push ebx
add ecx, 4
call fcn.004534ea
mov edx, dword [ebp + 0x610]
mov ecx, dword [ebp + 0x5ec]
mov eax, dword [edx + esi + 0x18]
mov dword [eax + 0x1c], ecx
mov edx, dword [ebp + 0x610]
mov ecx, dword [ebp + 0x5f0]
mov eax, dword [edx + esi + 0x18]
mov dword [eax + 0x18], ecx
mov edx, dword [ebp + 0x610]
mov ecx, dword [ebp + 0x5fc]
mov eax, dword [edx + esi + 0x18]
mov dword [eax + 0xc], ecx
mov edx, dword [ebp + 0x610]
mov ecx, dword [ebp + 0x5f4]
mov eax, dword [edx + esi + 0x18]
mov dword [eax + 0x14], ecx
mov edx, dword [ebp + 0x610]
mov ecx, dword [ebp + 0x5f8]
mov eax, dword [edx + esi + 0x18]
mov dword [eax + 0x10], ecx
jmp 0x41d703
lea ecx, [esp + 0x24]
call fcn.0041f4a0
mov edx, dword [ebp + 0x5ec]
mov ecx, dword [ebp + 0x5f0]
mov dword [esp + 0x40], edx
mov edx, dword [ebp + 0x5fc]
mov dword [esp + 0x3c], ecx
mov ecx, dword [ebp + 0x5f4]
mov dword [esp + 0x30], edx
mov edx, dword [ebp + 0x5f8]
mov eax, 1
mov dword [esp + 0x38], ecx
push ebx
lea ecx, [esp + 0x2c]
mov dword [esp + 0x54], eax
mov dword [esp + 0x38], edx
mov dword [esp + 0x48], eax
call fcn.004534ea
push 0x49bfc8
lea ecx, [esp + 0x30]
call fcn.0045353a
mov eax, dword [ebp + 0x610]
lea esi, [eax + esi + 0x14]
mov dword [esp + 0x58], esi
mov eax, dword [esi + 8]
mov ebx, eax
mov dword [esp + 0x1c], ebx
inc ebx
cmp ebx, edi
jne 0x41d4d9
mov ebx, dword [esi + 4]
cmp ebx, edi
je 0x41d4ce
mov ecx, eax
dec eax
test ecx, ecx
je 0x41d4bf
lea edi, [eax + 1]
mov edx, dword [ebx]
push 0
mov ecx, ebx
call dword [edx + 4]
add ebx, 0x24
dec edi
jne 0x41d4ae
xor edi, edi
mov eax, dword [esi + 4]
push eax
call fcn.004539be
add esp, 4
mov dword [esi + 4], edi
mov dword [esi + 0xc], edi
mov dword [esi + 8], edi
jmp 0x41d6db
mov ecx, dword [esi + 4]
cmp ecx, edi
jne 0x41d54c
lea edi, [ebx + ebx*8]
shl edi, 2
push edi
call fcn.00453995
mov edx, eax
mov ecx, edi
mov dword [esi + 4], edx
mov dword [esp + 0x5c], edx
mov edi, edx
mov edx, ecx
xor eax, eax
add esp, 4
shr ecx, 2
rep stosd dword es:[edi], eax
mov ecx, edx
and ecx, 3
rep stosb byte es:[edi], al
lea eax, [ebx]
mov dword [esp + 0x10], eax
mov edi, dword [esp + 0x58]
mov dword [esp + 0x18], edi
test edi, edi
mov byte [esp + 0x50], 2
je 0x41d52a
mov ecx, edi
call fcn.0041f4a0
mov eax, dword [esp + 0x10]
add edi, 0x24
dec eax
mov byte [esp + 0x50], 1
mov dword [esp + 0x58], edi
mov dword [esp + 0x10], eax
jne 0x41d512
mov dword [esi + 0xc], ebx
mov dword [esi + 8], ebx
jmp 0x41d6db
mov edi, dword [esi + 0xc]
cmp ebx, edi
jg 0x41d5f1
cmp eax, ebx
jge 0x41d5bc
mov edx, ebx
sub edx, eax
lea eax, [eax + eax*8]
lea edi, [ecx + eax*4]
lea ecx, [edx + edx*8]
shl ecx, 2
mov esi, ecx
xor eax, eax
shr ecx, 2
mov dword [esp + 0x10], edi
rep stosd dword es:[edi], eax
mov ecx, esi
and ecx, 3
rep stosb byte es:[edi], al
mov ecx, edx
dec edx
test ecx, ecx
je 0x41d5b0
mov esi, dword [esp + 0x10]
lea edi, [edx + 1]
mov dword [esp + 0x18], esi
test esi, esi
mov byte [esp + 0x50], 3
je 0x41d5a1
mov ecx, esi
call fcn.0041f4a0
add esi, 0x24
dec edi
mov byte [esp + 0x50], 1
mov dword [esp + 0x10], esi
jne 0x41d58d
mov esi, dword [esp + 0x58]
mov dword [esi + 8], ebx
jmp 0x41d6db
jle 0x41d5b4
lea edx, [ebx + ebx*8]
sub eax, ebx
lea edi, [ecx + edx*4]
mov ecx, eax
dec eax
test ecx, ecx
je 0x41d5b4
inc eax
mov dword [esp + 0x58], eax
mov edx, dword [edi]
push 0
mov ecx, edi
call dword [edx + 4]
mov eax, dword [esp + 0x58]
add edi, 0x24
dec eax
mov dword [esp + 0x58], eax
jne 0x41d5d2
mov dword [esi + 8], ebx
jmp 0x41d6db
mov ecx, dword [esi + 0x10]
test ecx, ecx
jne 0x41d61c
cdq
and edx, 7
add eax, edx
mov ecx, eax
sar ecx, 3
cmp ecx, 4
jge 0x41d60f
mov ecx, 4
jmp 0x41d61c
cmp ecx, 0x400
jle 0x41d61c
mov ecx, 0x400
lea eax, [edi + ecx]
cmp ebx, eax
jge 0x41d629
mov dword [esp + 0x10], eax
jmp 0x41d62f
mov dword [esp + 0x10], ebx
mov eax, ebx
lea eax, [eax + eax*8]
shl eax, 2
push eax
call fcn.00453995
mov ecx, dword [esi + 8]
mov esi, dword [esi + 4]
mov edi, eax
mov dword [esp + 0x1c], eax
lea ecx, [ecx + ecx*8]
add esp, 4
shl ecx, 2
mov edx, ecx
shr ecx, 2
rep movsd dword es:[edi], dword [esi]
mov ecx, edx
mov edx, ebx
and ecx, 3
rep movsb byte es:[edi], byte [esi]
mov ecx, dword [esp + 0x58]
mov ecx, dword [ecx + 8]
sub edx, ecx
lea ecx, [ecx + ecx*8]
lea edi, [eax + ecx*4]
lea ecx, [edx + edx*8]
shl ecx, 2
mov esi, ecx
xor eax, eax
shr ecx, 2
mov dword [esp + 0x14], edi
rep stosd dword es:[edi], eax
mov ecx, esi
and ecx, 3
rep stosb byte es:[edi], al
mov eax, edx
dec edx
test eax, eax
je 0x41d6ba
mov esi, dword [esp + 0x14]
lea edi, [edx + 1]
mov dword [esp + 0x20], esi
test esi, esi
mov byte [esp + 0x50], 4
je 0x41d6ab
mov ecx, esi
call fcn.0041f4a0
add esi, 0x24
dec edi
mov byte [esp + 0x50], 1
mov dword [esp + 0x14], esi
jne 0x41d697
mov esi, dword [esp + 0x58]
mov eax, dword [esi + 4]
push eax
call fcn.004539be
mov ecx, dword [esp + 0x1c]
mov edx, dword [esp + 0x14]
add esp, 4
mov dword [esi + 4], ecx
mov dword [esi + 8], ebx
mov dword [esi + 0xc], edx
mov edx, dword [esi + 4]
lea eax, [esp + 0x24]
push eax
mov eax, dword [esp + 0x20]
lea ecx, [eax + eax*8]
lea ecx, [edx + ecx*4]
call fcn.0041f810
lea ecx, [esp + 0x24]
mov dword [esp + 0x50], 0xffffffff
call fcn.0041f4e0
lea eax, [ebp + 0x60c]
lea ecx, [ebp + 0x620]
push eax
call fcn.00420400
mov eax, 1
jmp 0x41d389