Function at 0x40cc20
Capabilities:
Read .ini file

Disassembly:
push 0xffffffffffffffff
push 0x420744
mov eax, dword fs:[0]
push eax
sub esp, 0x890
mov eax, dword [0x42d028]
xor eax, esp
mov dword [esp + 0x888], eax
push ebx
push ebp
push esi
push edi
mov eax, dword [0x42d028]
xor eax, esp
push eax
lea eax, [esp + 0x8a4]
mov dword fs:[0], eax
mov eax, dword [esp + 0x8b4]
mov esi, ecx
xor ebx, ebx
push ebx
mov dword [esp + 0x20], esi
mov dword [esp + 0x1c], eax
call dword [sym.imp.MSVCP80.dll_public:_wchar_t____thiscall_std::basic_string_wchar_t__struct_std::char_traits_wchar_t___class_std::allocator_wchar_t__::operator___unsigned_int_]
cmp word [eax], bx
je 0x40ceed
push str.Download
lea ecx, [esp + 0x5c]
xor ebp, ebp
call dword [sym.imp.MSVCP80.dll_public:_void___thiscall_std::basic_string_wchar_t__struct_std::char_traits_wchar_t___class_std::allocator_wchar_t__::constructor_wchar_t_const__]
lea ecx, [esp + 0x3c]
mov dword [esp + 0x8ac], ebx
call dword [sym.imp.MSVCP80.dll_public:_void___thiscall_std::basic_string_wchar_t__struct_std::char_traits_wchar_t___class_std::allocator_wchar_t__::constructor_void_]
push 0x3fe
lea ecx, [esp + 0x4a2]
push ebx
mov byte [esp + 0x8b4], 1
push ecx
mov word [esp + 0x4a8], bx
call sub.MSVCR80.dll_memset
add esp, 0xc
push 0xa
push 0x200
lea edx, [esp + 0x4a4]
push edx
push ebx
call dword [sym.imp.MSVCR80.dll__itow_s]
add esp, 0x10
cmp eax, ebx
jne 0x40cec7
jmp 0x40ccf4
mov esi, dword [esp + 0x1c]
lea eax, [esp + 0x58]
push eax
lea ecx, [esp + 0x40]
call dword [0x42162c]
lea ecx, [esp + 0x49c]
push ecx
lea ecx, [esp + 0x40]
call dword [0x421624]
mov edx, dword [0x4218a4]
mov ecx, dword [str.none]
mov di, word [0x4218a8]
xor eax, eax
push 0x3f6
mov dword [esp + 0x7c], edx
mov dword [esp + 0xa4], edx
lea edx, [esp + 0xaa]
push ebx
push edx
mov dword [esp + 0x80], ecx
mov word [esp + 0x88], di
mov dword [esp + 0x8a], eax
mov dword [esp + 0x8e], eax
mov dword [esp + 0x92], eax
mov dword [esp + 0x96], eax
mov dword [esp + 0x9a], eax
mov dword [esp + 0x9e], eax
mov dword [esp + 0xa2], eax
mov word [esp + 0xa6], ax
mov dword [esp + 0xa8], ecx
mov word [esp + 0xb0], di
call sub.MSVCR80.dll_memset
mov ecx, 8
add esp, 0xc
cmp dword [esi + 0x18], ecx
jb 0x40cdb1
mov eax, dword [esi + 4]
jmp 0x40cdb4
lea eax, [esi + 4]
cmp dword [esp + 0x54], ecx
mov ecx, dword [esp + 0x40]
jae 0x40cdc2
lea ecx, [esp + 0x40]
push eax
push 0x200
lea eax, [esp + 0xa4]
push eax
lea edx, [esp + 0x80]
push edx
push ecx
push str.PatchLink
call dword [sym.imp.KERNEL32.dll_GetPrivateProfileStringW]
lea ecx, [esp + 0x74]
lea eax, [esp + 0x9c]
nop
mov dx, word [eax]
cmp dx, word [ecx]
jne 0x40ce16
cmp dx, bx
je 0x40ce12
mov dx, word [eax + 2]
cmp dx, word [ecx + 2]
jne 0x40ce16
add eax, 4
add ecx, 4
cmp dx, bx
jne 0x40cdf0
xor eax, eax
jmp 0x40ce1b
sbb eax, eax
sbb eax, 0xffffffff
cmp eax, ebx
jne 0x40ce27
cmp ebp, ebx
je 0x40cec7
lea ecx, [esp + 0x74]
lea eax, [esp + 0x9c]
mov dx, word [eax]
cmp dx, word [ecx]
jne 0x40ce58
cmp dx, bx
je 0x40ce54
mov dx, word [eax + 2]
cmp dx, word [ecx + 2]
jne 0x40ce58
add eax, 4
add ecx, 4
cmp dx, bx
jne 0x40ce32
xor eax, eax
jmp 0x40ce5d
sbb eax, eax
sbb eax, 0xffffffff
cmp eax, ebx
jne 0x40ce69
cmp ebp, ebx
jne 0x40cef1
lea eax, [esp + 0x9c]
push eax
lea ecx, [esp + 0x24]
call dword [sym.imp.MSVCP80.dll_public:_void___thiscall_std::basic_string_wchar_t__struct_std::char_traits_wchar_t___class_std::allocator_wchar_t__::constructor_wchar_t_const__]
mov esi, dword [esp + 0x18]
lea ecx, [esp + 0x20]
push ecx
mov byte [esp + 0x8b0], 2
call fcn.0040d290
lea ecx, [esp + 0x20]
mov byte [esp + 0x8ac], 1
call dword [sym.imp.MSVCP80.dll_public:_void___thiscall_std::basic_string_wchar_t__struct_std::char_traits_wchar_t___class_std::allocator_wchar_t__::destructor_void_]
push 0xa
push 0x200
lea edx, [esp + 0x4a4]
push edx
add ebp, 1
push ebp
call dword [sym.imp.MSVCR80.dll__itow_s]
add esp, 0x10
cmp eax, ebx
je 0x40ccf0
lea ecx, [esp + 0x3c]
mov byte [esp + 0x8ac], bl
call dword [sym.imp.MSVCP80.dll_public:_void___thiscall_std::basic_string_wchar_t__struct_std::char_traits_wchar_t___class_std::allocator_wchar_t__::destructor_void_]
lea ecx, [esp + 0x58]
mov dword [esp + 0x8ac], 0xffffffff
call dword [sym.imp.MSVCP80.dll_public:_void___thiscall_std::basic_string_wchar_t__struct_std::char_traits_wchar_t___class_std::allocator_wchar_t__::destructor_void_]
xor al, al
jmp 0x40cf19
lea ecx, [esp + 0x3c]
mov byte [esp + 0x8ac], bl
call dword [sym.imp.MSVCP80.dll_public:_void___thiscall_std::basic_string_wchar_t__struct_std::char_traits_wchar_t___class_std::allocator_wchar_t__::destructor_void_]
lea ecx, [esp + 0x58]
mov dword [esp + 0x8ac], 0xffffffff
call dword [sym.imp.MSVCP80.dll_public:_void___thiscall_std::basic_string_wchar_t__struct_std::char_traits_wchar_t___class_std::allocator_wchar_t__::destructor_void_]
mov al, 1
mov ecx, dword [esp + 0x8a4]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebp
pop ebx
mov ecx, dword [esp + 0x888]
xor ecx, esp
call fcn.0041d7b2
add esp, 0x89c
ret 4