Function at 0x455240
Capabilities:
Write file on windows

Disassembly:
push ebp
mov ebp, esp
add esp, 0xffffff30
push ebx
push esi
push edi
xor ebx, ebx
mov dword [ebp - 0xd0], ebx
mov dword [ebp - 0xcc], ebx
mov dword [ebp - 0x14], ebx
mov dword [ebp - 0xc], ecx
mov dword [ebp - 8], edx
mov byte [ebp - 1], al
mov esi, dword [ebp + 0x1c]
mov ebx, dword [ebp + 0x20]
lea edi, [ebp - 0xac]
xor eax, eax
push ebp
push 0x455679
push dword fs:[eax]
mov dword fs:[eax], esp
xor eax, eax
push ebp
push 0x455643
push dword fs:[eax]
mov dword fs:[eax], esp
call sub.kernel32.dll_GetCurrentThreadId_1
cmp eax, dword [0x530834]
jne 0x4552a8
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
jmp 0x45564d
cmp byte [0x53073c], 0
je 0x4552cd
call sub.kernel32.dll_GetCurrentThreadId_1
mov edx, dword [0x53369c]
cmp eax, dword [edx]
jne 0x4552cd
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
jmp 0x45564d
call fcn.004550d0
lea eax, [ebp - 0x14]
call fcn.00404788
lea eax, [ebp + 0x18]
push eax
lea ecx, [ebp - 0x14]
lea edx, [ebp - 0xc]
lea eax, [ebp - 8]
call fcn.00432f60
cmp dword [ebp - 8], 0
je 0x455330
mov edx, 0x455694
mov eax, dword [ebp - 8]
call fcn.00432260
test al, al
je 0x455330
call fcn.00407024
mov eax, dword [eax + 0xc]
cmp eax, dword [ebp - 8]
jne 0x455318
call fcn.00432f18
cmp byte [ebp + 0x24], 0
jne 0x455323
call fcn.0044c220
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
jmp 0x45564d
test ebx, ebx
jne 0x45533b
call fcn.0045d274
mov ebx, eax
test esi, esi
jne 0x455346
call fcn.0045d27c
mov esi, eax
cmp dword [ebp + 0x18], 0
je 0x45537d
mov eax, dword [ebp + 0x18]
mov eax, dword [eax + 0xb8]
cmp eax, dword [ebp - 0xc]
ja 0x45537d
mov eax, dword [ebp + 0x18]
mov edx, dword [ebp - 0xc]
sub edx, dword [eax + 0xb8]
cmp edx, 4
ja 0x45537d
mov eax, dword [ebp + 0x18]
mov ebx, dword [eax + 0xc4]
mov eax, dword [ebp + 0x18]
mov esi, dword [eax + 0xb4]
cmp dword [ebp - 8], 0
je 0x4553dc
cmp dword [0x52ff20], 0
je 0x4553dc
mov edx, 0x4556a4
mov eax, dword [ebp - 8]
call fcn.00432260
test al, al
je 0x4553dc
lea edx, [ebp - 0xcc]
mov eax, dword [ebp - 0xc]
call fcn.0043cf30
mov eax, dword [ebp - 0xcc]
mov edx, dword [eax]
call dword [edx + 0x384]
test al, al
je 0x4553dc
mov eax, dword [ebp - 8]
mov eax, dword [eax + 0xc]
mov dword [ebp - 0x1c], eax
lea eax, [ebp + 0x18]
mov dword [ebp - 0x18], eax
push 0
lea eax, [ebp - 0x1c]
push eax
call dword [0x52ff20]
mov byte [ebp + 0x24], 0
call sub.kernel32.dll_GetCurrentThreadId_1
mov dword [edi + 4], eax
mov al, byte [ebp - 1]
mov byte [edi + 8], al
mov eax, dword [ebp - 8]
mov dword [edi + 0xc], eax
mov eax, dword [ebp - 0xc]
mov dword [edi + 0x10], eax
mov al, byte [ebp + 0x24]
mov byte [edi + 0x14], al
mov dword [edi + 0x18], ebx
mov dword [edi + 0x1c], esi
mov eax, dword [ebp + 0x18]
mov dword [edi + 0x20], eax
call fcn.00407024
push edi
lea esi, [eax + 0xe0]
add edi, 0x24
mov ecx, 0x14
rep movsd dword es:[edi], dword [esi]
pop edi
mov eax, dword [ebp + 8]
mov dword [edi + 0x74], eax
mov al, byte [ebp + 0x14]
mov byte [edi + 0x78], al
mov eax, dword [ebp + 0x10]
mov dword [edi + 0x7c], eax
mov eax, dword [ebp + 0xc]
mov dword [edi + 0x80], eax
cmp dword [ebp - 0x14], 0
je 0x455459
mov eax, dword [ebp - 0x14]
mov dword [edi + 0x84], eax
mov eax, dword [ebp - 0x14]
call fcn.00404a58
mov dword [edi + 0x88], eax
jmp 0x455469
xor eax, eax
mov dword [edi + 0x84], eax
xor eax, eax
mov dword [edi + 0x88], eax
call fcn.00407024
mov eax, dword [eax + 0xc]
cmp eax, dword [ebp - 8]
jne 0x45548c
call fcn.00407024
mov eax, dword [eax + 8]
mov dword [edi + 0x8c], eax
jmp 0x455494
xor eax, eax
mov dword [edi + 0x8c], eax
mov eax, 0xfa
call fcn.00431d0c
test al, al
je 0x4554a8
xor eax, eax
mov dword [edi], eax
jmp 0x4554b7
push 0
push 0
push 0xffffffffffffffff
push 0
call sub.kernel32.dll_CreateEventA
mov dword [edi], eax
mov al, 1
call fcn.0043855c
xor eax, eax
push ebp
push 0x4555d0
push dword fs:[eax]
mov dword fs:[eax], esp
cmp dword [edi], 0
je 0x4555b4
push 0
lea eax, [ebp - 0x10]
push eax
push 0x90
push edi
mov eax, dword [0x530840]
push eax
call sub.kernel32.dll_WriteFile_1
test eax, eax
je 0x4555aa
cmp dword [ebp - 0x10], 0x90
jne 0x4555aa
call sub.kernel32.dll_GetCurrentThreadId_1
mov edx, dword [0x53369c]
cmp eax, dword [edx]
jne 0x4555a0
lea edx, [ebp - 0xd0]
mov eax, dword [ebp - 0xc]
call fcn.0043cf30
mov eax, dword [ebp - 0xd0]
mov edx, dword [eax]
call dword [edx + 0x38]
test al, al
jne 0x4555a0
jmp 0x45558d
push 0
push 0
push 0
lea eax, [ebp - 0xc8]
push eax
call sub.user32.dll_GetMessageA
inc eax
cmp eax, 1
jbe 0x45557f
cmp dword [ebp - 0xc4], 0
jne 0x455565
cmp dword [0x52fee4], 0
je 0x455565
xor eax, eax
call dword [0x52fee4]
lea eax, [ebp - 0xc8]
push eax
call sub.user32.dll_TranslateMessage
lea eax, [ebp - 0xc8]
push eax
call sub.user32.dll_DispatchMessageA
jmp 0x45558d
mov eax, dword [ebp - 0xc0]
push eax
call sub.user32.dll_PostQuitMessage
jmp 0x4555aa
push 0
mov eax, dword [edi]
push eax
call sub.kernel32.dll_WaitForSingleObject
cmp eax, 0x102
je 0x455533
jmp 0x4555aa
push 0xffffffffffffffff
mov eax, dword [edi]
push eax
call sub.kernel32.dll_WaitForSingleObject
mov eax, dword [edi]
push eax
call sub.kernel32.dll_CloseHandle_1
jmp 0x4555bb
mov eax, edi
call fcn.004548ac
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x4555d7
xor eax, eax
call fcn.0043855c
ret
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x455680
lea eax, [ebp - 0xd0]
mov edx, dword [0x42fa04]
mov ecx, 2
call fcn.004055ec
lea eax, [ebp - 0x14]
call fcn.00404788
ret