Function at 0x46a870
Capabilities:
Write file on windows

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x55e541
mov eax, dword fs:[0]
push eax
mov eax, 0x106c
call fcn.00464ee0
mov eax, dword [0x5c24ac]
xor eax, ebp
mov dword [ebp - 0x10], eax
push ebx
push esi
push edi
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov esi, ecx
mov eax, dword [ebp + 8]
lea ecx, [ebp - 0x1038]
mov edi, dword [ebp + 0x10]
push 0
push 0
push 0
push 0
push 0
mov dword [ebp - 0x102c], eax
mov dword [ebp - 0x1048], edi
call fcn.0046b0c0
push 0xbb8
push 2
lea ecx, [ebp - 0x1038]
mov dword [ebp - 4], 0
call fcn.0046b140
push 5
push 3
lea ecx, [ebp - 0x1038]
call fcn.0046b140
lea ecx, [ebp - 0x1044]
call fcn.0046b410
cmp dword [edi + 0x14], 8
mov byte [ebp - 4], 1
jb 0x46a90c
mov edx, dword [edi]
jmp 0x46a90e
mov edx, edi
xor eax, eax
mov dword [ebp - 0x1014], 7
mov dword [ebp - 0x1018], 0
mov word [ebp - 0x1028], ax
cmp word [edx], ax
jne 0x46a934
xor ecx, ecx
jmp 0x46a955
mov ecx, edx
lea edi, [ecx + 2]
nop dword [eax]
mov ax, word [ecx]
add ecx, 2
test ax, ax
jne 0x46a940
sub ecx, edi
mov edi, dword [ebp - 0x1048]
sar ecx, 1
push ecx
push edx
lea ecx, [ebp - 0x1028]
call fcn.00419ff0
lea eax, [ebp - 0x1028]
mov byte [ebp - 4], 2
push eax
lea ecx, [ebp - 0x1038]
call fcn.0046b010
push eax
lea ecx, [ebp - 0x1044]
call fcn.0046b880
test al, al
mov byte [ebp - 4], 1
mov eax, dword [ebp - 0x1014]
sete bl
cmp eax, 8
jb 0x46a9ab
inc eax
lea ecx, [ebp - 0x1028]
push eax
push dword [ebp - 0x1028]
call fcn.0041a100
lea ecx, [ebp - 0x1044]
test bl, bl
jne 0x46ac1a
call fcn.0046b760
test al, al
jne 0x46abf9
lea ecx, [ebp - 0x1044]
call fcn.0046b710
mov ebx, eax
test ebx, ebx
je 0x46abf9
mov ecx, dword [esi]
mov eax, dword [esi + 4]
mov dword [ebp - 0x1050], eax
test ecx, ecx
je 0x46aa2a
mov eax, dword [ecx]
sub esp, 8
xorps xmm0, xmm0
movsd qword [esp], xmm0
push 0
push 0
push edi
call dword [eax + 0xc]
mov ecx, dword [esi]
push ebx
mov eax, dword [ecx]
call dword [eax + 4]
mov ecx, dword [esi]
push dword [ebp - 0x1050]
mov eax, dword [ecx]
call dword [eax + 8]
mov ecx, dword [esi]
sub esp, 8
xorps xmm0, xmm0
mov eax, dword [ecx]
movsd qword [esp], xmm0
push 0
push ebx
push edi
call dword [eax + 0xc]
push 0x1000
lea eax, [ebp - 0x1010]
mov dword [ebp - 0x1030], 0
push 0
push eax
call fcn.00485370
add esp, 0xc
mov dword [ebp - 0x1070], ebx
xorps xmm0, xmm0
mov dword [ebp - 0x106c], 0
movlpd qword [ebp - 0x1068], xmm0
call dword [sym.imp.KERNEL32.dll_GetTickCount]
xorps xmm0, xmm0
mov dword [ebp - 0x1078], eax
mov dword [ebp - 0x1074], eax
mov eax, dword [ebp - 0x1064]
movups xmmword [ebp - 0x1060], xmm0
test eax, eax
ja 0x46aae9
jb 0x46aa95
cmp dword [ebp - 0x1068], ebx
jae 0x46aaef
mov ecx, dword [esi]
test ecx, ecx
je 0x46aaaa
mov eax, dword [ecx]
mov eax, dword [eax + 0x18]
call eax
test al, al
jne 0x46abe1
lea eax, [ebp - 0x1078]
push eax
push 0x1000
lea eax, [ebp - 0x1010]
push eax
lea ecx, [ebp - 0x1044]
call fcn.0046b950
mov edi, eax
cmp edi, 0xffffffff
jne 0x46ab4a
cmp dword [esi], 0
jne 0x46abfe
mov eax, dword [ebp - 0x1030]
cmp eax, 5
mov eax, dword [ebp - 0x1064]
jbe 0x46aa87
cmp dword [ebp - 0x1068], ebx
jne 0x46abf9
test eax, eax
jne 0x46abf9
add dword [esi + 4], ebx
mov ecx, dword [esi]
test ecx, ecx
je 0x46ab2d
movsd xmm0, qword [ebp - 0x1058]
sub esp, 8
mov eax, dword [ecx]
movsd qword [esp], xmm0
push ebx
push ebx
push dword [ebp - 0x1048]
call dword [eax + 0xc]
mov ecx, dword [esi]
push dword [esi + 4]
mov eax, dword [ecx]
call dword [eax + 8]
lea ecx, [ebp - 0x1044]
call fcn.0046b440
lea ecx, [ebp - 0x1038]
call fcn.0046b100
mov al, 1
jmp 0x46ac2c
test edi, edi
je 0x46abc7
push 0
lea eax, [ebp - 0x104c]
mov dword [ebp - 0x104c], 0
push eax
push edi
lea eax, [ebp - 0x1010]
push eax
push dword [ebp - 0x102c]
call dword [sym.imp.KERNEL32.dll_WriteFile]
cmp dword [ebp - 0x104c], edi
je 0x46ab82
cmp dword [esi], 0
jne 0x46abed
mov ecx, dword [esi]
test ecx, ecx
je 0x46aad8
movsd xmm0, qword [ebp - 0x1058]
sub esp, 8
mov eax, dword [ecx]
movsd qword [esp], xmm0
push dword [ebp - 0x1068]
push ebx
push dword [ebp - 0x1048]
call dword [eax + 0xc]
mov ecx, dword [esi]
mov eax, dword [ebp - 0x1068]
add eax, dword [ebp - 0x1050]
push eax
mov edx, dword [ecx]
call dword [edx + 8]
jmp 0x46aad8
push 5
call dword [sym.imp.KERNEL32.dll_Sleep]
mov eax, dword [ebp - 0x1030]
inc eax
mov dword [ebp - 0x1030], eax
jmp 0x46aade
sub esp, 0x18
mov ecx, esp
push 0x56cabc
jmp 0x46ac08
sub esp, 0x18
mov ecx, esp
push 0x56cad0
jmp 0x46ac08
cmp dword [esi], 0
je 0x46ac14
sub esp, 0x18
mov ecx, esp
push 0x56caac
call fcn.00419540
mov ecx, dword [esi]
mov eax, dword [ecx]
call dword [eax + 0x14]
lea ecx, [ebp - 0x1044]
call fcn.0046b440
lea ecx, [ebp - 0x1038]
call fcn.0046b100
xor al, al
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov ecx, dword [ebp - 0x10]
xor ecx, ebp
call fcn.00464e95
mov esp, ebp
pop ebp
ret 0xc