Function at 0x40679c
Capabilities:
Get file size
Read file on windows

Disassembly:
push ebp
lea ebp, [esp - 0x1a4]
sub esp, 0x224
mov eax, dword [0x5e2ec0]
xor eax, ebp
mov dword [ebp + 0x1a0], eax
mov eax, dword [ebp + 0x1ac]
push edi
xor edi, edi
push edi
push 0x80
push 3
push edi
push 1
mov dword [ebp - 0x68], eax
mov eax, dword [ebp + 0x1b0]
push connect
push eax
call dword [sym.imp.KERNEL32.dll_CreateFileA]
mov dword [ebp - 0x78], eax
cmp eax, 0xffffffff
jne 0x4067ef
xor eax, eax
jmp 0x406aab
push ebx
push esi
lea ecx, [ebp - 0x74]
push ecx
push eax
mov dword [ebp - 0x74], edi
mov dword [ebp - 0x70], edi
call dword [sym.imp.KERNEL32.dll_GetFileSize]
mov dword [ebp - 0x74], eax
inc eax
push eax
push 0x40
call dword [sym.imp.KERNEL32.dll_GlobalAlloc]
mov esi, 0xff
mov ebx, eax
push esi
lea eax, [ebp - 0x5f]
push edi
push eax
mov dword [ebp - 0x7c], ebx
mov byte [ebp - 0x60], 0
call fcn.0055bfc0
add esp, 0xc
cmp ebx, edi
je 0x406aa6
push edi
lea eax, [ebp - 0x80]
push eax
push dword [ebp - 0x74]
push ebx
push dword [ebp - 0x78]
call dword [sym.imp.KERNEL32.dll_ReadFile]
test eax, eax
je 0x406a9f
push esi
lea eax, [ebp + 0xa1]
push edi
push eax
mov dword [ebp - 0x64], ebx
mov byte [ebp + 0xa0], 0
call fcn.0055bfc0
mov ebx, dword [sym.imp.SHLWAPI.dll_StrStrA]
add esp, 0xc
jmp 0x406872
xor edi, edi
push str.protocol
push dword [ebp - 0x64]
call ebx
cmp eax, edi
je 0x406896
push edi
push eax
lea eax, [ebp + 0xa0]
push eax
call fcn.004037e6
add esp, 0xc
mov dword [ebp - 0x64], eax
jmp 0x406899
mov dword [ebp - 0x64], edi
cmp dword [ebp - 0x64], edi
je 0x406a93
push dword [ebp - 0x68]
lea edi, [ebp + 0xa0]
mov ecx, str.Protocol
call fcn.004036cd
pop ecx
mov esi, str._r_n_t_t
push esi
push dword [ebp - 0x64]
call ebx
mov edi, eax
test edi, edi
je 0x406a93
push esi
lea eax, [edi + 5]
push eax
call ebx
test eax, eax
je 0x406a93
sub eax, edi
push eax
lea eax, [ebp - 0x60]
push edi
push eax
call fcn.0055bc50
add esp, 0xc
mov edi, str.name
push edi
lea eax, [ebp - 0x60]
push eax
call ebx
test eax, eax
je 0x406933
push edi
push dword [ebp - 0x64]
call ebx
test eax, eax
je 0x40691b
push 0
push eax
lea eax, [ebp + 0xa0]
push eax
call fcn.004037e6
add esp, 0xc
mov dword [ebp - 0x64], eax
jmp 0x40691f
and dword [ebp - 0x64], 0
push dword [ebp - 0x68]
lea edi, [ebp + 0xa0]
mov ecx, str.Name
call fcn.004036cd
pop ecx
mov edi, 0x100
push edi
lea eax, [ebp - 0x60]
push 0
push eax
call fcn.0055bfc0
add esp, 0xc
push esi
push dword [ebp - 0x64]
call ebx
mov dword [ebp - 0x6c], eax
test eax, eax
je 0x406a93
push esi
add eax, 5
push eax
call ebx
test eax, eax
je 0x406a93
sub eax, dword [ebp - 0x6c]
push eax
push dword [ebp - 0x6c]
lea eax, [ebp - 0x60]
push eax
call fcn.0055bc50
add esp, 0xc
push str.password
lea eax, [ebp - 0x60]
push eax
call ebx
test eax, eax
je 0x4069cb
push str.password
push dword [ebp - 0x64]
call ebx
test eax, eax
je 0x4069ae
push 0
push eax
lea eax, [ebp + 0xa0]
push eax
call fcn.004037e6
add esp, 0xc
mov dword [ebp - 0x64], eax
jmp 0x4069b2
and dword [ebp - 0x64], 0
push dword [ebp - 0x68]
lea edi, [ebp + 0xa0]
mov ecx, str.Password
call fcn.004036cd
pop ecx
mov edi, 0x100
push edi
lea eax, [ebp - 0x60]
push 0
push eax
call fcn.0055bfc0
add esp, 0xc
push esi
push dword [ebp - 0x64]
call ebx
mov dword [ebp - 0x6c], eax
test eax, eax
je 0x406a93
push esi
add eax, 5
push eax
call ebx
test eax, eax
je 0x406a93
sub eax, dword [ebp - 0x6c]
push eax
push dword [ebp - 0x6c]
lea eax, [ebp - 0x60]
push eax
call fcn.0055bc50
add esp, 0xc
mov esi, str.alias
push esi
lea eax, [ebp - 0x60]
push eax
call ebx
test eax, eax
je 0x406a5b
push esi
push dword [ebp - 0x64]
call ebx
test eax, eax
je 0x406a3e
push 0
push eax
lea eax, [ebp + 0xa0]
push eax
call fcn.004037e6
add esp, 0xc
mov dword [ebp - 0x64], eax
jmp 0x406a42
and dword [ebp - 0x64], 0
push dword [ebp - 0x68]
lea edi, [ebp + 0xa0]
mov ecx, str.Alias
call fcn.004036cd
pop ecx
mov edi, 0x100
inc dword [ebp - 0x70]
push edi
lea eax, [ebp - 0x60]
push 0
push eax
call fcn.0055bfc0
push edi
lea eax, [ebp + 0xa0]
push 0
push eax
call fcn.0055bfc0
mov edi, dword [ebp - 0x68]
add esp, 0x18
mov esi, 0x5d3ad4
call fcn.00403769
cmp dword [ebp - 0x64], 0
jne 0x406870
push dword [ebp - 0x78]
call dword [sym.imp.KERNEL32.dll_CloseHandle]
mov ebx, dword [ebp - 0x7c]
push ebx
call dword [sym.imp.KERNEL32.dll_GlobalFree]
mov eax, dword [ebp - 0x70]
pop esi
pop ebx
mov ecx, dword [ebp + 0x1a0]
xor ecx, ebp
pop edi
call fcn.0055a67a
add ebp, 0x1a4
leave
ret