Function at 0x406430
Capabilities:
Check if file exists
Get file attributes
Get graphical window text

Disassembly:
push 0xffffffffffffffff
push 0x6427c2
mov eax, dword fs:[0]
push eax
mov eax, 0xa354
call fcn.006222c0
mov eax, dword [0x758898]
xor eax, esp
mov dword [esp + 0xa350], eax
push ebx
push ebp
push esi
push edi
mov eax, dword [0x758898]
xor eax, esp
push eax
lea eax, [esp + 0xa368]
mov dword fs:[0], eax
push 1
mov ebp, ecx
call fcn.005f93aa
lea ecx, [esp + 0x14]
call fcn.004024f0
mov dword [esp + 0xa370], 0
cmp dword [ebp + 0x1c8], 0
je 0x4065af
push 0x208
lea eax, [esp + 0x7960]
push 0
push eax
call fcn.00621270
mov edx, dword [ebp + 0x1bc]
mov edi, dword [sym.imp.USER32.dll_GetWindowTextW]
add esp, 0xc
push 0x104
lea ecx, [esp + 0x7960]
push ecx
push edx
call edi
test eax, eax
jne 0x4064f0
mov eax, dword [ebp + 0x190]
mov ecx, dword [ebp + 0x20]
push 0x30
push eax
mov eax, dword [0x75ed34]
push eax
push ecx
call fcn.00473680
add esp, 0x10
jmp 0x406a73
lea edx, [esp + 0x795c]
lea ecx, [ebp + 0x178]
push edx
call fcn.004017e0
push 0x208
lea eax, [esp + 0x7960]
push 0
push eax
call fcn.00621270
mov edx, dword [ebp + 0x1c0]
add esp, 0xc
push 0x104
lea ecx, [esp + 0x7960]
push ecx
push edx
call edi
test eax, eax
je 0x406a73
lea eax, [esp + 0x795c]
lea esi, [ebp + 0x184]
push eax
mov ecx, esi
call fcn.004017e0
mov edx, dword [ebp + 0x1c4]
push 0x27ff
lea ecx, [esp + 0x40]
push ecx
push edx
call edi
test eax, eax
je 0x40662d
push 0x2800
lea eax, [esp + 0x7b68]
push 0
push eax
call fcn.00621270
push 0x2800
lea ecx, [esp + 0x7b74]
push ecx
lea edx, [esp + 0x50]
push edx
call fcn.00407390
lea eax, [esp + 0x7b7c]
push eax
lea ecx, [esp + 0x30]
push 0x678ea8
push ecx
call fcn.00402f60
add esp, 0x24
jmp 0x40662d
mov eax, dword [ebp + 0x1bc]
mov esi, dword [sym.imp.USER32.dll_GetWindowTextA]
push 0x104
lea edx, [esp + 0x7960]
push edx
push eax
call esi
test eax, eax
je 0x406a73
push 0
lea edx, [esp + 0x7960]
lea ecx, [ebp + 0x178]
push edx
call fcn.00401970
mov ecx, dword [ebp + 0x1c0]
push 0x104
lea eax, [esp + 0x7960]
push eax
push ecx
call esi
test eax, eax
je 0x406a73
push 0
lea edx, [esp + 0x7960]
lea esi, [ebp + 0x184]
push edx
mov ecx, esi
call fcn.00401970
lea eax, [esp + 0x14]
push eax
lea ecx, [ebp + 0xc8]
call fcn.005fae1b
mov eax, dword [esi]
test eax, eax
jne 0x406636
lea eax, [esi + 4]
lea edx, [eax + 2]
lea esp, [esp]
mov cx, word [eax]
add eax, 2
test cx, cx
jne 0x406640
sub eax, edx
sar eax, 1
jne 0x406672
mov eax, dword [ebp + 0x190]
mov ecx, dword [0x75ed34]
mov edx, dword [ebp + 0x20]
push 0x30
push eax
push ecx
push edx
call fcn.00473680
add esp, 0x10
jmp 0x406a73
lea ebx, [ebp + 0x194]
mov ecx, ebx
call fcn.00402050
mov edx, dword [esp + 0x14]
mov eax, edx
lea esi, [eax + 1]
mov cl, byte [eax]
inc eax
test cl, cl
jne 0x406688
sub eax, esi
je 0x40684d
lea ecx, [esp + 0x18]
mov edi, edx
call fcn.004024f0
mov byte [esp + 0xa370], 1
lea ebx, [ebx]
push edi
lea eax, [esp + 0x1c]
push 0x678ea8
push eax
call fcn.00402f60
mov ecx, dword [esp + 0x24]
push 0x20
push ecx
call fcn.00622170
mov esi, eax
add esp, 0x14
test esi, esi
je 0x4066eb
cmp byte [esi], 0x20
jne 0x4066e9
lea ebx, [ebx]
mov byte [esi], 0
inc esi
cmp byte [esi], 0x20
je 0x4066e0
mov edi, esi
lea ecx, [esp + 0x1c]
call fcn.004024f0
mov byte [esp + 0xa370], 2
mov edx, dword [esp + 0x18]
push 0x679990
push edx
call fcn.00622230
add esp, 8
test eax, eax
je 0x406717
add eax, 3
jmp 0x40671b
mov eax, dword [esp + 0x18]
push eax
lea eax, [esp + 0x20]
push str.http:___s
push eax
call fcn.00402f60
push 0x2800
lea ecx, [esp + 0x7b74]
push 0
push ecx
call fcn.00621270
mov edx, dword [esp + 0x34]
push 0x27ff
push edx
lea eax, [esp + 0x7b84]
push eax
call fcn.006223f0
add esp, 0x24
lea ecx, [esp + 0x3c]
mov byte [esp + 0xa363], 0
call fcn.0054c120
mov byte [esp + 0xa370], 3
push 0
push 0x2800
lea ecx, [esp + 0x7b6c]
push ecx
lea ecx, [esp + 0x48]
mov byte [esp + 0x7962], 1
mov byte [esp + 0x7963], 1
call fcn.0054e670
test eax, eax
je 0x4067db
mov eax, dword [ebx]
lea edx, [eax + 1]
mov cl, byte [eax]
inc eax
test cl, cl
jne 0x4067a3
sub eax, edx
jne 0x4067c3
mov edx, dword [esp + 0x50]
push edx
push 0x678ea8
push ebx
call fcn.00402f60
add esp, 0xc
jmp 0x4067db
push 0x678e14
mov ecx, ebx
call fcn.00403060
mov eax, dword [esp + 0x50]
push eax
mov ecx, ebx
call fcn.00403060
test esi, esi
je 0x40681a
test edi, edi
je 0x40681a
mov eax, edi
lea edx, [eax + 1]
mov cl, byte [eax]
inc eax
test cl, cl
jne 0x4067e8
sub eax, edx
je 0x40681a
mov byte [esp + 0xa370], 2
lea ecx, [esp + 0x3c]
call fcn.0054c160
mov byte [esp + 0xa370], 1
lea ecx, [esp + 0x1c]
call fcn.00402560
jmp 0x4066b0
mov byte [esp + 0xa370], 2
lea ecx, [esp + 0x3c]
call fcn.0054c160
mov byte [esp + 0xa370], 1
lea ecx, [esp + 0x1c]
call fcn.00402560
mov byte [esp + 0xa370], 0
lea ecx, [esp + 0x18]
call fcn.00402560
mov ecx, dword [ebp + 0x1a0]
xor esi, esi
push esi
push esi
push pe_nt_image_headers32
push ecx
call dword [sym.imp.USER32.dll_SendMessageA]
test eax, eax
je 0x406882
mov eax, dword [ebx]
lea edx, [eax + 1]
lea esp, [esp]
mov cl, byte [eax]
inc eax
test cl, cl
jne 0x406870
sub eax, edx
je 0x406882
mov eax, 1
jmp 0x406884
xor eax, eax
mov dword [ebp + 0x198], eax
cmp dword [0x75dbac], esi
je 0x4068ae
mov eax, dword [ebp + 0x178]
cmp eax, esi
jne 0x4068a2
lea eax, [ebp + 0x17c]
push eax
call dword [sym.imp.KERNEL32.dll_GetFileAttributesW]
cmp eax, 0xffffffff
je 0x4068d1
mov eax, dword [ebp + 0x178]
cmp eax, esi
jne 0x4068be
lea eax, [ebp + 0x17c]
push 1
push eax
call fcn.004ab900
add esp, 8
test eax, eax
jne 0x406a6c
xor edx, edx
mov dword [esp + 0x30], esi
mov dword [esp + 0x38], esi
mov word [esp + 0x34], dx
mov byte [esp + 0xa370], 4
mov eax, dword [ebp + 0x178]
cmp eax, esi
jne 0x4068f8
lea eax, [ebp + 0x17c]
mov ecx, dword [0x75dd28]
mov edx, dword [0x75ed38]
push ecx
push eax
push edx
lea ecx, [esp + 0x3c]
call fcn.004021a0
mov ecx, dword [esp + 0x30]
mov eax, dword [ebp + 0x190]
cmp ecx, esi
jne 0x406922
lea ecx, [esp + 0x34]
push 4
push eax
mov eax, dword [ebp + 0x20]
push ecx
push eax
call fcn.00473810
add esp, 0x10
cmp eax, 6
jne 0x406b2b
mov eax, dword [ebp + 0x178]
cmp eax, esi
jne 0x40694b
lea eax, [ebp + 0x17c]
lea edx, [eax + 2]
mov edi, edi
mov cx, word [eax]
add eax, 2
cmp cx, si
jne 0x406950
mov ecx, dword [ebp + 0x178]
sub eax, edx
lea edi, [ebp + 0x178]
sar eax, 1
cmp ecx, esi
jne 0x406972
lea ecx, [edi + 4]
cmp word [ecx + eax*2 - 2], 0x5c
je 0x406986
push 0x679980
mov ecx, edi
call fcn.00405310
mov eax, dword [edi]
cmp eax, esi
jne 0x40698f
lea eax, [edi + 4]
add eax, 6
push 0x5c
push eax
call fcn.00622700
mov esi, eax
add esp, 8
test esi, esi
je 0x406a5b
mov bl, 5
lea esp, [esp]
mov eax, dword [edi]
test eax, eax
jne 0x4069b9
lea eax, [edi + 4]
xor ecx, ecx
mov dword [esp + 0x24], ecx
mov dword [esp + 0x2c], ecx
mov word [esp + 0x28], cx
push eax
lea ecx, [esp + 0x28]
call fcn.004017e0
mov byte [esp + 0xa370], bl
mov eax, dword [esp + 0x24]
mov ecx, eax
test eax, eax
jne 0x4069e7
lea ecx, [esp + 0x28]
mov eax, dword [edi]
test eax, eax
jne 0x4069f0
lea eax, [edi + 4]
mov edx, esi
sub edx, eax
xor eax, eax
sar edx, 1
mov word [ecx + edx*2], ax
mov eax, dword [esp + 0x24]
test eax, eax
jne 0x406a08
lea eax, [esp + 0x28]
push 1
push eax
call fcn.004ab900
add esp, 8
test eax, eax
jne 0x406a32
mov eax, dword [esp + 0x24]
test eax, eax
jne 0x406a23
lea eax, [esp + 0x28]
push 1
push eax
call fcn.004abae0
add esp, 8
test eax, eax
je 0x406aaf
push 0x5c
add esi, 2
push esi
call fcn.00622700
add esp, 8
mov esi, eax
mov byte [esp + 0xa370], 4
lea ecx, [esp + 0x24]
call fcn.00401210
test esi, esi
jne 0x4069b0
mov byte [esp + 0xa370], 0
lea ecx, [esp + 0x30]
call fcn.00401210
mov ecx, ebp
call fcn.005f67d9
mov dword [esp + 0xa370], 0xffffffff
lea ecx, [esp + 0x14]
call fcn.00402560
mov ecx, dword [esp + 0xa368]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebp
pop ebx
mov ecx, dword [esp + 0xa350]
xor ecx, esp
call fcn.00620b8d
add esp, 0xa360
ret
push 0
push 0
lea ecx, [esp + 0x20]
push ecx
push 0x400
call dword [sym.imp.KERNEL32.dll_GetLastError]
push eax
push 0
push 0x1100
call dword [sym.imp.KERNEL32.dll_FormatMessageW]
mov edx, dword [0x75dd28]
mov eax, dword [esp + 0x18]
mov ecx, dword [0x75ed3c]
push edx
push eax
push ecx
lea ecx, [esp + 0x3c]
call fcn.004021a0
mov edx, dword [esp + 0x18]
push edx
call dword [sym.imp.KERNEL32.dll_LocalFree]
mov eax, dword [esp + 0x30]
mov ecx, dword [ebp + 0x190]
test eax, eax
jne 0x406b0a
lea eax, [esp + 0x34]
push 0x30
push ecx
push eax
mov eax, dword [ebp + 0x20]
push eax
call fcn.00473810
add esp, 0x10
mov byte [esp + 0xa370], 4
lea ecx, [esp + 0x24]
call fcn.00401210
mov byte [esp + 0xa370], 0
lea ecx, [esp + 0x30]
call fcn.00401210
jmp 0x406a73