Function at 0x4a9210
Capabilities:
Write file on windows

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x567b8f
mov eax, dword fs:[0]
push eax
sub esp, 0x5c
mov eax, dword [0x61308c]
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
xor eax, eax
mov dword [ebp - 0x30], 0
mov dword [ebp - 0x2c], 0
xor bl, bl
mov dword [ebp - 0x2c], 7
mov dword [ebp - 0x30], 0
mov word [ebp - 0x40], ax
mov dword [ebp - 4], 1
mov eax, dword [0x61e224]
sub eax, dword [0x61e220]
sar eax, 2
test eax, eax
je 0x4a93c7
xor eax, eax
mov dword [ebp - 0x18], 0
mov dword [ebp - 0x14], 0
mov dword [ebp - 0x14], 7
mov dword [ebp - 0x18], 0
mov word [ebp - 0x28], ax
mov byte [ebp - 4], 3
lea ecx, [ebp - 0x40]
push 0x29
push str.__xml_version_1.0__encoding_utf_8_____r_n
call fcn.00404d30
push 0xc
push 0x5ba044
lea ecx, [ebp - 0x40]
call fcn.00406f60
push 9
push str._DevList_
lea ecx, [ebp - 0x40]
call fcn.00406f60
mov esi, dword [0x61e220]
cmp esi, dword [0x61e224]
je 0x4a937c
mov eax, dword [esi]
push dword [eax]
lea eax, [ebp - 0x28]
push str._n___DevHW_Devtype__d_____CDATA_
push eax
call fcn.0040d480
add esp, 0xc
lea edx, [ebp - 0x28]
cmp dword [ebp - 0x14], 8
cmovae edx, dword [ebp - 0x28]
cmp word [edx], 0
jne 0x4a930b
xor ecx, ecx
jmp 0x4a931f
mov ecx, edx
lea edi, [ecx + 2]
mov ax, word [ecx]
add ecx, 2
test ax, ax
jne 0x4a9310
sub ecx, edi
sar ecx, 1
push ecx
push edx
lea ecx, [ebp - 0x40]
call fcn.00406f60
mov edx, dword [esi]
add edx, 8
cmp dword [edx + 0x14], 8
jb 0x4a9336
mov edx, dword [edx]
cmp word [edx], 0
jne 0x4a9340
xor ecx, ecx
jmp 0x4a9354
mov ecx, edx
lea edi, [ecx + 2]
mov ax, word [ecx]
add ecx, 2
test ax, ax
jne 0x4a9345
sub ecx, edi
sar ecx, 1
push ecx
push edx
lea ecx, [ebp - 0x40]
call fcn.00406f60
push 0xb
push str._____DevHW_
lea ecx, [ebp - 0x40]
call fcn.00406f60
add esi, 4
cmp esi, dword [0x61e224]
jne 0x4a92e1
push 0xc
push str._r_n__DevList_
lea ecx, [ebp - 0x40]
call fcn.00406f60
push 0xd
push str._r_n__SignData_
lea ecx, [ebp - 0x40]
call fcn.00406f60
mov byte [ebp - 4], 1
mov eax, dword [ebp - 0x14]
cmp eax, 8
jb 0x4a93b3
inc eax
lea ecx, [ebp - 0x28]
push eax
push dword [ebp - 0x28]
call fcn.00404be0
xor eax, eax
mov dword [ebp - 0x14], 7
mov dword [ebp - 0x18], 0
mov word [ebp - 0x28], ax
cmp dword [ebp - 0x30], 0
je 0x4a95a8
mov dword [ebp - 0x18], 0
mov dword [ebp - 0x14], 0
mov dword [ebp - 0x14], 0xf
mov dword [ebp - 0x18], 0
mov byte [ebp - 0x28], 0
mov byte [ebp - 4], 5
lea eax, [ebp - 0x40]
cmp dword [ebp - 0x2c], 8
lea ecx, [ebp - 0x28]
cmovae eax, dword [ebp - 0x40]
push eax
call fcn.0040d560
mov byte [ebp - 4], 6
mov edx, 0x5ba15c
lea ecx, [ebp - 0x58]
call fcn.00411c40
mov byte [ebp - 4], 7
mov dword [ebp - 0x64], vtable.CBaseFile.0
mov dword [ebp - 0x5c], 0
mov byte [ebp - 0x60], 0
mov byte [ebp - 4], 8
lea eax, [ebp - 0x58]
cmp dword [ebp - 0x44], 8
lea ecx, [ebp - 0x64]
push 0x1a
cmovae eax, dword [ebp - 0x58]
push eax
call fcn.00404380
test al, al
je 0x4a94d2
mov cl, byte [ebp - 0x60]
mov eax, dword [ebp - 0x5c]
mov word [ebp - 0x68], 0xbbef
mov byte [ebp - 0x66], 0xbf
test cl, cl
je 0x4a9489
test eax, eax
je 0x4a9489
push eax
push 3
lea eax, [ebp - 0x68]
push 1
push eax
call fcn.0052edd8
push dword [ebp - 0x5c]
call fcn.0052eb75
mov eax, dword [ebp - 0x5c]
add esp, 0x14
mov cl, byte [ebp - 0x60]
cmp dword [ebp - 0x14], 0x10
lea edx, [ebp - 0x28]
cmovae edx, dword [ebp - 0x28]
test cl, cl
je 0x4a94b6
test eax, eax
je 0x4a94ca
push eax
push dword [ebp - 0x18]
push 1
push edx
call fcn.0052edd8
push dword [ebp - 0x5c]
call fcn.0052eb75
mov eax, dword [ebp - 0x5c]
add esp, 0x14
test eax, eax
je 0x4a94ca
push eax
call fcn.0052e84e
add esp, 4
test eax, eax
jne 0x4a94ce
mov dword [ebp - 0x5c], eax
mov byte [ebp - 0x60], 0
mov bl, 1
jmp 0x4a952a
cmp dword [ebp - 0x44], 8
lea edi, [ebp - 0x58]
mov esi, dword [0x618d28]
cmovae edi, dword [ebp - 0x58]
test esi, esi
jne 0x4a950b
push 0x70
call fcn.005120b2
add esp, 4
mov dword [ebp - 0x68], eax
mov byte [ebp - 4], 9
mov ecx, eax
call fcn.00409ee0
mov esi, eax
mov byte [ebp - 4], 8
mov dword [0x618d28], esi
call dword [sym.imp.KERNEL32.dll_GetLastError]
push eax
push edi
push 0x5ba17c
push 0x75
push 0x5ba194
push 1
push esi
call fcn.0040a3e0
add esp, 0x1c
mov byte [ebp - 4], 7
mov eax, dword [ebp - 0x5c]
mov dword [ebp - 0x64], vtable.CBaseFile.0
test eax, eax
je 0x4a954c
push eax
call fcn.0052e84e
add esp, 4
test eax, eax
jne 0x4a9550
mov dword [ebp - 0x5c], eax
mov byte [ebp - 0x60], 0
mov byte [ebp - 4], 6
mov eax, dword [ebp - 0x44]
cmp eax, 8
jb 0x4a9569
inc eax
lea ecx, [ebp - 0x58]
push eax
push dword [ebp - 0x58]
call fcn.00404be0
xor eax, eax
mov dword [ebp - 0x44], 7
mov dword [ebp - 0x48], 0
mov word [ebp - 0x58], ax
mov byte [ebp - 4], 1
mov eax, dword [ebp - 0x14]
cmp eax, 0x10
jb 0x4a9596
inc eax
lea ecx, [ebp - 0x28]
push eax
push dword [ebp - 0x28]
call fcn.00409490
mov dword [ebp - 0x14], 0xf
mov dword [ebp - 0x18], 0
mov byte [ebp - 0x28], 0
call fcn.004a8d00
mov dword [ebp - 4], 0xffffffff
mov eax, dword [ebp - 0x2c]
cmp eax, 8
jb 0x4a95c9
inc eax
lea ecx, [ebp - 0x40]
push eax
push dword [ebp - 0x40]
call fcn.00404be0
xor eax, eax
mov dword [ebp - 0x2c], 7
mov word [ebp - 0x40], ax
mov al, bl
mov dword [ebp - 0x30], 0
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.005120a1
mov esp, ebp
pop ebp
ret