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

Disassembly:
push ebp
mov ebp, esp
and esp, 0xfffffff8
mov eax, 0x111c0
call fcn.004672e0
push esi
push edi
lea eax, [esp + 0x740]
call fcn.004159b9
lea eax, [esp + 0x38]
call fcn.00416795
push 0
push dword [ebx + 4]
xor edi, edi
push dword [ebx]
inc edi
mov dword [esp + 0x24], edi
call fcn.00459d61
add esp, 0xc
push 0x470d94
push dword [ebp + 8]
call fcn.00457dcc
pop ecx
pop ecx
test eax, eax
lea eax, [esp + 0xba8]
push eax
push dword [ebp + 8]
mov esi, ebx
jne 0x416c9b
call fcn.004170a8
test eax, eax
je 0x416be6
push 6
pop eax
jmp 0x416f32
lea eax, [esp + 0x320]
push eax
lea eax, [esp + 0xfc4]
push eax
lea eax, [esp + 0xdc0]
push eax
lea eax, [esp + 0x2c]
push eax
push dword [ebp + 0xc]
call fcn.0045869e
add esp, 0x14
lea eax, [esp + 0x20]
push eax
lea eax, [esp + 0x534]
push eax
call fcn.004561f7
lea eax, [esp + 0xdc0]
push eax
lea eax, [esp + 0x53c]
push eax
call fcn.004561c6
lea eax, [esp + 0x330]
push eax
lea eax, [esp + 0xfd4]
push eax
lea eax, [esp + 0xdd0]
push eax
lea eax, [esp + 0x3c]
push eax
lea eax, [esp + 0xbc8]
push eax
call fcn.0045869e
add esp, 0x24
lea eax, [esp + 0xfc0]
push eax
lea eax, [esp + 0x534]
push eax
call fcn.004561c6
lea eax, [esp + 0x328]
push eax
lea eax, [esp + 0x53c]
push eax
call fcn.004561c6
lea eax, [esp + 0x540]
add esp, 0x10
mov dword [ebp + 0xc], eax
jmp 0x416ca8
call fcn.004170a8
test eax, eax
jne 0x416bde
push dword [ebx]
lea eax, [esp + 0xf]
push edi
push edi
push eax
call fcn.00459994
push dword [ebx]
lea eax, [esp + 0x24]
push edi
push 4
pop esi
push esi
push eax
call fcn.00459994
push dword [ebx]
mov edi, dword [esp + 0x34]
push 1
lea eax, [esp + 0x38]
push esi
xor edi, 0x87bc
push eax
mov dword [esp + 0x44], edi
call fcn.00459994
push dword [ebx]
lea eax, [esp + 0x44]
push 1
push esi
push eax
call fcn.00459994
mov eax, dword [esp + 0x50]
add esp, 0x40
push dword [ebx]
xor eax, 0xa685
push 1
mov dword [esp + 0x28], eax
lea eax, [esp + 0x34]
push esi
push eax
call fcn.00459994
push dword [ebx]
lea eax, [esp + 0x3c]
push 1
push esi
push eax
call fcn.00459994
push dword [ebx]
lea eax, [esp + 0x58]
push 1
push esi
push eax
call fcn.00459994
push dword [ebx]
lea eax, [esp + 0x64]
push 1
push esi
push eax
call fcn.00459994
add esp, 0x40
lea eax, [esp + 0x320]
push eax
push 0x104
call dword [0x46b238]
lea eax, [esp + 0x110]
push eax
push 0
push 0x470d8c
lea eax, [esp + 0x32c]
push eax
call dword [0x46b23c]
lea eax, [esp + 0x110]
push 0x470d98
push eax
call fcn.00459652
pop ecx
pop ecx
mov dword [esp + 0x1c], eax
test eax, eax
jne 0x416d95
push 9
jmp 0x416be0
mov eax, dword [ebx + 8]
add eax, 0x2477
push eax
lea esi, [esp + 0x3c]
call fcn.004168d0
xor esi, esi
mov dword [esp + 0xc], esi
cmp edi, esi
jle 0x416e43
jmp 0x416dbb
mov edi, dword [esp + 0x14]
mov eax, dword [esp + 0xc]
add eax, 0x10000
cmp eax, edi
jle 0x416dd0
mov esi, edi
sub esi, dword [esp + 0xc]
jmp 0x416dd5
mov esi, 0x10000
push dword [ebx]
add dword [esp + 0x10], esi
push esi
lea eax, [esp + 0x11d0]
push 1
push eax
call fcn.00459994
add esp, 0x10
xor edi, edi
test esi, esi
jle 0x416e0a
lea eax, [esp + 0x38]
push eax
call fcn.004168a0
xor byte [esp + edi + 0x11c8], al
inc edi
cmp edi, esi
jl 0x416df4
push esi
lea eax, [esp + 0x11cc]
push eax
lea edi, [esp + 0x20]
call fcn.00415965
push dword [esp + 0x1c]
lea eax, [esp + 0x11cc]
push esi
push 1
push eax
call fcn.00458f46
mov eax, dword [esp + 0x1c]
add esp, 0x10
cmp eax, dword [esp + 0x14]
jl 0x416db7
xor esi, esi
push dword [esp + 0x1c]
call fcn.004596d6
mov eax, dword [esp + 0x1c]
pop ecx
cmp dword [esp + 0x20], eax
je 0x416e6f
push 0xa
pop esi
lea eax, [esp + 0x110]
push eax
call dword [0x46b1cc]
mov eax, esi
jmp 0x416f32
cmp byte [esp + 0xb], 1
jne 0x416ecc
lea eax, [esp + 0x740]
call fcn.004159b9
lea eax, [esp + 0x110]
push eax
lea eax, [esp + 0x768]
push eax
mov dword [esp + 0x75c], esi
mov dword [esp + 0x760], esi
call fcn.004561f7
push dword [ebp + 0xc]
lea eax, [esp + 0x97a]
push eax
call fcn.004561f7
add esp, 0x10
lea eax, [esp + 0x740]
call fcn.004159e9
test eax, eax
je 0x416ee9
push 0xb
jmp 0x416e59
push esi
push dword [ebp + 0xc]
lea eax, [esp + 0x118]
push eax
call dword [0x46b1dc]
test eax, eax
jne 0x416ee9
push 7
jmp 0x416e59
lea eax, [esp + 0x110]
push eax
call dword [0x46b1cc]
push esi
push 0x80
push 3
push esi
push 1
push 0x40000000
push dword [ebp + 0xc]
call dword [0x46b198]
mov edi, eax
cmp edi, 0xffffffff
je 0x416f30
lea eax, [esp + 0x30]
push eax
push esi
lea eax, [esp + 0x30]
push eax
push edi
call dword [0x46b1bc]
push edi
call dword [0x46b304]
xor eax, eax
pop edi
pop esi
mov esp, ebp
pop ebp
ret 8