Function at 0x4049c0
Capabilities:
Check if file exists

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x46dd40
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
push ecx
mov eax, 0x2a88
call fcn.00414970
push ebx
push esi
mov esi, ecx
push edi
mov ecx, dword [ebp + 8]
mov dword [ebp - 0x10], esp
lea eax, [esi + 0x14]
lea ebx, [esi + 4]
mov dword [ebp - 0x50], eax
push ecx
mov dword [eax], 0
mov eax, dword [ebp + 0x10]
mov ecx, ebx
mov dword [ebp - 0x28], esi
mov dword [esi + 0x18], eax
mov dword [esi + 0x58], 0
call fcn.0046409f
mov ecx, ebx
call fcn.0045f44f
mov ecx, ebx
call fcn.0045f403
mov eax, dword [ebx]
mov ecx, dword [eax - 8]
test ecx, ecx
jne 0x404a44
mov eax, 3
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 0xc
lea edi, [esi + 0xac]
lea ecx, [esi + 0xa4]
lea edx, [esi + 0xa0]
push edi
push ecx
push edx
push eax
mov ecx, esi
call fcn.004060b0
test eax, eax
jne 0x404ac7
push ebx
lea edx, [ebp + 0x10]
push str.http:__
push edx
call fcn.0046421f
push eax
mov ecx, ebx
mov dword [ebp - 4], 0
call fcn.0046404f
lea ecx, [ebp + 0x10]
mov dword [ebp - 4], 0xffffffff
call fcn.00463f16
mov ebx, dword [ebx]
lea eax, [esi + 0xa4]
push edi
push eax
lea eax, [esi + 0xa0]
mov ecx, esi
push eax
push ebx
call fcn.004060b0
test eax, eax
jne 0x404ac7
mov eax, 3
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 0xc
mov eax, dword [ebp + 0xc]
test eax, eax
je 0x404ad7
push eax
lea ecx, [esi + 8]
call fcn.0046409f
lea ebx, [esi + 8]
mov ecx, ebx
call fcn.0045f44f
mov ecx, ebx
call fcn.0045f403
mov eax, dword [ebx]
mov ecx, dword [eax - 8]
test ecx, ecx
jne 0x404b09
mov eax, 3
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 0xc
lea edi, [esi + 0xc]
push ebx
mov ecx, edi
call fcn.0046404f
push str..down
mov ecx, edi
call fcn.004642f2
mov ebx, dword [ebx]
xor eax, eax
push ebx
mov dword [esi + 0x2c], eax
mov dword [esi + 0x24], eax
mov dword [esi + 0x20], eax
mov dword [esi + 0x28], eax
call dword [sym.imp.SHLWAPI.dll_PathFindFileNameA]
push eax
lea ecx, [esi + 0xa8]
call fcn.0046409f
mov dword [ebp + 0x10], 1
mov ebx, 3
push 0
mov ecx, esi
call fcn.004051a0
cmp eax, 4
ja case.0x404b61.3
jmp dword [eax*4 + 0x405138]
mov eax, dword [esi + 0x28]
test eax, eax
je case.0x404b61.3
mov eax, dword [esi + 0x18]
test eax, eax
jne 0x404cd6
mov eax, dword [esi + 8]
lea ecx, [ebp - 0x17c]
push ecx
push eax
call fcn.00465b18
test eax, eax
je 0x404cd6
push ecx
lea edi, [esi + 0x38]
mov dword [ebp + 0xc], esp
mov eax, esp
push ecx
mov ecx, esp
mov dword [ebp + 0xc], esp
push edi
mov dword [eax], 2
call fcn.00406ee0
lea edx, [ebp - 0x5c]
lea ecx, [ebp - 0x178]
push edx
call fcn.00406ef0
mov ecx, eax
call fcn.00406ed0
test eax, eax
je 0x404cd6
push ecx
mov eax, esp
mov dword [ebp + 0xc], esp
push ecx
mov dword [eax], 2
lea eax, [ebp - 0x178]
mov ecx, esp
mov dword [ebp + 0xc], esp
push eax
call fcn.00406ee0
lea ecx, [ebp - 0x64]
push ecx
mov ecx, edi
call fcn.00406ef0
mov ecx, eax
call fcn.00406ed0
test eax, eax
je 0x404cd6
mov ecx, dword [esi + 0x20]
mov eax, dword [ebp - 0x170]
cmp eax, ecx
jne 0x404cd6
mov eax, dword [esi + 0x6c]
test eax, eax
je 0x404cbe
mov eax, dword [0x4885a0]
mov dword [ebp - 0x18], eax
mov dword [ebp - 0x14], eax
lea edx, [esi + 0xa8]
mov dword [ebp - 0x20], ecx
push edx
lea ecx, [ebp - 0x18]
mov dword [ebp - 4], 1
call fcn.0046404f
mov eax, dword [ebp + 8]
lea ecx, [ebp - 0x14]
push eax
call fcn.0046409f
mov ecx, dword [esi + 0x20]
mov eax, dword [esi + 0x74]
mov edi, dword [sym.imp.USER32.dll_SendMessageA]
lea edx, [ebp - 0x24]
mov dword [ebp - 0x1c], ecx
mov ecx, dword [esi + 0x70]
push edx
push 2
push eax
push ecx
mov dword [ebp - 0x24], 2
call edi
mov eax, dword [esi + 0x74]
mov ecx, dword [esi + 0x70]
lea edx, [ebp - 0x24]
mov dword [ebp - 0x24], ebx
push edx
push 2
push eax
push ecx
call edi
mov eax, dword [esi + 0x74]
mov ecx, dword [esi + 0x70]
lea edx, [ebp - 0x24]
mov dword [ebp - 0x24], 7
push edx
push 2
push eax
push ecx
call edi
lea ecx, [ebp - 0x14]
mov dword [ebp - 4], 2
call fcn.00463f16
lea ecx, [ebp - 0x18]
mov dword [ebp - 4], 0xffffffff
call fcn.00463f16
mov eax, 1
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 0xc
lea ecx, [ebp - 0x38]
call fcn.00465daa
mov eax, dword [esi + 0xc]
push 0
push 0x3021
push eax
lea ecx, [ebp - 0x38]
mov dword [ebp - 4], ebx
call fcn.00465ebc
test eax, eax
je 0x405113
mov eax, dword [esi + 0x1c]
test eax, eax
je 0x404d17
mov edx, dword [ebp - 0x38]
push 2
push 0
lea ecx, [ebp - 0x38]
mov byte [ebp - 4], 4
call dword [edx + 0x28]
mov dword [ebp - 4], ebx
mov eax, dword [ebp + 0x10]
test eax, eax
je 0x404dc8
mov eax, dword [esi + 0x6c]
test eax, eax
je 0x404dc8
mov eax, dword [0x4885a0]
mov dword [ebp - 0x18], eax
mov dword [ebp - 0x14], eax
mov eax, dword [esi + 0x20]
lea ecx, [esi + 0xa8]
push ecx
lea ecx, [ebp - 0x18]
mov byte [ebp - 4], 6
mov dword [ebp - 0x20], eax
call fcn.0046404f
mov edx, dword [ebp + 8]
lea ecx, [ebp - 0x14]
push edx
call fcn.0046409f
mov eax, dword [esi + 0x24]
mov edx, dword [esi + 0x74]
mov edi, dword [sym.imp.USER32.dll_SendMessageA]
lea ecx, [ebp - 0x24]
mov dword [ebp - 0x1c], eax
mov eax, dword [esi + 0x70]
push ecx
push 2
push edx
push eax
mov dword [ebp - 0x24], 2
call edi
mov edx, dword [esi + 0x74]
mov eax, dword [esi + 0x70]
lea ecx, [ebp - 0x24]
mov dword [ebp - 0x24], 1
push ecx
push 2
push edx
push eax
call edi
mov edx, dword [esi + 0x74]
mov eax, dword [esi + 0x70]
lea ecx, [ebp - 0x24]
mov dword [ebp - 0x24], ebx
push ecx
push 2
push edx
push eax
call edi
mov dword [ebp + 0x10], 0
lea ecx, [ebp - 0x14]
mov byte [ebp - 4], 7
call fcn.00463f16
lea ecx, [ebp - 0x18]
mov byte [ebp - 4], bl
call fcn.00463f16
mov dword [esi + 0x2c], 0
mov ecx, dword [ebp - 0x50]
cmp dword [ecx], 0
je 0x404e3b
lea ecx, [ebp - 0x38]
call fcn.004660d7
lea ecx, [ebp - 0x38]
mov dword [ebp - 4], 0xffffffff
call fcn.00465dff
mov eax, 2
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 0xc
mov ecx, 0xa00
xor eax, eax
lea edi, [ebp - 0x2a98]
mov edx, dword [esi + 0x4c]
rep stosd dword es:[edi], eax
mov ecx, dword [esi + 0xb4]
push edx
stosb byte es:[edi], al
lea eax, [ebp - 0x2a98]
push 0x2800
push eax
push ecx
call fcn.0040b000
mov edi, eax
add esp, 0x10
test edi, edi
jg 0x404e93
lea ecx, [ebp - 0x38]
call fcn.004660d7
mov eax, dword [esi + 0x64]
lea ecx, [ebp - 0x38]
inc eax
mov dword [ebp - 4], 0xffffffff
mov dword [esi + 0x64], eax
call fcn.00465dff
jmp 0x404b4f
lea edx, [ebp - 0x2a98]
push edi
push edx
lea ecx, [ebp - 0x38]
mov byte [ebp - 4], 8
call fcn.00466013
mov edx, dword [esi + 0x2c]
mov ecx, dword [esi + 0x24]
mov eax, dword [esi + 0x6c]
add edx, edi
add ecx, edi
mov dword [ebp - 4], ebx
test eax, eax
mov dword [esi + 0x2c], edx
mov dword [esi + 0x24], ecx
je 0x404f35
mov eax, dword [ebp - 0x50]
cmp dword [eax], 0
jne 0x404f35
mov eax, dword [0x4885a0]
mov dword [ebp - 0x40], eax
mov dword [ebp - 0x3c], eax
mov dword [ebp - 0x44], ecx
mov ecx, dword [esi + 0x20]
lea edx, [esi + 0xa8]
mov dword [ebp - 0x48], ecx
push edx
lea ecx, [ebp - 0x40]
mov byte [ebp - 4], 0xa
mov dword [ebp - 0x4c], ebx
call fcn.0046404f
mov eax, dword [ebp + 8]
lea ecx, [ebp - 0x3c]
push eax
call fcn.0046409f
mov eax, dword [esi + 0x74]
lea ecx, [ebp - 0x58]
push ecx
mov ecx, dword [esi + 0x70]
push 0xc8
lea edx, [ebp - 0x4c]
push 0
push edx
push 2
push eax
push ecx
call dword [sym.imp.USER32.dll_SendMessageTimeoutA]
lea ecx, [ebp - 0x3c]
mov byte [ebp - 4], 0xb
call fcn.00463f16
lea ecx, [ebp - 0x40]
mov byte [ebp - 4], bl
call fcn.00463f16
mov edx, dword [esi + 0x2c]
mov eax, dword [esi + 0x28]
cmp edx, eax
jb 0x404dcf
lea ecx, [ebp - 0x38]
call fcn.004660d7
mov ecx, esi
call fcn.00404970
mov eax, dword [esi + 8]
mov byte [ebp - 4], 0xc
push eax
call fcn.0046620a
jmp 0x404f77
mov eax, dword [esi + 8]
mov ecx, dword [esi + 0xc]
push eax
mov dword [ebp - 4], ebx
push ecx
mov byte [ebp - 4], 0xe
call fcn.004661e8
jmp 0x404fa3
mov eax, dword [esi + 8]
mov dword [ebp - 4], ebx
push eax
call dword [sym.imp.SHLWAPI.dll_PathFileExistsA]
test eax, eax
je 0x405113
mov eax, dword [esi + 8]
lea ecx, [ebp - 0x294]
push ecx
push eax
call fcn.00465b18
mov eax, dword [esi + 8]
mov edx, dword [esi + 0x38]
lea ecx, [ebp - 0x294]
mov dword [ebp - 0x290], edx
push ecx
push eax
call fcn.00465c7d
mov eax, dword [esi + 0x6c]
test eax, eax
je 0x405050
mov eax, dword [0x4885a0]
mov dword [ebp - 0x40], eax
mov dword [ebp - 0x3c], eax
mov edx, dword [esi + 0x24]
mov eax, dword [esi + 0x20]
lea ecx, [esi + 0xa8]
mov byte [ebp - 4], 0x10
push ecx
lea ecx, [ebp - 0x40]
mov dword [ebp - 0x4c], 7
mov dword [ebp - 0x44], edx
mov dword [ebp - 0x48], eax
call fcn.0046404f
mov edx, dword [ebp + 8]
lea ecx, [ebp - 0x3c]
push edx
call fcn.0046409f
mov ecx, dword [esi + 0x74]
mov edx, dword [esi + 0x70]
lea eax, [ebp - 0x4c]
push eax
push 2
push ecx
push edx
call dword [sym.imp.USER32.dll_SendMessageA]
lea ecx, [ebp - 0x3c]
mov byte [ebp - 4], 0x11
call fcn.00463f16
lea ecx, [ebp - 0x40]
mov byte [ebp - 4], bl
call fcn.00463f16
lea ecx, [ebp - 0x38]
mov dword [ebp - 4], 0xffffffff
call fcn.00465dff
xor eax, eax
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 0xc
mov eax, 4
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 0xc
mov eax, dword [ebp - 0x50]
cmp dword [eax], 0
je 0x4050de
mov eax, 2
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 0xc
mov eax, dword [esi + 0x54]
sub eax, 0
je case.0x404b61.3
dec eax
je 0x4050ee
dec eax
je 0x4050fc
jmp case.0x404b61.3
mov eax, dword [esi + 0x58]
mov ecx, dword [esi + 0x60]
cmp eax, ecx
ja case.0x404b61.3
inc eax
mov dword [esi + 0x58], eax
mov eax, dword [esi + 0x5c]
test eax, eax
jbe 0x404b4f
push eax
call dword [sym.imp.KERNEL32.dll_Sleep]
jmp 0x404b4f
lea ecx, [ebp - 0x38]
mov dword [ebp - 4], 0xffffffff
call fcn.00465dff
mov ecx, dword [ebp - 0xc]
pop edi
mov eax, ebx
pop esi
mov dword fs:[0], ecx
pop ebx
mov esp, ebp
pop ebp
ret 0xc