Function at 0x5d2c70
Capabilities:
Write file on windows

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x6078e1
mov eax, dword fs:[0]
push eax
mov eax, 0x1070
call fcn.005ca5b0
mov eax, dword [0x69cef4]
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
mov eax, dword [ebp + 8]
lea ecx, [ebp - 0x1038]
mov esi, dword [ebp + 0x10]
push 0
push 0
push 0
push 0
push 0
mov dword [ebp - 0x102c], eax
mov dword [ebp - 0x103c], esi
call fcn.005d34b0
push 0xbb8
push 2
lea ecx, [ebp - 0x1038]
mov dword [ebp - 4], 0
call fcn.005d3530
push 5
push 3
lea ecx, [ebp - 0x1038]
call fcn.005d3530
lea ecx, [ebp - 0x1048]
call fcn.005d3800
cmp dword [esi + 0x14], 8
mov byte [ebp - 4], 1
jb 0x5d2d0c
mov edx, dword [esi]
jmp 0x5d2d0e
mov edx, esi
xor eax, eax
mov dword [ebp - 0x1014], 7
mov dword [ebp - 0x1018], 0
mov word [ebp - 0x1028], ax
cmp word [edx], ax
jne 0x5d2d34
xor ecx, ecx
jmp 0x5d2d4f
mov ecx, edx
lea ebx, [ecx + 2]
nop dword [eax]
mov ax, word [ecx]
add ecx, 2
test ax, ax
jne 0x5d2d40
sub ecx, ebx
sar ecx, 1
push ecx
push edx
lea ecx, [ebp - 0x1028]
call fcn.00407280
lea eax, [ebp - 0x1028]
mov byte [ebp - 4], 2
push eax
lea ecx, [ebp - 0x1038]
call fcn.005d3400
push eax
lea ecx, [ebp - 0x1048]
call fcn.005d3cd0
test al, al
mov byte [ebp - 4], 1
mov eax, dword [ebp - 0x1014]
sete bl
cmp eax, 8
jb 0x5d2da5
inc eax
lea ecx, [ebp - 0x1028]
push eax
push dword [ebp - 0x1028]
call fcn.00407380
lea ecx, [ebp - 0x1048]
test bl, bl
jne 0x5d3107
call fcn.005d3b50
test al, al
jne 0x5d30e0
lea ecx, [ebp - 0x1048]
call fcn.005d3b00
mov ebx, eax
test ebx, ebx
je 0x5d30e0
mov eax, dword [edi + 0x80]
test eax, eax
je 0x5d2df2
push eax
call fcn.005ca5eb
add esp, 4
mov dword [edi + 0x80], 0
cmp dword [edi + 0x30], 0
jne 0x5d2e0d
push ebx
mov dword [edi + 0x84], ebx
call fcn.005caab7
add esp, 4
mov dword [edi + 0x80], eax
mov eax, dword [edi + 0x80]
mov ecx, dword [edi]
mov dword [ebp - 0x104c], eax
mov eax, dword [edi + 4]
mov dword [ebp - 0x1054], eax
test ecx, ecx
je 0x5d2e98
cmp dword [esi + 0x14], 8
jb 0x5d2e32
mov edx, dword [esi]
jmp 0x5d2e34
mov edx, esi
push dword [edi + 0x88]
mov eax, dword [ecx]
xorps xmm0, xmm0
sub esp, 8
movsd qword [esp], xmm0
push 0
push 0
push edx
call dword [eax + 0xc]
mov ecx, dword [edi]
push dword [edi + 0x88]
push ebx
mov eax, dword [ecx]
call dword [eax + 4]
mov ecx, dword [edi]
push dword [edi + 0x88]
push dword [ebp - 0x1054]
mov eax, dword [ecx]
call dword [eax + 8]
cmp dword [esi + 0x14], 8
jb 0x5d2e7a
mov edx, dword [esi]
jmp 0x5d2e7c
mov edx, esi
push dword [edi + 0x88]
mov ecx, dword [edi]
xorps xmm0, xmm0
sub esp, 8
mov eax, dword [ecx]
movsd qword [esp], xmm0
push 0
push ebx
push edx
call dword [eax + 0xc]
push 0x1000
lea eax, [ebp - 0x1010]
mov dword [ebp - 0x1030], 0
push 0
push eax
call fcn.005d4520
add esp, 0xc
mov dword [ebp - 0x1074], ebx
xorps xmm0, xmm0
mov dword [ebp - 0x1070], 0
movlpd qword [ebp - 0x106c], xmm0
call dword [sym.imp.KERNEL32.dll_GetTickCount]
mov dword [ebp - 0x107c], eax
xorps xmm0, xmm0
mov dword [ebp - 0x1078], eax
mov eax, dword [ebp - 0x1068]
movups xmmword [ebp - 0x1064], xmm0
test eax, eax
ja 0x5d2f75
jb 0x5d2f03
cmp dword [ebp - 0x106c], ebx
jae 0x5d2f7b
mov ecx, dword [edi]
test ecx, ecx
je 0x5d2f1e
mov eax, dword [ecx]
push dword [edi + 0x88]
mov eax, dword [eax + 0x18]
call eax
test al, al
jne 0x5d30bc
lea eax, [ebp - 0x107c]
push eax
push 0x1000
lea eax, [ebp - 0x1010]
push eax
lea ecx, [ebp - 0x1048]
call fcn.005d3da0
mov esi, eax
cmp esi, 0xffffffff
jne 0x5d2fe5
cmp dword [edi], 0
jne 0x5d30e5
mov eax, dword [ebp - 0x1030]
cmp eax, 5
mov eax, dword [ebp - 0x1068]
ja 0x5d2f6f
test eax, eax
ja 0x5d2f6f
jb 0x5d2f03
cmp dword [ebp - 0x106c], ebx
jb 0x5d2f03
mov esi, dword [ebp - 0x103c]
cmp dword [ebp - 0x106c], ebx
jne 0x5d30e0
test eax, eax
jne 0x5d30e0
add dword [edi + 4], ebx
mov ecx, dword [edi]
test ecx, ecx
je 0x5d2fc8
cmp dword [esi + 0x14], 8
jb 0x5d2f9a
mov esi, dword [esi]
push dword [edi + 0x88]
movsd xmm0, qword [ebp - 0x105c]
mov eax, dword [ecx]
sub esp, 8
movsd qword [esp], xmm0
push ebx
push ebx
push esi
call dword [eax + 0xc]
mov ecx, dword [edi]
push dword [edi + 0x88]
push dword [edi + 4]
mov eax, dword [ecx]
call dword [eax + 8]
lea ecx, [ebp - 0x1048]
call fcn.005d3830
lea ecx, [ebp - 0x1038]
call fcn.005d34f0
mov al, 1
jmp 0x5d3119
test esi, esi
je 0x5d30a2
cmp dword [edi + 0x30], 0
jne 0x5d3011
push esi
lea eax, [ebp - 0x1010]
push eax
push dword [ebp - 0x104c]
call fcn.005d5990
add esp, 0xc
add dword [ebp - 0x104c], esi
jmp 0x5d3049
push 0
lea eax, [ebp - 0x1050]
mov dword [ebp - 0x1050], 0
push eax
push esi
lea eax, [ebp - 0x1010]
push eax
push dword [ebp - 0x102c]
call dword [sym.imp.KERNEL32.dll_WriteFile]
cmp dword [ebp - 0x1050], esi
je 0x5d3049
cmp dword [edi], 0
jne 0x5d30ce
mov eax, dword [edi]
test eax, eax
je 0x5d2f50
push dword [edi + 0x88]
movsd xmm0, qword [ebp - 0x105c]
mov ecx, dword [ebp - 0x103c]
sub esp, 8
mov esi, dword [eax]
movsd qword [esp], xmm0
push dword [ebp - 0x106c]
push ebx
call fcn.00420a50
mov ecx, dword [edi]
push eax
call dword [esi + 0xc]
mov ecx, dword [edi]
mov eax, dword [ebp - 0x106c]
push dword [edi + 0x88]
add eax, dword [ebp - 0x1054]
mov edx, dword [ecx]
push eax
call dword [edx + 8]
jmp 0x5d2f50
push 5
call dword [sym.imp.KERNEL32.dll_Sleep]
mov eax, dword [ebp - 0x1030]
inc eax
mov dword [ebp - 0x1030], eax
jmp 0x5d2f56
push dword [edi + 0x88]
sub esp, 0x18
mov ecx, esp
push 0x67ea1c
jmp 0x5d30f5
push dword [edi + 0x88]
sub esp, 0x18
mov ecx, esp
push 0x67ea30
jmp 0x5d30f5
cmp dword [edi], 0
je 0x5d3101
push dword [edi + 0x88]
sub esp, 0x18
mov ecx, esp
push 0x67ea0c
call fcn.00405d50
mov ecx, dword [edi]
mov eax, dword [ecx]
call dword [eax + 0x14]
lea ecx, [ebp - 0x1048]
call fcn.005d3830
lea ecx, [ebp - 0x1038]
call fcn.005d34f0
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.005ca59c
mov esp, ebp
pop ebp
ret 0xc