Function at 0x552d97
Capabilities:
Write file on windows

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x34c
push ebx
push esi
push edi
mov edi, eax
cmp dword [edi + 4], 0xffffffff
je 0x552db2
mov ebx, dword [edi]
call fcn.0054fb84
mov esi, dword [edi]
mov ebx, dword [ebp + 8]
or dword [edi + 4], 0xffffffff
cmp ebx, dword [esi + 4]
jl 0x552dca
mov eax, 0x10000
jmp 0x552ff5
cmp ebx, dword [esi + 0x10]
jge 0x552ddd
call fcn.00552638
jmp 0x552ddd
mov esi, dword [edi]
call fcn.005525e7
mov eax, dword [edi]
cmp dword [eax + 0x10], ebx
jl 0x552dd6
lea eax, [ebp - 0x240]
push eax
push ebx
push edi
call fcn.005527f8
test byte [ebp - 0x138], 0x10
je 0x552e2d
mov ecx, dword [ebp + 0xc]
mov al, byte [ecx]
cmp al, 0x2f
je 0x552e12
cmp al, 0x5c
je 0x552e12
test al, al
je 0x552e17
cmp byte [ecx + 1], 0x3a
jne 0x552e17
push ecx
push 0
jmp 0x552e1f
push ecx
add edi, 0x140
push edi
call fcn.0054f9da
pop ecx
pop ecx
xor eax, eax
jmp 0x552ff5
mov eax, dword [ebp + 0xc]
mov cl, byte [eax]
mov ebx, eax
mov edx, eax
jmp 0x552e48
cmp cl, 0x2f
je 0x552e42
cmp cl, 0x5c
jne 0x552e45
lea ebx, [edx + 1]
inc edx
mov cl, byte [edx]
test cl, cl
jne 0x552e38
lea esi, [ebp - 0x110]
mov ecx, eax
sub esi, eax
mov dl, byte [ecx]
mov byte [esi + ecx], dl
inc ecx
test dl, dl
jne 0x552e56
cmp ebx, eax
jne 0x552ece
mov byte [ebp - 0x110], dl
push ebx
lea eax, [ebp - 0x110]
push eax
lea esi, [edi + 0x140]
push esi
lea eax, [ebp - 0x348]
push str._s_s_s
push eax
call dword [sym.imp.USER32.dll_wsprintfA]
add esp, 0x14
lea eax, [ebp - 0x110]
push eax
push esi
call fcn.0054f9da
pop ecx
pop ecx
xor ebx, ebx
push ebx
push dword [ebp - 0x138]
lea eax, [ebp - 0x348]
push 2
push ebx
push ebx
push 0x40000000
push eax
call dword [sym.imp.KERNEL32.dll_CreateFileA]
mov dword [ebp - 4], eax
cmp eax, 0xffffffff
jne 0x552f37
mov eax, 0x200
jmp 0x552ff5
mov ecx, ebx
sub ecx, eax
mov byte [ebp + ecx - 0x110], 0
cmp byte [ebp - 0x110], 0x2f
je 0x552f06
cmp byte [ebp - 0x110], 0x5c
je 0x552f06
cmp byte [ebp - 0x110], 0
je 0x552e6a
cmp byte [ebp - 0x10f], 0x3a
jne 0x552e6a
push ebx
lea eax, [ebp - 0x110]
push eax
lea eax, [ebp - 0x348]
push str._s_s
push eax
call dword [sym.imp.USER32.dll_wsprintfA]
lea eax, [ebp - 0x110]
push eax
xor ebx, ebx
push ebx
call fcn.0054f9da
add esp, 0x18
jmp 0x552e9f
push dword [edi + 0x138]
mov eax, dword [edi]
call fcn.0055248e
pop ecx
cmp dword [edi + 0x13c], ebx
jne 0x552f5e
push 0x4000
call fcn.0043aa1f
pop ecx
mov dword [edi + 0x13c], eax
mov dword [ebp + 8], ebx
lea eax, [ebp + 0xf]
push eax
push dword [edi + 0x13c]
mov eax, dword [edi]
mov ecx, 0x4000
call fcn.0055227a
mov esi, eax
pop ecx
pop ecx
cmp esi, 0xffffff96
je 0x552fb2
cmp esi, ebx
jl 0x552fa9
jle 0x552f9f
push ebx
lea eax, [ebp - 8]
push eax
push esi
push dword [edi + 0x13c]
push dword [ebp - 4]
call dword [sym.imp.KERNEL32.dll_WriteFile]
test eax, eax
je 0x552fbb
cmp byte [ebp + 0xf], 0
jne 0x552fc4
cmp esi, ebx
jne 0x552f61
mov dword [ebp + 8], 0x5000000
jmp 0x552fe2
mov dword [ebp + 8], 0x1000
jmp 0x552fe2
mov dword [ebp + 8], 0x400
jmp 0x552fe2
lea eax, [ebp - 0x124]
push eax
lea eax, [ebp - 0x134]
push eax
lea eax, [ebp - 0x12c]
push eax
push dword [ebp - 4]
call dword [sym.imp.KERNEL32.dll_SetFileTime]
push dword [ebp - 4]
call dword [sym.imp.KERNEL32.dll_CloseHandle]
mov ebx, dword [edi]
call fcn.0054fb84
mov eax, dword [ebp + 8]
pop edi
pop esi
pop ebx
leave
ret 8