Function at 0x428980
Capabilities:
Write file on windows

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x4c6043
mov eax, dword fs:[0]
push eax
sub esp, 0x90
mov eax, dword [0x4fad60]
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 edi, ecx
cmp dword [edi + 0x38], 0
mov ebx, edx
jne 0x4289c2
mov eax, 0xf0000002
jmp 0x428bcc
sub esp, 0x1c
mov ecx, esp
xor eax, eax
mov dword [ebp - 0x98], esp
push eax
mov dword [ecx + 0x14], 7
mov dword [ecx + 0x10], 0
mov word [ecx], ax
push ebx
or eax, 0xffffffff
call fcn.00404570
call fcn.00428f70
lea eax, [edi + 0x64]
mov ecx, 0x11111111
mov dword [eax], ecx
mov dword [eax + 4], ecx
mov dword [eax + 8], ecx
mov dword [eax + 0xc], ecx
mov dword [eax + 0x10], ecx
mov dword [eax + 0x14], ecx
mov dword [eax + 0x18], ecx
mov dword [eax + 0x1c], ecx
xor ecx, ecx
lea edx, [edi + 0x84]
mov dword [edx], ecx
mov dword [edx + 4], ecx
mov byte [edx + 8], cl
mov dword [ebp - 0x24], ecx
mov dword [ebp - 0x20], ecx
mov dword [ebp - 0x1c], ecx
mov dword [ebp - 0x18], ecx
mov byte [ebp - 0x14], cl
lea ecx, [ebp - 0x24]
push ecx
push edx
mov edx, dword [edi + 0x38]
push eax
mov eax, dword [edi + 0x14]
push 0x20
push edx
call eax
mov dword [ebp - 0x98], eax
test eax, eax
jne 0x428bc6
sub esp, 0x1c
mov esi, esp
mov dword [ebp - 0x9c], esp
mov dword [esi + 0x10], eax
mov dword [esi + 0x14], 0xf
mov byte [esi], al
lea eax, [ebp - 0x24]
lea edx, [eax + 1]
lea esp, [esp]
mov cl, byte [eax]
inc eax
test cl, cl
jne 0x428a70
sub eax, edx
mov edi, eax
lea eax, [ebp - 0x24]
call fcn.00403cd0
lea esi, [ebp - 0x94]
call fcn.0044c770
add esp, 0x1c
mov edi, eax
mov esi, ebx
mov dword [ebp - 4], 0
call fcn.00409010
mov ebx, 8
cmp dword [ebp - 0x80], ebx
jb 0x428aba
mov ecx, dword [ebp - 0x94]
push ecx
call fcn.00490a16
add esp, 4
mov esi, 7
xor edi, edi
xor edx, edx
mov dword [ebp - 0x2c], esi
mov dword [ebp - 0x30], edi
mov word [ebp - 0x40], dx
lea ecx, [ebp - 0x40]
mov dword [ebp - 4], 1
call fcn.0044ee20
xor eax, eax
mov dword [ebp - 0x48], esi
mov word [ebp - 0x5c], ax
push 0x10
mov eax, str.UniqueKeyTmp.txt
lea esi, [ebp - 0x5c]
mov dword [ebp - 0x4c], edi
call fcn.00403e70
lea ecx, [ebp - 0x40]
push ecx
mov edx, esi
lea ecx, [ebp - 0x78]
mov byte [ebp - 4], 2
call fcn.0044e150
add esp, 4
mov edi, eax
lea esi, [ebp - 0x40]
mov byte [ebp - 4], 3
call fcn.00409010
cmp dword [ebp - 0x64], ebx
jb 0x428b2b
mov edx, dword [ebp - 0x78]
push edx
call fcn.00490a16
add esp, 4
xor eax, eax
mov dword [ebp - 0x64], 7
mov dword [ebp - 0x68], 0
mov word [ebp - 0x78], ax
cmp dword [ebp - 0x48], ebx
jb 0x428b50
mov ecx, dword [ebp - 0x5c]
push ecx
call fcn.00490a16
add esp, 4
mov eax, dword [ebp - 0x40]
cmp dword [ebp - 0x2c], ebx
jae 0x428b5b
lea eax, [ebp - 0x40]
push 0
push 0x80
push 4
push 0
push 0
push 0x40000000
push eax
call dword [sym.imp.KERNEL32.dll_CreateFileW]
push 2
push 0
mov esi, eax
push 0
push esi
call dword [sym.imp.KERNEL32.dll_SetFilePointer]
mov edi, dword [sym.imp.KERNEL32.dll_WriteFile]
push 0
lea edx, [ebp - 0x9c]
push edx
push 2
push 0x4ddc80
push esi
call edi
push 0
lea eax, [ebp - 0x9c]
push eax
push 0x11
lea ecx, [ebp - 0x24]
push ecx
push esi
call edi
push esi
call dword [sym.imp.KERNEL32.dll_CloseHandle]
cmp dword [ebp - 0x2c], ebx
jb 0x428bc6
mov edx, dword [ebp - 0x40]
push edx
call fcn.00490a16
add esp, 4
mov eax, dword [ebp - 0x98]
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.00490a21
mov esp, ebp
pop ebp
ret