Function at 0x45b6ac
Capabilities:
Write file on windows

Disassembly:
push ebp
mov ebp, esp
add esp, 0xffffff94
push ebx
push esi
push edi
mov dword [ebp - 0xc], ecx
mov dword [ebp - 8], edx
mov byte [ebp - 1], al
mov esi, dword [ebp + 0x20]
xor edx, edx
push ebp
push 0x45ba08
push dword fs:[edx]
mov dword fs:[edx], esp
call sub.KERNEL32.DLL_GetCurrentThreadId_1
cmp eax, dword [0x5d1080]
jne 0x45b6e9
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
jmp 0x45ba12
cmp byte [0x5d0f94], 0
je 0x45b70e
call sub.KERNEL32.DLL_GetCurrentThreadId_1
mov edx, dword [0x5d8b9c]
cmp eax, dword [edx]
jne 0x45b70e
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
jmp 0x45ba12
mov bl, 2
mov dword [ebp - 0x18], 0x5def60
mov dword [ebp - 0x10], 1
mov eax, dword [ebp - 0x18]
mov edi, eax
mov eax, dword [edi]
test eax, eax
je 0x45b73a
push 0x8000
push 0
push eax
call sub.KERNEL32.DLL_VirtualFree_1
xor eax, eax
mov dword [edi], eax
inc dword [ebp - 0x10]
add edi, 4
cmp dword [ebp - 0x10], 5
jne 0x45b723
add dword [ebp - 0x18], 0x10
dec bl
jne 0x45b717
xor eax, eax
mov dword [ebp - 0x14], eax
lea eax, [ebp + 0x18]
push eax
lea ecx, [ebp - 0x14]
lea edx, [ebp - 0xc]
lea eax, [ebp - 8]
call fcn.00441d8c
cmp dword [ebp - 8], 0
je 0x45b7ae
mov edx, 0x45ba28
mov eax, dword [ebp - 8]
call fcn.00440e14
test al, al
je 0x45b7ae
call fcn.004094b4
xor edx, edx
mov dword [eax + 8], edx
call fcn.004094b4
xor edx, edx
mov dword [eax + 0xc], edx
cmp byte [ebp + 0x24], 0
jne 0x45b7a1
call fcn.00453ffc
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
jmp 0x45ba12
test esi, esi
jne 0x45b7b9
call fcn.004627fc
mov esi, eax
cmp dword [ebp + 0x1c], 0
jne 0x45b7c7
call fcn.00462804
mov dword [ebp + 0x1c], eax
cmp dword [ebp + 0x18], 0
je 0x45b801
mov eax, dword [ebp + 0x18]
mov eax, dword [eax + 0xb8]
cmp eax, dword [ebp - 0xc]
ja 0x45b801
mov eax, dword [ebp + 0x18]
mov edx, dword [ebp - 0xc]
sub edx, dword [eax + 0xb8]
cmp edx, 4
ja 0x45b801
mov eax, dword [ebp + 0x18]
mov esi, dword [eax + 0xc4]
mov eax, dword [ebp + 0x18]
mov eax, dword [eax + 0xb4]
mov dword [ebp + 0x1c], eax
call sub.KERNEL32.DLL_GetCurrentThreadId_1
mov dword [ebp - 0x4c], eax
movzx eax, byte [ebp - 1]
mov byte [ebp - 0x48], al
mov eax, dword [ebp - 8]
mov dword [ebp - 0x44], eax
mov eax, dword [ebp - 0xc]
mov dword [ebp - 0x40], eax
movzx eax, byte [ebp + 0x24]
mov byte [ebp - 0x3c], al
mov dword [ebp - 0x38], esi
mov eax, dword [ebp + 0x1c]
mov dword [ebp - 0x34], eax
mov eax, dword [ebp + 0x18]
mov dword [ebp - 0x30], eax
mov eax, dword [ebp + 8]
mov dword [ebp - 0x2c], eax
movzx eax, byte [ebp + 0x14]
mov byte [ebp - 0x28], al
mov eax, dword [ebp + 0x10]
mov dword [ebp - 0x24], eax
mov eax, dword [ebp + 0xc]
mov dword [ebp - 0x20], eax
mov eax, dword [ebp - 0x14]
mov dword [ebp - 0x1c], eax
mov eax, 0xfa
call fcn.00440294
test al, al
je 0x45b866
xor eax, eax
mov dword [ebp - 0x50], eax
jmp 0x45b876
push 0
push 0
push 0xffffffffffffffff
push 0
call sub.KERNEL32.DLL_CreateEventW
mov dword [ebp - 0x50], eax
mov al, 1
call fcn.00446fb8
xor eax, eax
push ebp
push 0x45b942
push dword fs:[eax]
mov dword fs:[eax], esp
cmp dword [ebp - 0x50], 0
je 0x45b925
push 0
lea eax, [ebp - 0x10]
push eax
push 0x38
lea eax, [ebp - 0x50]
push eax
mov eax, dword [0x5d108c]
push eax
call sub.KERNEL32.DLL_WriteFile_1
test eax, eax
je 0x45b91a
cmp dword [ebp - 0x10], 0x38
jne 0x45b91a
call sub.KERNEL32.DLL_GetCurrentThreadId_1
mov edx, dword [0x5d8b9c]
cmp eax, dword [edx]
jne 0x45b90f
jmp 0x45b8fb
push 0
push 0
push 0
lea eax, [ebp - 0x6c]
push eax
call sub.user32.dll_GetMessageW
inc eax
cmp eax, 1
jbe 0x45b8f0
lea eax, [ebp - 0x6c]
push eax
call sub.user32.dll_TranslateMessage
lea eax, [ebp - 0x6c]
push eax
call sub.user32.dll_DispatchMessageW
jmp 0x45b8fb
mov eax, dword [ebp - 0x64]
push eax
call sub.user32.dll_PostQuitMessage
jmp 0x45b91a
push 0
mov eax, dword [ebp - 0x50]
push eax
call sub.KERNEL32.DLL_WaitForSingleObject
cmp eax, 0x102
je 0x45b8c7
jmp 0x45b91a
push 0xffffffffffffffff
mov eax, dword [ebp - 0x50]
push eax
call sub.KERNEL32.DLL_WaitForSingleObject
mov eax, dword [ebp - 0x50]
push eax
call sub.KERNEL32.DLL_CloseHandle_1
jmp 0x45b92d
lea eax, [ebp - 0x50]
call fcn.0045b030
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x45b949
xor eax, eax
call fcn.00446fb8
ret
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 0x20