Function at 0x410ed0
Capabilities:
Read file on windows

Disassembly:
sub esp, 0x18c
push ebx
push ebp
push esi
push edi
mov ecx, 8
xor eax, eax
mov edi, 0x428330
xor ebx, ebx
rep stosd dword es:[edi], eax
stosw word es:[edi], ax
mov ecx, 0x40
xor eax, eax
lea edi, [esp + 0x99]
mov byte [esp + 0x98], bl
rep stosd dword es:[edi], eax
mov ebp, dword [0x428430]
push 0x104
stosw word es:[edi], ax
stosb byte es:[edi], al
lea eax, [esp + 0x9c]
push eax
call fcn.00412430
mov edi, str.login2.dat
or ecx, 0xffffffff
xor eax, eax
add esp, 8
repne scasb al, byte es:[edi]
not ecx
sub edi, ecx
lea edx, [esp + 0x98]
mov esi, edi
mov edi, edx
mov edx, ecx
or ecx, 0xffffffff
repne scasb al, byte es:[edi]
mov ecx, edx
dec edi
shr ecx, 2
rep movsd dword es:[edi], dword [esi]
push ebx
push ebx
mov ecx, edx
push 4
push ebx
and ecx, 3
push ebx
lea eax, [esp + 0xac]
push SysReAllocString
push eax
rep movsb byte es:[edi], byte [esi]
call dword [sym.imp.KERNEL32.DLL_CreateFileA]
cmp eax, 0xffffffff
mov dword [0x428ca8], eax
jne 0x410f86
mov esi, dword [esp + 0x94]
xor edx, edx
mov dword [0x428ca4], edx
jmp 0x410fb9
push ebx
push 0x428ca4
lea ecx, [esp + 0x38]
push 0x63
push ecx
push eax
mov dword [0x428ca4], 0x63
call dword [sym.imp.KERNEL32.DLL_ReadFile]
mov edx, dword [0x428ca8]
mov esi, eax
push edx
call dword [sym.imp.KERNEL32.DLL_CloseHandle]
mov edx, dword [0x428ca4]
cmp esi, ebx
je 0x411202
cmp edx, 0x2b
jb 0x411202
mov ecx, 8
xor eax, eax
lea edi, [esp + 0x10]
cmp edx, 0x3b
rep stosd dword es:[edi], eax
jae 0x4110a1
mov ecx, dword [esp + 0x30]
mov eax, ebp
lea esi, [ebp + 0x1a]
mov dword [eax], ecx
mov edx, dword [esp + 0x34]
mov dword [eax + 4], edx
mov cx, word [esp + 0x38]
mov word [eax + 8], cx
mov dl, byte [esp + 0x3a]
mov byte [ebp + 0xb], bl
mov byte [eax + 0xa], dl
mov ecx, dword [esp + 0x3b]
mov eax, esi
mov dword [eax], ecx
mov edx, dword [esp + 0x3f]
mov dword [eax + 4], edx
mov cx, word [esp + 0x43]
mov word [eax + 8], cx
mov dl, byte [esp + 0x45]
mov byte [ebp + 0x25], bl
mov byte [eax + 0xa], dl
mov al, byte [esi]
cmp al, bl
je 0x411071
mov eax, esi
mov byte [esp + 0x2f], bl
mov ecx, dword [eax]
mov dword [esp + 0x10], ecx
mov edx, dword [eax + 4]
mov dword [esp + 0x14], edx
mov ecx, dword [eax + 8]
mov dword [esp + 0x18], ecx
mov edx, dword [eax + 0xc]
lea eax, [esp + 0x10]
push eax
mov dword [esp + 0x20], edx
call fcn.00404c20
mov ecx, dword [eax]
add esp, 4
mov dword [esi], ecx
mov edx, dword [eax + 4]
mov dword [esi + 4], edx
mov ecx, dword [eax + 8]
mov dword [esi + 8], ecx
mov edx, dword [eax + 0xc]
mov dword [esi + 0xc], edx
mov al, byte [esp + 0x46]
mov byte [esp + 0x56], bl
mov byte [0x429498], al
push 1
lea ecx, [esp + 0x4b]
push ecx
call fcn.0040af30
add esp, 4
push eax
call fcn.004051a0
add esp, 8
pop edi
pop esi
pop ebp
pop ebx
add esp, 0x18c
ret
cmp edx, 0x3f
jae 0x41113f
mov ecx, 6
lea esi, [esp + 0x30]
mov edi, ebp
rep movsd dword es:[edi], dword [esi]
movsw word es:[edi], word [esi]
movsb byte es:[edi], byte [esi]
mov eax, dword [esp + 0x4b]
lea esi, [ebp + 0x1a]
mov edx, esi
mov dword [edx], eax
mov ecx, dword [esp + 0x4f]
mov dword [edx + 4], ecx
mov ax, word [esp + 0x53]
mov word [edx + 8], ax
mov cl, byte [esp + 0x55]
mov byte [ebp + 0x25], bl
mov byte [edx + 0xa], cl
mov al, byte [esi]
cmp al, bl
je 0x411127
mov eax, dword [edx]
mov byte [esp + 0x2f], bl
mov dword [esp + 0x10], eax
mov ecx, dword [edx + 4]
mov dword [esp + 0x14], ecx
mov eax, dword [edx + 8]
mov dword [esp + 0x18], eax
mov ecx, dword [edx + 0xc]
lea edx, [esp + 0x10]
push edx
mov dword [esp + 0x20], ecx
call fcn.00404c20
mov ecx, dword [eax]
add esp, 4
mov dword [esi], ecx
mov edx, dword [eax + 4]
mov dword [esi + 4], edx
mov ecx, dword [eax + 8]
mov dword [esi + 8], ecx
mov edx, dword [eax + 0xc]
mov dword [esi + 0xc], edx
mov al, byte [esp + 0x56]
mov byte [esp + 0x66], bl
mov byte [0x429498], al
push 1
lea ecx, [esp + 0x5b]
jmp 0x411084
mov ecx, 0xa
lea esi, [esp + 0x30]
mov edi, ebp
rep movsd dword es:[edi], dword [esi]
movsw word es:[edi], word [esi]
mov al, byte [ebp + 0x1a]
lea esi, [ebp + 0x1a]
cmp al, bl
je 0x41119c
mov edx, esi
mov byte [esp + 0x2f], bl
mov eax, dword [edx]
mov dword [esp + 0x10], eax
mov ecx, dword [edx + 4]
mov dword [esp + 0x14], ecx
mov eax, dword [edx + 8]
mov dword [esp + 0x18], eax
mov ecx, dword [edx + 0xc]
lea edx, [esp + 0x10]
push edx
mov dword [esp + 0x20], ecx
call fcn.00404c20
mov ecx, dword [eax]
add esp, 4
mov dword [esi], ecx
mov edx, dword [eax + 4]
mov dword [esi + 4], edx
mov ecx, dword [eax + 8]
mov dword [esi + 8], ecx
mov edx, dword [eax + 0xc]
mov dword [esi + 0xc], edx
mov al, byte [esp + 0x5a]
lea ecx, [esp + 0x5b]
push 1
push ecx
mov byte [0x429498], al
mov byte [esp + 0x72], bl
call fcn.0040af30
add esp, 4
push eax
call fcn.004051a0
mov eax, dword [0x428ca4]
add esp, 8
cmp eax, 0x5f
jb 0x4111e1
mov ecx, 8
lea esi, [esp + 0x6f]
mov edi, 0x428330
rep movsd dword es:[edi], dword [esi]
mov byte [0x428350], bl
cmp eax, 0x63
jb 0x41127a
mov edx, dword [esp + 0x8f]
pop edi
pop esi
pop ebp
mov dword [0x429448], edx
pop ebx
add esp, 0x18c
ret
mov edi, 0x42052c
or ecx, 0xffffffff
xor eax, eax
lea edx, [ebp + 0x1a]
repne scasb al, byte es:[edi]
not ecx
sub edi, ecx
push ebx
mov eax, ecx
mov esi, edi
mov edi, ebp
push 0x4293d8
shr ecx, 2
rep movsd dword es:[edi], dword [esi]
mov ecx, eax
xor eax, eax
and ecx, 3
rep movsb byte es:[edi], byte [esi]
mov edi, 0x42052c
or ecx, 0xffffffff
repne scasb al, byte es:[edi]
not ecx
sub edi, ecx
mov eax, ecx
mov esi, edi
mov edi, edx
shr ecx, 2
rep movsd dword es:[edi], dword [esi]
mov ecx, eax
and ecx, 3
rep movsb byte es:[edi], byte [esi]
call fcn.0040af30
add esp, 4
push eax
call fcn.004051a0
mov eax, dword [0x42874c]
add esp, 8
test eax, 0x100000
mov byte [0x429498], 0x81
je 0x41127a
mov byte [0x429498], 0x80
pop edi
pop esi
pop ebp
pop ebx
add esp, 0x18c
ret