Function at 0x412c90
Capabilities:
Encode data using xor
Read file on windows

Disassembly:
push 0xffffffffffffffff
push 0x419998
mov eax, dword fs:[0]
push eax
sub esp, 0x40c
mov eax, dword [0x4219cc]
xor eax, esp
mov dword [esp + 0x408], eax
push ebx
push ebp
push esi
push edi
mov eax, dword [0x4219cc]
xor eax, esp
push eax
lea eax, [esp + 0x420]
mov dword fs:[0], eax
mov eax, dword [esp + 0x438]
mov ecx, dword [esp + 0x43c]
mov edi, dword [esp + 0x430]
mov ebp, dword [esp + 0x434]
lea edx, [esp + 0x18]
push edx
mov dword [esp + 0x28], eax
mov dword [esp + 0x2c], ecx
call fcn.00401b60
push str.ldp.dat
push eax
lea eax, [esp + 0x2c]
xor esi, esi
push eax
mov dword [esp + 0x438], esi
call fcn.00403bb0
add esp, 0x10
lea ecx, [esp + 0x18]
call dword [sym.imp.MFC80.DLL_Ordinal_578]
lea ecx, [esp + 0x1c]
call dword [sym.imp.MFC80.DLL_Ordinal_310]
push 0x41cf54
lea ecx, [esp + 0x24]
mov byte [esp + 0x42c], 3
call dword [sym.imp.MFC80.DLL_Ordinal_876]
push eax
call dword [sym.imp.MSVCR80.dll_fopen]
add esp, 8
cmp eax, esi
mov dword [esp + 0x2c], eax
jne 0x412d6d
lea ecx, [esp + 0x1c]
call dword [sym.imp.MFC80.DLL_Ordinal_578]
lea ecx, [esp + 0x20]
call dword [sym.imp.MFC80.DLL_Ordinal_578]
xor al, al
jmp 0x412ffb
push eax
push 0x3e8
lea ecx, [esp + 0x3c]
push 1
push ecx
call dword [sym.imp.MSVCR80.dll_fread]
add esp, 0x10
lea edx, [esp + 0x34]
push edx
lea ecx, [esp + 0x20]
mov byte [esp + eax + 0x38], 0
call dword [sym.imp.MFC80.DLL_Ordinal_784]
lea ecx, [esp + 0x1c]
call dword [sym.imp.MFC80.DLL_Ordinal_2902]
test eax, eax
jle 0x412de9
lea eax, [esi + 1]
push eax
lea ecx, [esp + 0x20]
call dword [sym.imp.MFC80.DLL_Ordinal_865]
lea ecx, [esp + 0x1c]
push eax
push esi
call dword [sym.imp.MFC80.DLL_Ordinal_865]
push eax
call fcn.00412a70
mov cl, al
mov eax, esi
cdq
sub eax, edx
xor cl, 0x31
sar eax, 1
mov byte [esp + eax + 0x3c], cl
add esp, 8
lea ecx, [esp + 0x1c]
add esi, 2
call dword [sym.imp.MFC80.DLL_Ordinal_2902]
cmp esi, eax
jl 0x412da5
lea ecx, [esp + 0x1c]
call dword [sym.imp.MFC80.DLL_Ordinal_2902]
cdq
sub eax, edx
lea ecx, [esp + 0x34]
sar eax, 1
push ecx
lea ecx, [esp + 0x18]
mov byte [esp + eax + 0x38], 0
call dword [sym.imp.MFC80.DLL_Ordinal_304]
push 0
mov bl, 4
push 0x41bf80
lea ecx, [esp + 0x1c]
mov byte [esp + 0x430], bl
call dword [sym.imp.MFC80.DLL_Ordinal_2272]
mov esi, eax
cmp esi, 0xffffffff
je 0x412fcd
push esi
lea edx, [esp + 0x1c]
push edx
lea ecx, [esp + 0x1c]
call dword [sym.imp.MFC80.DLL_Ordinal_3997]
push eax
mov ecx, edi
mov byte [esp + 0x42c], 5
call dword [sym.imp.MFC80.DLL_Ordinal_781]
lea ecx, [esp + 0x18]
mov byte [esp + 0x428], bl
call dword [sym.imp.MFC80.DLL_Ordinal_578]
add esi, 1
push esi
lea eax, [esp + 0x1c]
push eax
lea ecx, [esp + 0x1c]
call dword [sym.imp.MFC80.DLL_Ordinal_4108]
push eax
lea ecx, [esp + 0x18]
mov byte [esp + 0x42c], 6
call dword [sym.imp.MFC80.DLL_Ordinal_781]
lea ecx, [esp + 0x18]
mov byte [esp + 0x428], bl
call dword [sym.imp.MFC80.DLL_Ordinal_578]
push 0
push 0x41bf80
lea ecx, [esp + 0x1c]
call dword [sym.imp.MFC80.DLL_Ordinal_2272]
mov esi, eax
cmp esi, 0xffffffff
je 0x412fcd
push esi
lea ecx, [esp + 0x1c]
push ecx
lea ecx, [esp + 0x1c]
call dword [sym.imp.MFC80.DLL_Ordinal_3997]
push eax
mov ecx, ebp
mov byte [esp + 0x42c], 7
call dword [sym.imp.MFC80.DLL_Ordinal_781]
lea ecx, [esp + 0x18]
mov byte [esp + 0x428], bl
call dword [sym.imp.MFC80.DLL_Ordinal_578]
add esi, 1
push esi
lea edx, [esp + 0x1c]
push edx
lea ecx, [esp + 0x1c]
call dword [sym.imp.MFC80.DLL_Ordinal_4108]
push eax
lea ecx, [esp + 0x18]
mov byte [esp + 0x42c], 8
call dword [sym.imp.MFC80.DLL_Ordinal_781]
lea ecx, [esp + 0x18]
mov byte [esp + 0x428], bl
call dword [sym.imp.MFC80.DLL_Ordinal_578]
push 0
push 0x41bf80
lea ecx, [esp + 0x1c]
call dword [sym.imp.MFC80.DLL_Ordinal_2272]
mov esi, eax
cmp esi, 0xffffffff
je 0x412fcd
push esi
lea eax, [esp + 0x1c]
push eax
lea ecx, [esp + 0x1c]
call dword [sym.imp.MFC80.DLL_Ordinal_3997]
push 0x41cf50
mov ecx, eax
mov byte [esp + 0x42c], 9
call dword [sym.imp.MFC80.DLL_Ordinal_1482]
mov edx, dword [esp + 0x24]
test eax, eax
sete cl
mov byte [edx], cl
lea ecx, [esp + 0x18]
mov byte [esp + 0x428], bl
call dword [sym.imp.MFC80.DLL_Ordinal_578]
add esi, 1
push esi
lea eax, [esp + 0x34]
push eax
lea ecx, [esp + 0x1c]
call dword [sym.imp.MFC80.DLL_Ordinal_4108]
push eax
lea ecx, [esp + 0x18]
mov byte [esp + 0x42c], 0xa
call dword [sym.imp.MFC80.DLL_Ordinal_781]
lea ecx, [esp + 0x30]
mov byte [esp + 0x428], bl
call dword [sym.imp.MFC80.DLL_Ordinal_578]
push 0x41cf50
lea ecx, [esp + 0x18]
call dword [sym.imp.MFC80.DLL_Ordinal_1482]
mov edx, dword [esp + 0x28]
test eax, eax
sete cl
mov byte [edx], cl
mov eax, dword [esp + 0x2c]
push eax
call dword [sym.imp.MSVCR80.dll_fclose]
add esp, 4
lea ecx, [esp + 0x14]
call dword [sym.imp.MFC80.DLL_Ordinal_578]
lea ecx, [esp + 0x1c]
call dword [sym.imp.MFC80.DLL_Ordinal_578]
lea ecx, [esp + 0x20]
call dword [sym.imp.MFC80.DLL_Ordinal_578]
mov al, 1
mov ecx, dword [esp + 0x420]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebp
pop ebx
mov ecx, dword [esp + 0x408]
xor ecx, esp
call fcn.00417312
add esp, 0x418
ret