Function at 0xe12f10
Capabilities:
Write file on windows

Disassembly:
push ebx
mov ebx, esp
sub esp, 8
and esp, 0xfffffff0
add esp, 4
push ebp
mov ebp, dword [ebx + 4]
mov dword [esp + 4], ebp
mov ebp, esp
sub esp, 0x17c
mov eax, dword [0xa7000c]
xor eax, ebp
mov dword [ebp - 4], eax
push esi
mov eax, dword fs:[0x2c]
mov ecx, dword [eax]
mov edx, dword [0xa789bc]
cmp edx, dword [ecx + 4]
jle 0xe12f87
push 0xa789bc
call fcn.00fa718b
add esp, 4
cmp dword [0xa789bc], 0xffffffff
jne 0xe12f87
mov ecx, 0xa789c0
call fcn.00dec1a0
push 0xa441a0
call fcn.00fa7004
add esp, 4
push 0xa789bc
call fcn.00fa7141
add esp, 4
mov dword [ebp - 0x68], 0xa789c0
mov eax, dword [ebp - 0x68]
mov ecx, dword [ebp - 0x68]
mov edx, dword [eax + 4]
sub edx, dword [ecx]
sar edx, 3
cmp edx, 0x123
jae 0xe1301b
mov byte [ebp - 0x39], 1
mov dword [ebp - 0x6c], 0xa789c0
mov eax, dword [ebp - 0x6c]
mov ecx, dword [ebp - 0x6c]
mov edx, dword [eax + 4]
sub edx, dword [ecx]
sar edx, 3
xor edx, 0xaac
mov dword [ebp - 0xcc], edx
lea eax, [ebp - 0x39]
mov dword [ebp - 0x10c], eax
lea ecx, [ebp - 0xcc]
mov dword [ebp - 0x88], ecx
mov dl, byte [ebp - 0x49]
mov byte [ebp - 0x3a], dl
mov al, byte [ebp - 0x3a]
mov byte [ebp - 0x3b], al
mov ecx, dword [ebp - 0x10c]
push ecx
mov edx, dword [ebp - 0x88]
push edx
movzx eax, byte [ebp - 0x3b]
push eax
lea ecx, [ebp - 0x138]
call fcn.00ec8490
lea ecx, [ebp - 0x138]
push ecx
mov ecx, 0xa789c0
call fcn.00eb8c70
jmp 0xe13025
mov ecx, 0xa789c0
call fcn.00eb8c20
xor edx, edx
mov byte [ebp - 0x3c], dl
xor eax, eax
mov byte [ebp - 0x3d], al
xor ecx, ecx
mov byte [ebp - 0x3e], cl
mov dl, byte [ebp - 0x3c]
mov byte [ebp - 0x50], dl
mov al, byte [ebp - 0x3d]
mov byte [ebp - 0x54], al
mov cl, byte [ebp - 0x3e]
mov byte [ebp - 0x58], cl
mov edx, 0xce5c8d4f
mov dword [ebp - 0x20], 0xabd4fa2e
mov dword [ebp - 0x1c], edx
mov eax, 0xcce41422
mov dword [ebp - 0x18], 0xd15ce80e
mov dword [ebp - 0x14], eax
mov ecx, 0xce5c8d4f
mov dword [ebp - 0x120], 0xabd49859
mov dword [ebp - 0x11c], ecx
mov edx, 0xcce41422
mov dword [ebp - 0x118], 0xd15ce80e
mov dword [ebp - 0x114], edx
xor eax, eax
mov byte [ebp - 0x3f], al
mov cl, byte [ebp - 0x3f]
mov byte [ebp - 0x5c], cl
movaps xmm0, xmmword [ebp - 0x120]
movaps xmmword [ebp - 0x160], xmm0
movaps xmm0, xmmword [ebp - 0x20]
movaps xmmword [ebp - 0x150], xmm0
movaps xmm0, xmmword [ebp - 0x150]
pxor xmm0, xmmword [ebp - 0x160]
movaps xmmword [ebp - 0x170], xmm0
movaps xmm0, xmmword [ebp - 0x170]
movaps xmmword [ebp - 0x20], xmm0
lea edx, [ebp - 0x20]
mov dword [ebp - 0x8c], edx
lea ecx, [ebx + 8]
call fcn.00de4050
mov dword [ebp - 0x90], eax
mov eax, dword [ebp - 0x8c]
push eax
mov ecx, dword [ebp - 0x90]
push ecx
call fcn.00fb5c9a
add esp, 8
mov dword [ebp - 0x64], eax
cmp dword [ebp - 0x64], 0
je 0xe13468
mov edx, dword fs:[0x2c]
mov eax, dword [edx]
mov ecx, dword [0xa789bc]
cmp ecx, dword [eax + 4]
jle 0xe1315e
push 0xa789bc
call fcn.00fa718b
add esp, 4
cmp dword [0xa789bc], 0xffffffff
jne 0xe1315e
mov ecx, 0xa789c0
call fcn.00dec1a0
push 0xa441a0
call fcn.00fa7004
add esp, 4
push 0xa789bc
call fcn.00fa7141
add esp, 4
mov dword [ebp - 0x70], 0xa789c0
mov edx, dword [ebp - 0x70]
mov eax, dword [ebp - 0x70]
mov ecx, dword [edx + 4]
sub ecx, dword [eax]
sar ecx, 3
cmp ecx, 0x123
jae 0xe131f2
mov byte [ebp - 0x40], 1
mov dword [ebp - 0x74], 0xa789c0
mov edx, dword [ebp - 0x74]
mov eax, dword [ebp - 0x74]
mov ecx, dword [edx + 4]
sub ecx, dword [eax]
sar ecx, 3
xor ecx, 0xaac
mov dword [ebp - 0x94], ecx
lea edx, [ebp - 0x40]
mov dword [ebp - 0x98], edx
lea eax, [ebp - 0x94]
mov dword [ebp - 0x9c], eax
mov cl, byte [ebp - 0x5d]
mov byte [ebp - 0x41], cl
mov dl, byte [ebp - 0x41]
mov byte [ebp - 0x42], dl
mov eax, dword [ebp - 0x98]
push eax
mov ecx, dword [ebp - 0x9c]
push ecx
movzx edx, byte [ebp - 0x42]
push edx
lea ecx, [ebp - 0x12c]
call fcn.00ec8490
lea eax, [ebp - 0x12c]
push eax
mov ecx, 0xa789c0
call fcn.00eb8c70
jmp 0xe1321e
mov dword [ebp - 0x78], 0xa789c0
mov ecx, dword [ebp - 0x78]
mov dword [ebp - 0xa4], ecx
mov edx, dword [ebp - 0x78]
add edx, 4
mov dword [ebp - 0xa0], edx
mov eax, dword [ebp - 0xa0]
mov ecx, dword [ebp - 0xa4]
mov edx, dword [ecx]
mov dword [eax], edx
mov eax, dword [ebp - 0x124]
mov dword [ebp - 0x7c], eax
mov ecx, dword [ebx + 0x30]
mov dword [ebp - 0x7c], ecx
xor edx, edx
mov dword [ebp - 0xc8], 0xa483
mov dword [ebp - 0xc4], edx
mov eax, dword [ebp - 0xc8]
mov ecx, dword [ebp - 0xc4]
xor eax, 0xf
xor ecx, 0
mov dword [ebp - 0xe0], eax
mov dword [ebp - 0xdc], ecx
xor edx, edx
mov dword [ebp - 0x108], 0xf
mov dword [ebp - 0x104], edx
mov eax, dword [0xa70ae8]
xor eax, 0x2f67
mov ecx, dword [0xa70aec]
xor ecx, 0
push 0
push 2
push ecx
push eax
call fcn.00fcf660
mov dword [ebp - 0xd8], eax
mov dword [ebp - 0xd4], edx
xor edx, edx
mov dword [ebp - 0xe8], 0x4586
mov dword [ebp - 0xe4], edx
mov eax, dword [ebp - 0x108]
mov ecx, dword [ebp - 0x104]
mov edx, dword [ebp - 0xd4]
add eax, dword [ebp - 0xd8]
adc ecx, edx
add eax, 1
adc ecx, 0
mov dword [ebp - 0xf8], eax
mov dword [ebp - 0xf4], ecx
mov eax, dword [ebp - 0xe0]
mov ecx, dword [ebp - 0xdc]
mov edx, dword [ebp - 0xe4]
sub eax, dword [ebp - 0xe8]
sbb ecx, edx
mov dword [ebp - 0xf0], eax
mov dword [ebp - 0xec], ecx
mov eax, dword [ebp - 0xf0]
mov ecx, dword [ebp - 0xec]
mov edx, dword [ebp - 0xf8]
mov esi, dword [ebp - 0xf4]
push esi
push edx
push ecx
push eax
call fcn.00fcf6a0
mov dword [ebp - 0x100], eax
mov dword [ebp - 0xfc], edx
mov eax, dword [ebp - 0x100]
mov ecx, dword [ebp - 0xfc]
mov dword [ebp - 0x130], ecx
mov dword [ebp - 0xa8], eax
lea ecx, [ebx + 0x20]
call fcn.00de4050
mov dword [ebp - 0xac], eax
mov edx, dword [ebp - 0x64]
push edx
mov eax, dword [ebp - 0x7c]
push eax
mov ecx, dword [ebp - 0xa8]
push ecx
mov edx, dword [ebp - 0xac]
push edx
call fcn.00fb62bd
add esp, 0x10
push 0xa5d514
lea ecx, [ebp - 0x38]
call fcn.00de4290
mov eax, dword [ebp - 0x28]
mov dword [ebp - 0xb0], eax
cmp dword [ebp - 0xb0], 0xc
jae 0xe133c5
mov ecx, dword [ebp - 0x28]
mov dword [ebp - 0xb4], ecx
cmp dword [ebp - 0xb4], 0
jne 0xe133a8
mov dword [ebp - 0x80], 1
jmp 0xe133af
mov dword [ebp - 0x80], 0
movzx edx, byte [ebp - 0x80]
test edx, edx
jne 0xe133c5
lea eax, [ebp - 0x38]
push eax
lea ecx, [ebp - 0x38]
call fcn.00de41c0
jmp 0xe133cf
push 0
lea ecx, [ebp - 0x38]
call fcn.00dea150
mov ecx, dword [ebp - 0x28]
mov dword [ebp - 0xb8], ecx
cmp dword [ebp - 0xb8], 0
jne 0xe133ed
mov dword [ebp - 0x84], 1
jmp 0xe133f7
mov dword [ebp - 0x84], 0
movzx edx, byte [ebp - 0x84]
test edx, edx
je 0xe13454
push 7
lea ecx, [ebp - 0x38]
call fcn.00eb9650
mov dword [ebp - 0x48], 0xa5d518
mov eax, dword [ebp - 0x48]
add eax, 1
mov dword [ebp - 0xbc], eax
mov ecx, dword [ebp - 0x48]
mov dl, byte [ecx]
mov byte [ebp - 0x43], dl
add dword [ebp - 0x48], 1
cmp byte [ebp - 0x43], 0
jne 0xe1341f
mov eax, dword [ebp - 0x48]
sub eax, dword [ebp - 0xbc]
mov dword [ebp - 0xc0], eax
mov ecx, dword [ebp - 0xc0]
push ecx
push 0xa5d518
lea ecx, [ebp - 0x38]
call fcn.00de6210
lea ecx, [ebp - 0x38]
call fcn.00de6030
mov edx, dword [ebp - 0x64]
push edx
call fcn.00fb5d28
add esp, 4
lea ecx, [ebx + 8]
call fcn.00de6030
lea ecx, [ebx + 0x20]
call fcn.00de6030
pop esi
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.00fa6b7b
mov esp, ebp
pop ebp
mov esp, ebx
pop ebx
ret