Function at 0x410f9b
Capabilities:
Read file on windows

Disassembly:
push ebp
mov ebp, esp
push edi
push esi
push ebx
sub esp, 0x87c
mov esi, dword [ebp + 8]
lea edi, [ebp - 0x848]
cld
mov ecx, 0xa
mov eax, 0
rep stosd dword es:[edi], eax
mov dword [ebp - 0x848], 0x4a4
mov dword [esp + 4], 0x46453e
mov eax, dword [ebp + 0xc]
mov dword [esp], eax
call sub.msvcrt.dll_fopen
test eax, eax
jne 0x411044
mov dword [ebp - 0x848], 0x4a3
mov dword [esi], 0x4a3
mov eax, dword [ebp - 0x844]
mov dword [esi + 4], eax
mov eax, dword [ebp - 0x840]
mov dword [esi + 8], eax
mov eax, dword [ebp - 0x83c]
mov dword [esi + 0xc], eax
mov eax, dword [ebp - 0x838]
mov dword [esi + 0x10], eax
mov eax, dword [ebp - 0x834]
mov dword [esi + 0x14], eax
mov eax, dword [ebp - 0x830]
mov dword [esi + 0x18], eax
mov eax, dword [ebp - 0x82c]
mov dword [esi + 0x1c], eax
mov eax, dword [ebp - 0x828]
mov dword [esi + 0x20], eax
mov eax, dword [ebp - 0x824]
mov dword [esi + 0x24], eax
jmp 0x41133a
mov dword [esp + 0xc], eax
mov dword [esp + 8], 0x800
mov dword [esp + 4], 1
lea ebx, [ebp - 0x818]
mov dword [esp], ebx
call sub.msvcrt.dll_fread
mov byte [ebp + eax - 0x818], 0
mov dword [esp + 4], 0x4642fd
mov dword [esp], ebx
call sub.msvcrt.dll_strtok
mov edi, eax
mov dword [ebp - 0x848], 0
mov dword [ebp - 0x844], 0
mov eax, dword [ebp + 0x10]
mov dword [esp], eax
call sub.msvcrt.dll__strdup
mov dword [ebp - 0x82c], eax
mov byte [ebp - 0x849], 0
test edi, edi
je 0x411269
mov dword [esp + 4], str.HTTP_1.0_4
mov dword [esp], edi
call fcn.0040ff52
mov ebx, eax
test eax, eax
jne 0x4110e0
mov dword [esp + 4], str.HTTP_1.1_4
mov dword [esp], edi
call fcn.0040ff52
mov ebx, eax
test eax, eax
je 0x411100
lea eax, [ebx - 1]
mov dword [esp], eax
call sub.msvcrt.dll_atoi
mov dword [ebp - 0x844], eax
mov dword [ebp - 0x848], 0x4a4
jmp 0x411269
cmp byte [ebp - 0x849], 0
jne 0x411148
mov dword [esp + 4], str.BEGIN_ACTIVATION_RESPONSE
mov dword [esp], edi
call fcn.0040ff52
test eax, eax
je 0x411124
mov byte [ebp - 0x849], 1
cmp byte [ebp - 0x849], 0
jne 0x411148
mov dword [esp + 4], 0x4642fd
mov dword [esp], 0
call sub.msvcrt.dll_strtok
mov edi, eax
jmp 0x411261
mov dword [esp + 4], str.activation
mov dword [esp], edi
call fcn.0040ff52
mov ebx, eax
test eax, eax
je 0x4111bc
mov edi, eax
cld
mov ecx, 0xffffffff
mov al, 0
repne scasb al, byte es:[edi]
not ecx
dec ecx
shr ecx, 1
mov dword [ebp - 0x83c], ecx
mov dword [esp], ecx
call fcn.004131ff
mov dword [ebp - 0x840], eax
mov ecx, 0
cmp dword [ebp - 0x83c], 0
je 0x41124b
movsx eax, byte [ebx + ecx*2]
sub eax, 0x41
shl eax, 4
add al, byte [ebx + ecx*2 + 1]
sub al, 0x41
mov edx, dword [ebp - 0x840]
mov byte [edx + ecx], al
inc ecx
cmp dword [ebp - 0x83c], ecx
jne 0x411195
jmp 0x41124b
mov dword [esp + 4], str.maxver
mov dword [esp], edi
call fcn.0040ff52
test eax, eax
je 0x4111e0
mov dword [esp], eax
call sub.msvcrt.dll__strdup
mov dword [ebp - 0x830], eax
jmp 0x41124b
mov dword [esp + 4], str.reg
mov dword [esp], edi
call fcn.0040ff52
test eax, eax
je 0x411205
cmp byte [eax], 0x31
sete al
movzx eax, al
mov dword [ebp - 0x824], eax
jmp 0x41124b
mov dword [esp + 4], str.err
mov dword [esp], edi
call fcn.0040ff52
test eax, eax
je 0x411229
mov dword [esp], eax
call sub.msvcrt.dll_atoi
mov dword [ebp - 0x848], eax
jmp 0x41124b
mov dword [esp + 4], 0x46431e
mov dword [esp], edi
call fcn.0040ff52
test eax, eax
je 0x41124b
mov dword [esp], eax
call sub.msvcrt.dll_atoi
mov dword [ebp - 0x844], eax
mov dword [esp + 4], 0x4642fd
mov dword [esp], 0
call sub.msvcrt.dll_strtok
mov edi, eax
test edi, edi
jne 0x4110b4
cmp dword [ebp - 0x848], 0
jne 0x4112e1
mov dword [esp + 4], 0
mov eax, dword [ebp - 0x844]
mov dword [esp + 8], eax
mov eax, dword [ebp - 0x840]
mov dword [esp + 0xc], eax
mov eax, dword [ebp - 0x83c]
mov dword [esp + 0x10], eax
mov eax, dword [ebp - 0x838]
mov dword [esp + 0x14], eax
mov eax, dword [ebp - 0x834]
mov dword [esp + 0x18], eax
mov eax, dword [ebp - 0x830]
mov dword [esp + 0x1c], eax
mov eax, dword [ebp - 0x82c]
mov dword [esp + 0x20], eax
mov eax, dword [ebp - 0x828]
mov dword [esp + 0x24], eax
mov eax, dword [ebp - 0x824]
mov dword [esp + 0x28], eax
mov dword [esp], esi
call fcn.0040fe30
sub esp, 4
jmp 0x41133a
mov eax, dword [ebp - 0x848]
mov dword [esi], eax
mov eax, dword [ebp - 0x844]
mov dword [esi + 4], eax
mov eax, dword [ebp - 0x840]
mov dword [esi + 8], eax
mov eax, dword [ebp - 0x83c]
mov dword [esi + 0xc], eax
mov eax, dword [ebp - 0x838]
mov dword [esi + 0x10], eax
mov eax, dword [ebp - 0x834]
mov dword [esi + 0x14], eax
mov eax, dword [ebp - 0x830]
mov dword [esi + 0x18], eax
mov eax, dword [ebp - 0x82c]
mov dword [esi + 0x1c], eax
mov eax, dword [ebp - 0x828]
mov dword [esi + 0x20], eax
mov eax, dword [ebp - 0x824]
mov dword [esi + 0x24], eax
mov eax, esi
lea esp, [ebp - 0xc]
pop ebx
pop esi
pop edi
pop ebp
ret 4