Function at 0x555ba0
Capabilities:
Write file on windows

Disassembly:
push ebp
lea ebp, [esp - 0x20c]
sub esp, 0x20c
push 0xfffffffffffffffe
push 0x674f68
push 0x5dfbd0
mov eax, dword fs:[0]
push eax
sub esp, 0x2c
mov eax, dword [0x6aae14]
xor dword [ebp - 8], eax
xor eax, ebp
mov dword [ebp + 0x208], eax
push ebx
push esi
push edi
push eax
lea eax, [ebp - 0x10]
mov dword fs:[0], eax
mov dword [ebp - 0x18], esp
mov eax, dword [ebp + 0x214]
mov dword [ebp - 0x38], eax
mov ecx, dword [ebp + 0x218]
mov dword [ebp - 0x28], ecx
mov esi, dword [ebp + 0x21c]
xor ecx, ecx
mov dword [ebp - 0x34], ecx
mov dword [ebp - 0x20], ecx
mov dword [ebp - 0x24], ecx
mov dword [ebp - 0x30], 4
mov dword [ebp - 4], ecx
mov edx, dword [eax]
push edx
call fcn.004d90d0
add esp, 4
test eax, eax
jne 0x555c2e
mov dword [ebp - 4], 0xfffffffe
xor eax, eax
jmp 0x555dcf
mov edi, dword [esi + 0x14]
inc edi
mov dword [ebp - 0x2c], edi
mov eax, dword [esi + 0x30]
inc eax
mov dword [ebp - 0x1c], eax
lea eax, [eax + edi + 0x154]
mov dword [ebp - 0x2c], eax
push eax
call fcn.004d9470
add esp, 4
mov ebx, eax
mov dword [ebp - 0x20], ebx
test ebx, ebx
je 0x555c20
mov dword [ebx], edi
cmp dword [esi + 0x18], 0x10
jb 0x555c65
mov ecx, dword [esi + 4]
jmp 0x555c68
lea ecx, [esi + 4]
lea edx, [ebp]
jmp 0x555c70
mov al, byte [ecx]
mov byte [edx], al
inc ecx
inc edx
test al, al
jne 0x555c70
push 0x50
push edi
mov eax, dword [str.__asflk__aasf_.zxdv_asd________k9034509k9____KKmnscmsfmiun__IOPc]
push eax
lea ecx, [ebp]
push ecx
call fcn.004db750
push edi
lea edx, [ebp]
push edx
mov eax, 4
add eax, ebx
push eax
call fcn.005e13c0
mov eax, 4
push eax
lea ecx, [ebp - 0x1c]
push ecx
lea edx, [edi + eax]
add edx, ebx
push edx
call fcn.005e13c0
add esp, 0x18
cmp dword [esi + 0x34], 0x10
jb 0x555cc1
mov ecx, dword [esi + 0x20]
jmp 0x555cc4
lea ecx, [esi + 0x20]
lea edx, [ebp]
mov al, byte [ecx]
mov byte [edx], al
inc ecx
inc edx
test al, al
jne 0x555cc7
push 0x50
mov eax, dword [ebp - 0x1c]
push eax
mov ecx, dword [str.__asflk__aasf_.zxdv_asd________k9034509k9____KKmnscmsfmiun__IOPc]
push ecx
lea edx, [ebp]
push edx
call fcn.004db750
mov eax, dword [ebp - 0x1c]
push eax
lea ecx, [ebp]
push ecx
mov eax, 4
lea edx, [edi + eax*2]
add edx, ebx
push edx
call fcn.005e13c0
mov eax, 4
mov ecx, dword [ebp - 0x1c]
lea edx, [ecx + eax*2]
add edi, edx
push eax
lea eax, [esi + 0x38]
push eax
lea ecx, [edi + ebx]
push ecx
call fcn.005e13c0
mov eax, 8
push eax
lea edx, [esi + 0x3c]
push edx
mov eax, dword [ebp - 0x30]
lea ecx, [edi + eax]
add ecx, ebx
push ecx
call fcn.005e13c0
add esp, 0x24
add esi, 0x44
mov eax, 8
add edi, eax
add edi, dword [ebp - 0x30]
add edi, ebx
mov ecx, 0x50
rep movsd dword es:[edi], dword [esi]
mov esi, dword [ebp - 0x28]
push esi
call dword [sym.imp.KERNEL32.dll_EnterCriticalSection]
mov edi, 1
mov dword [ebp - 0x24], edi
push 0
lea edx, [ebp - 0x3c]
push edx
mov eax, dword [ebp - 0x2c]
push eax
push ebx
mov ecx, dword [ebp - 0x38]
mov edx, dword [ecx]
push edx
call dword [sym.imp.KERNEL32.dll_WriteFile]
test eax, eax
je 0x555d7b
mov dword [ebp - 0x34], edi
push ebx
call fcn.005e0865
add esp, 4
xor edi, edi
mov dword [ebp - 0x20], edi
push esi
call dword [sym.imp.KERNEL32.dll_LeaveCriticalSection]
mov dword [ebp - 0x24], edi
mov dword [ebp - 4], 0xfffffffe
jmp 0x555db2
test edi, edi
je 0x555dbf
push edi
call fcn.005e0865
add esp, 4
cmp dword [ebp - 0x24], 0
je 0x555dcc
push esi
call dword [sym.imp.KERNEL32.dll_LeaveCriticalSection]
mov eax, dword [ebp - 0x34]
mov ecx, dword [ebp - 0x10]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov ecx, dword [ebp + 0x208]
xor ecx, ebp
call fcn.005dfbbe
add ebp, 0x20c
mov esp, ebp
pop ebp
ret