Function at 0x4049b0
Capabilities:
Resolve function by parsing pe exports

Disassembly:
push 0xffffffffffffffff
push 0x409aaf
mov eax, dword fs:[0]
push eax
sub esp, 0x42c
mov eax, dword [0x40f01c]
xor eax, esp
mov dword [esp + 0x428], eax
push ebx
push ebp
push esi
push edi
mov eax, dword [0x40f01c]
xor eax, esp
push eax
lea eax, [esp + 0x440]
mov dword fs:[0], eax
mov ebp, dword [esp + 0x454]
mov ebx, ecx
mov edi, edx
mov esi, ebx
mov dword [esp + 0x18], ebx
mov dword [esp + 0x4c], 0x40a2b4
mov dword [esp + 0x50], 0x40a2b8
mov dword [esp + 0x54], 0x40a2bc
mov dword [esp + 0x58], 0x40a2c0
mov dword [esp + 0x5c], 0x40a2c4
mov dword [esp + 0x60], 0x40a2c8
mov dword [esp + 0x64], 0x40a2cc
mov dword [esp + 0x68], 0x40a2d0
mov dword [esp + 0x6c], 0x40a2d4
mov dword [esp + 0x70], 0x40a2d8
mov dword [esp + 0x74], 0x40a2dc
mov dword [esp + 0x78], 0x40a2e0
call fcn.004045a0
test al, al
je 0x404b1e
lea ecx, [esp + 0xc0]
call dword [sym.imp.MSVCP80.dll_public:_void___thiscall_std::basic_string_char__struct_std::char_traits_char___class_std::allocator_char__::constructor_void_]
push edi
lea ecx, [esp + 0xc4]
mov dword [esp + 0x44c], 0
call dword [sym.imp.MSVCP80.dll_public:_class_std::basic_string_char__struct_std::char_traits_char___class_std::allocator_char______thiscall_std::basic_string_char__struct_std::char_traits_char___class_std::allocator_char__::operator_char_const__]
push 0x40a334
lea ecx, [esp + 0xc4]
call dword [0x40a104]
push 0x40a2e4
lea ecx, [esp + 0xc4]
call dword [0x40a104]
mov eax, dword [esp + 0xc4]
mov esi, 0x10
cmp dword [esp + 0xd8], esi
jae 0x404acf
lea eax, [esp + 0xc4]
lea ecx, [esp + 0xc0]
push ecx
call fcn.00403d10
cmp dword [esp + 0xd8], esi
mov edi, dword [esp + 0xc4]
jae 0x404af3
lea edi, [esp + 0xc4]
lea edx, [esp + 0xdc]
push edx
call fcn.00404880
lea ecx, [esp + 0xc0]
mov dword [esp + 0x14], eax
mov dword [esp + 0x448], 0xffffffff
call dword [sym.imp.MSVCP80.dll_public:_void___thiscall_std::basic_string_char__struct_std::char_traits_char___class_std::allocator_char__::destructor_void_]
jmp 0x404b2f
lea eax, [esp + 0xdc]
push eax
call fcn.00404880
mov dword [esp + 0x14], eax
cmp dword [esp + 0x14], 0
je 0x404e7d
lea ecx, [esp + 0x2c]
push ecx
call dword [sym.imp.KERNEL32.dll_GetSystemTime]
add word [esp + 0x2c], 0xffff
mov edi, 0x40a2e8
lea esi, [esp + 0x108]
mov ecx, 2
xor edx, edx
repe cmpsb byte [esi], byte es:[edi]
je 0x404e44
mov edi, 0x40a2ec
lea esi, [esp + 0x108]
mov ecx, 3
xor eax, eax
repe cmpsb byte [esi], byte es:[edi]
je 0x404e44
lea ecx, [esp + 0x1c]
push ecx
lea edx, [esp + 0xf4]
push edx
call dword [sym.imp.KERNEL32.dll_FileTimeToSystemTime]
cmp dword [esp + 0x450], 0
je 0x404bd5
lea eax, [esp + 0x108]
push eax
lea ecx, [esp + 0x240]
push 0x200
push ecx
call dword [sym.imp.MSVCR80.dll_strcpy_s]
add esp, 0xc
test byte [esp + 0xdc], 0x10
je 0x404ceb
push 0x40a2f0
jmp 0x404cd5
mov ecx, dword [esp + 0xf8]
mov eax, dword [esp + 0xfc]
push 0xa
push 0x14
lea edx, [esp + 0x228]
push edx
push ecx
push eax
call dword [sym.imp.MSVCR80.dll__ui64toa_s]
movzx ecx, word [esp + 0x32]
mov edx, dword [esp + ecx*4 + 0x5c]
mov ecx, dword [esp + 0xf0]
movzx eax, word [esp + 0x36]
mov edi, dword [sym.imp.USER32.dll_wsprintfA]
add esp, 0x14
and cl, 0x10
neg cl
push eax
push edx
lea eax, [esp + 0x228]
push eax
lea edx, [esp + 0x248]
sbb ecx, ecx
and ecx, 0x37
add ecx, 0x2d
push ecx
push str._c__________1_ftp_ftp__20s__s__2u
push edx
call edi
mov cx, word [esp + 0x34]
mov ax, word [esp + 0x44]
add esp, 0x18
cmp cx, ax
ja 0x404c9a
jne 0x404c6d
mov ax, word [esp + 0x1e]
mov dx, word [esp + 0x2e]
cmp ax, dx
ja 0x404c9a
jne 0x404c6d
mov ax, word [esp + 0x22]
cmp ax, word [esp + 0x32]
ja 0x404c9a
lea eax, [esp + 0x23c]
lea esi, [eax + 1]
mov dl, byte [eax]
add eax, 1
test dl, dl
jne 0x404c77
movzx ecx, cx
push ecx
sub eax, esi
lea edx, [esp + eax + 0x240]
push str._5u
push edx
call edi
add esp, 0xc
jmp 0x404ccd
lea eax, [esp + 0x23c]
lea edx, [eax + 1]
mov cl, byte [eax]
add eax, 1
test cl, cl
jne 0x404ca4
movzx ecx, word [esp + 0x26]
sub eax, edx
movzx edx, word [esp + 0x24]
push ecx
push edx
lea eax, [esp + eax + 0x244]
push str._.2u:_.2u
push eax
call edi
add esp, 0x10
lea ecx, [esp + 0x108]
push ecx
lea edx, [esp + 0x240]
push 0x200
push edx
call dword [sym.imp.MSVCR80.dll_strcat_s]
add esp, 0xc
push 0x40a32c
lea eax, [esp + 0x240]
push 0x200
push eax
call dword [sym.imp.MSVCR80.dll_strcat_s]
add esp, 0xc
lea ecx, [esp + 0x108]
push ecx
lea ecx, [esp + 0x224]
call dword [sym.imp.MSVCP80.dll_public:_void___thiscall_std::basic_string_char__struct_std::char_traits_char___class_std::allocator_char__::constructor_char_const__]
lea edx, [esp + 0x220]
push edx
mov eax, ebp
mov dword [esp + 0x44c], 1
call fcn.00402fd0
test ebp, ebp
mov esi, eax
mov dword [esp + 0x48], esi
jne 0x404d45
call dword [sym.imp.MSVCR80.dll__invalid_parameter_noinfo]
cmp esi, dword [ebp + 4]
mov dword [esp + 0x44], ebp
je 0x404d6d
add esi, 0xc
lea eax, [esp + 0x220]
push esi
push eax
call dword [sym.imp.MSVCP80.dll_bool___cdecl_std::operator__char__struct_std::char_traits_char___class_std::allocator_char___class_std::basic_string_char__struct_std::char_traits_char___class_std::allocator_char___const___class_std::basic_string_char__struct_std::char_traits_char___class_std::allocator_char___const__]
add esp, 8
test al, al
jne 0x404d6d
lea eax, [esp + 0x44]
jmp 0x404d7c
mov ecx, dword [ebp + 4]
mov dword [esp + 0x40], ecx
mov dword [esp + 0x3c], ebp
lea eax, [esp + 0x3c]
mov esi, dword [eax]
mov edi, dword [eax + 4]
lea ecx, [esp + 0x220]
mov dword [esp + 0x448], 0xffffffff
call dword [sym.imp.MSVCP80.dll_public:_void___thiscall_std::basic_string_char__struct_std::char_traits_char___class_std::allocator_char__::destructor_void_]
test esi, esi
mov ebx, dword [ebp + 4]
je 0x404da4
cmp esi, ebp
je 0x404daa
call dword [sym.imp.MSVCR80.dll__invalid_parameter_noinfo]
cmp edi, ebx
je 0x404dd6
test esi, esi
jne 0x404db8
call dword [sym.imp.MSVCR80.dll__invalid_parameter_noinfo]
cmp edi, dword [esi + 4]
jne 0x404dc3
call dword [sym.imp.MSVCR80.dll__invalid_parameter_noinfo]
lea edx, [esp + 0x23c]
push edx
lea ecx, [edi + 0x28]
call dword [sym.imp.MSVCP80.dll_public:_class_std::basic_string_char__struct_std::char_traits_char___class_std::allocator_char______thiscall_std::basic_string_char__struct_std::char_traits_char___class_std::allocator_char__::operator_char_const__]
jmp 0x404e44
lea eax, [esp + 0x108]
push eax
lea ecx, [esp + 0x8c]
call dword [sym.imp.MSVCP80.dll_public:_void___thiscall_std::basic_string_char__struct_std::char_traits_char___class_std::allocator_char__::constructor_char_const__]
lea ecx, [esp + 0x23c]
push ecx
lea ecx, [esp + 0xa8]
mov dword [esp + 0x44c], 2
call dword [sym.imp.MSVCP80.dll_public:_void___thiscall_std::basic_string_char__struct_std::char_traits_char___class_std::allocator_char__::constructor_char_const__]
lea edx, [esp + 0x88]
push edx
lea edi, [esp + 0x80]
mov ebx, ebp
mov dword [esp + 0x44c], 3
call fcn.00402c50
lea eax, [esp + 0x88]
push eax
mov dword [esp + 0x44c], 0xffffffff
call fcn.00402200
mov esi, dword [esp + 0x14]
mov ecx, dword [esp + 0x18]
push esi
push ecx
lea ecx, [esp + 0xe4]
call fcn.00404670
test al, al
jne 0x404b4c
mov eax, dword [esi + 0x38]
test eax, eax
je 0x404e70
push eax
call dword [sym.imp.KERNEL32.dll_FindClose]
push esi
call fcn.00402be0
mov eax, 1
jmp 0x404e7f
xor eax, eax
mov ecx, dword [esp + 0x440]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebp
pop ebx
mov ecx, dword [esp + 0x428]
xor ecx, esp
call fcn.00403339
add esp, 0x438
ret 8