Function at 0x10055d02
Capabilities:
Write file on windows

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x354
mov eax, dword [0x100da4b0]
xor eax, ebp
mov dword [ebp - 4], eax
push ebx
push esi
mov esi, dword [ebp + 0xc]
push edi
mov edi, ecx
cmp dword [edi + 4], 0xffffffff
je 0x10055d2a
mov ecx, dword [edi]
call fcn.1005553f
mov ecx, dword [edi]
or dword [edi + 4], 0xffffffff
mov ebx, dword [ebp + 8]
cmp ebx, dword [ecx + 4]
jl 0x10055d50
mov eax, 0x10000
mov ecx, dword [ebp - 4]
pop edi
pop esi
xor ecx, ebp
pop ebx
call fcn.1008a221
mov esp, ebp
pop ebp
ret 0x10
cmp ebx, dword [ecx + 0x10]
jge 0x10055d63
call fcn.10054fb1
jmp 0x10055d63
mov ecx, dword [edi]
call fcn.10054fe8
mov eax, dword [edi]
cmp dword [eax + 0x10], ebx
jl 0x10055d5c
lea eax, [ebp - 0x348]
mov ecx, edi
push eax
push ebx
call fcn.10055654
test byte [ebp - 0x240], 0x10
mov al, byte [esi]
je 0x10055dab
cmp al, 0x2f
je 0x10055d9e
cmp al, 0x5c
je 0x10055d9e
test al, al
je 0x10055d96
cmp byte [esi + 1], 0x3a
je 0x10055d9e
lea ecx, [edi + 0x140]
jmp 0x10055da0
xor ecx, ecx
mov edx, esi
call fcn.10055bfe
xor eax, eax
jmp 0x10055d3d
mov dword [ebp - 0x350], esi
mov ebx, esi
mov ecx, esi
test al, al
je 0x10055dd1
cmp al, 0x2f
je 0x10055dc1
cmp al, 0x5c
jne 0x10055dc4
lea ebx, [ecx + 1]
inc ecx
mov al, byte [ecx]
test al, al
jne 0x10055db9
mov dword [ebp - 0x350], ebx
mov ecx, esi
lea edx, [ecx + 1]
mov al, byte [ecx]
inc ecx
test al, al
jne 0x10055dd6
sub ecx, edx
push esi
lea eax, [ecx + 1]
push eax
lea eax, [ebp - 0x110]
push eax
call fcn.1008dc24
add esp, 0xc
cmp ebx, esi
jne 0x10055e01
xor ebx, ebx
mov byte [ebp - 0x110], bl
jmp 0x10055e34
mov eax, ebx
sub eax, esi
cmp eax, 0x104
jae 0x10055f8c
xor ebx, ebx
mov byte [ebp + eax - 0x110], bl
mov al, byte [ebp - 0x110]
cmp al, 0x2f
je 0x10055e61
cmp al, 0x5c
je 0x10055e61
test al, al
je 0x10055e34
cmp byte [ebp - 0x10f], 0x3a
je 0x10055e61
push dword [ebp - 0x350]
lea eax, [ebp - 0x110]
push eax
lea esi, [edi + 0x140]
push esi
lea eax, [ebp - 0x218]
push 0x100cc320
push eax
call dword [sym.imp.USER32.dll_wsprintfA]
add esp, 0x14
mov ecx, esi
jmp 0x10055e85
push dword [ebp - 0x350]
lea eax, [ebp - 0x110]
push eax
lea eax, [ebp - 0x218]
push 0x100cc318
push eax
call dword [sym.imp.USER32.dll_wsprintfA]
add esp, 0x10
xor ecx, ecx
lea edx, [ebp - 0x110]
call fcn.10055bfe
push ebx
push dword [ebp - 0x240]
lea eax, [ebp - 0x218]
push 2
push ebx
push ebx
push 0x40000000
push eax
call dword [sym.imp.KERNEL32.dll_CreateFileA]
mov dword [ebp - 0x350], eax
cmp eax, 0xffffffff
jne 0x10055ec2
mov eax, 0x200
jmp 0x10055d3d
mov edx, dword [edi + 0x138]
mov ecx, dword [edi]
call fcn.100551ce
cmp dword [edi + 0x13c], ebx
jne 0x10055ee8
push 0x4000
call fcn.10075c0e
pop ecx
mov dword [edi + 0x13c], eax
mov edx, dword [edi + 0x13c]
lea eax, [ebp - 0x349]
mov ecx, dword [edi]
push eax
push 0x4000
call fcn.1005531e
mov esi, eax
pop ecx
pop ecx
cmp esi, 0xffffff96
je 0x10055f6d
test esi, esi
js 0x10055f3c
jle 0x10055f2f
push ebx
lea eax, [ebp - 0x354]
push eax
push esi
push dword [edi + 0x13c]
push dword [ebp - 0x350]
call dword [sym.imp.KERNEL32.dll_WriteFile]
test eax, eax
je 0x10055f43
cmp byte [ebp - 0x349], 0
jne 0x10055f4a
test esi, esi
jne 0x10055ee8
mov ebx, 0x5000000
jmp 0x10055f72
mov ebx, 0x400
jmp 0x10055f72
lea eax, [ebp - 0x22c]
push eax
lea eax, [ebp - 0x23c]
push eax
lea eax, [ebp - 0x234]
push eax
push dword [ebp - 0x350]
call dword [sym.imp.KERNEL32.dll_SetFileTime]
jmp 0x10055f72
mov ebx, 0x1000
push dword [ebp - 0x350]
call dword [sym.imp.KERNEL32.dll_CloseHandle]
mov ecx, dword [edi]
call fcn.1005553f
mov eax, ebx
jmp 0x10055d3d
call fcn.1008c5ac
int3