Function at 0x419920
Capabilities:
Write file on windows

Disassembly:
push ebp
mov ebp, esp
sub esp, 0xc
push ebx
push esi
push edi
call fcn.0045b170
mov edi, dword [ebp + 0xc]
mov esi, eax
push 0x55ab00
push edi
call fcn.0045b470
add esp, 8
mov dword [ebp - 0xc], eax
cmp byte [ebp + 0x10], 0
jne 0x4199e9
test edi, edi
je 0x4199e9
lea ecx, [ebp - 4]
push ecx
push 1
push eax
push esi
call fcn.0045b550
push dword [ebp - 4]
push esi
call fcn.0045dce0
push str.device
push dword [ebp - 4]
call fcn.0045b510
mov ebx, eax
xor edi, edi
push ebx
call fcn.0045ec70
add esp, 0x24
test eax, eax
jle 0x4199bd
nop word [eax + eax]
push edi
push ebx
call fcn.0045ec20
lea ecx, [ebp + 0x10]
mov dword [ebp + 0x10], eax
push ecx
push eax
push dword [ebp - 4]
call fcn.0045e910
push dword [ebp + 0x10]
call fcn.0045e400
push ebx
inc edi
call fcn.0045ec70
add esp, 0x1c
cmp edi, eax
jl 0x419990
test ebx, ebx
je 0x4199ca
push ebx
call fcn.0045ebe0
add esp, 4
push str.common
push dword [ebp - 4]
call fcn.0045b470
mov edi, eax
push str.protocolInfo
push edi
call fcn.0045b470
add esp, 0x10
jmp 0x419a1c
push 0
push 0x55ab00
push 0
push esi
call fcn.0045bde0
push 0
push str.common
push eax
push esi
mov dword [ebp - 4], eax
call fcn.0045bde0
push 0
mov edi, eax
push str.protocolInfo
push edi
push esi
call fcn.0045bde0
add esp, 0x30
push dword [0x626ba0]
call fcn.004063f0
push eax
push str.main_log
push 0
push dword [ebp - 4]
push esi
call fcn.0045c070
push dword [0x626ba8]
call fcn.004063f0
push eax
push str.upnp_log
push 0
push dword [ebp - 4]
push esi
call fcn.0045c070
push dword [0x626ba4]
call fcn.004063f0
push eax
push str.util_log
push 0
push dword [ebp - 4]
push esi
call fcn.0045c070
add esp, 0x48
push dword [0x6260e8]
push 0x55a4a8
push str.log_limit
push 0
push dword [ebp - 4]
push esi
call fcn.0045c070
push dword [0x6260ec]
push 0x55a4a8
push str.max_players
push 0
push dword [ebp - 4]
push esi
call fcn.0045c070
push 0x626b20
push str.interface
push 0
push dword [ebp - 4]
push esi
call fcn.0045c070
add esp, 0x44
push 0x630e20
push str.credentials_path
push 0
push dword [ebp - 4]
push esi
call fcn.0045c070
movzx eax, byte [0x630e05]
push eax
push 0x55a4a8
push str.credentials
push 0
push dword [ebp - 4]
push esi
call fcn.0045c070
movzx eax, word [0x630f20]
push eax
movzx eax, word [0x630f22]
push eax
push str._hu:_hu
push str.ports
push 0
push dword [ebp - 4]
push esi
call fcn.0045c070
movzx eax, byte [0x6260f0]
add esp, 0x48
push eax
push 0x55a4a8
push str.enabled
push 0
push edi
push esi
call fcn.0045c070
push dword [0x6265fc]
push 0x55a4a8
push str.max_volume
push 0
push edi
push esi
call fcn.0045c070
push dword [0x626714]
push dword [0x626710]
push str._lld
push str.http_content_length
push 0
push edi
push esi
call fcn.0045c070
add esp, 0x4c
push dword [0x6265f8]
push 0x55a4a8
push str.upnp_max
push 0
push edi
push esi
call fcn.0045c070
push str.flac
push str.codec
push 0
push edi
push esi
call fcn.0045c070
push dword [0x626700]
push 0x55a4a8
push str.vorbis_rate
push 0
push edi
push esi
call fcn.0045c070
movzx eax, byte [0x626704]
add esp, 0x44
push eax
push 0x55a4a8
push str.flow
push 0
push edi
push esi
call fcn.0045c070
push dword [0x626708]
push 0x55a4a8
push str.use_filecache
push 0
push edi
push esi
call fcn.0045c070
movzx eax, byte [0x62670c]
push eax
push 0x55a4a8
push str.gapless
push 0
push edi
push esi
call fcn.0045c070
add esp, 0x48
push 0x62671a
push 0x55972c
push str.artwork
push 0
push edi
push esi
call fcn.0045c070
add esp, 0x18
mov dword [ebp - 8], 0
cmp dword [0x6260ec], 0
jle 0x419d6a
xor ebx, ebx
nop dword [eax]
mov edi, dword [0x630f24]
add edi, ebx
cmp byte [edi], 0
je 0x419d51
mov eax, dword [ebp + 0xc]
lea ecx, [edi + 0xe38]
test eax, eax
je 0x419ca3
push ecx
push eax
call fcn.00418f60
add esp, 8
mov dword [ebp + 0x10], eax
test eax, eax
je 0x419ca3
lea ecx, [ebp + 0x10]
push ecx
push 1
push eax
push esi
call fcn.0045b550
push dword [ebp + 0x10]
push dword [ebp - 4]
call fcn.0045dce0
lea eax, [edi + 9]
push eax
push str.credentials
push 1
push dword [ebp + 0x10]
push esi
call fcn.0045c070
add esp, 0x2c
jmp 0x419d51
push 0
push str.device
push dword [ebp - 4]
push esi
call fcn.0045bde0
lea ecx, [edi + 0xe38]
mov dword [ebp + 0x10], eax
push ecx
push 0x55ac0c
push eax
push esi
call fcn.0045bde0
lea eax, [edi + 9]
push eax
push str.credentials
push dword [ebp + 0x10]
push esi
call fcn.0045bde0
lea eax, [edi + 0x409]
push eax
push str.name
push dword [ebp + 0x10]
push esi
call fcn.0045bde0
movzx eax, byte [edi + 0x50e]
add esp, 0x40
push eax
movzx eax, byte [edi + 0x50d]
push eax
movzx eax, byte [edi + 0x50c]
push eax
movzx eax, byte [edi + 0x50b]
push eax
movzx eax, byte [edi + 0x50a]
push eax
movzx eax, byte [edi + 0x509]
push eax
push str._02x:_02x:_02x:_02x:_02x:_02x
push 0x55ac38
push dword [ebp + 0x10]
push esi
call fcn.0045bde0
movzx eax, byte [edi + 8]
push eax
push 0x55a4a8
push str.enabled
push dword [ebp + 0x10]
push esi
call fcn.0045bde0
add esp, 0x3c
mov eax, dword [ebp - 8]
add ebx, 0x2868
inc eax
mov dword [ebp - 8], eax
cmp eax, dword [0x6260ec]
jl 0x419c40
push str.device
push dword [ebp - 0xc]
call fcn.0045b510
mov ebx, eax
xor edi, edi
push ebx
call fcn.0045ec70
add esp, 0xc
test eax, eax
jle 0x419de2
push edi
push ebx
call fcn.0045ec20
push 0x55ac0c
push eax
mov dword [ebp + 0x10], eax
call fcn.0045b470
push eax
call fcn.0045e7a0
push eax
call fcn.0045e860
push eax
push esi
call fcn.00418f60
add esp, 0x20
test eax, eax
jne 0x419dd4
lea eax, [ebp + 0x10]
push eax
push 1
push dword [ebp + 0x10]
push esi
call fcn.0045b550
push dword [ebp + 0x10]
push dword [ebp - 4]
call fcn.0045dce0
add esp, 0x18
push ebx
inc edi
call fcn.0045ec70
add esp, 4
cmp edi, eax
jl 0x419d88
test ebx, ebx
je 0x419def
push ebx
call fcn.0045ebe0
add esp, 4
push 0x618f4c
push dword [ebp + 8]
call dword [sym.imp.api_ms_win_crt_stdio_l1_1_0.dll_fopen]
push esi
mov ebx, eax
call fcn.0045b740
mov edi, eax
add esp, 0xc
mov edx, edi
lea eax, [edx + 1]
nop
mov cl, byte [edx]
inc edx
test cl, cl
jne 0x419e10
push ebx
sub edx, eax
push edx
push 1
push edi
call dword [sym.imp.api_ms_win_crt_stdio_l1_1_0.dll_fwrite]
push ebx
call dword [sym.imp.api_ms_win_crt_stdio_l1_1_0.dll_fclose]
push edi
call dword [sym.imp.api_ms_win_crt_heap_l1_1_0.dll_free]
push esi
call fcn.0045b450
add esp, 0x1c
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret