Function at 0x4a7e50
Capabilities:
Write file on windows

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x5675ff
mov eax, dword fs:[0]
push eax
sub esp, 0x68
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 [0x61e218]
sub eax, dword [0x61e214]
sar eax, 2
test eax, eax
je 0x4a8069
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 0x5b9d98
call fcn.00404d30
push 0xf
push str._InstallData__r_n
lea ecx, [ebp - 0x40]
call fcn.00406f60
push 1
lea eax, [ebp - 0x28]
push str._InstallType__n__type__d__type__n__InstallType__r_n
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 0x4a7f28
xor ecx, ecx
jmp 0x4a7f3f
mov ecx, edx
lea esi, [ecx + 2]
nop dword [eax]
mov ax, word [ecx]
add ecx, 2
test ax, ax
jne 0x4a7f30
sub ecx, esi
sar ecx, 1
push ecx
push edx
lea ecx, [ebp - 0x40]
call fcn.00406f60
push 9
push 0x5b9d84
lea ecx, [ebp - 0x40]
call fcn.00406f60
mov esi, dword [0x61e214]
cmp esi, dword [0x61e218]
je 0x4a801e
nop word [eax + eax]
mov ecx, dword [esi]
cmp dword [ecx + 0x44], 8
lea eax, [ecx + 0x30]
jb 0x4a7f7d
mov eax, dword [eax]
add ecx, 0x18
cmp dword [ecx + 0x14], 8
jb 0x4a7f88
mov ecx, dword [ecx]
push eax
push ecx
lea eax, [ebp - 0x28]
push str._n___DevHW_OldVer__s__NewVer__s_____CDATA_
push eax
call fcn.0040d480
add esp, 0x10
lea edx, [ebp - 0x28]
cmp dword [ebp - 0x14], 8
cmovae edx, dword [ebp - 0x28]
cmp word [edx], 0
jne 0x4a7fb0
xor ecx, ecx
jmp 0x4a7fc4
mov ecx, edx
lea edi, [ecx + 2]
mov ax, word [ecx]
add ecx, 2
test ax, ax
jne 0x4a7fb5
sub ecx, edi
sar ecx, 1
push ecx
push edx
lea ecx, [ebp - 0x40]
call fcn.00406f60
mov edx, dword [esi]
cmp dword [edx + 0x14], 8
jb 0x4a7fd8
mov edx, dword [edx]
cmp word [edx], 0
jne 0x4a7fe2
xor ecx, ecx
jmp 0x4a7ff6
mov ecx, edx
lea edi, [ecx + 2]
mov ax, word [ecx]
add ecx, 2
test ax, ax
jne 0x4a7fe7
sub ecx, edi
sar ecx, 1
push ecx
push edx
lea ecx, [ebp - 0x40]
call fcn.00406f60
push 0xb
push 0x5b9ec0
lea ecx, [ebp - 0x40]
call fcn.00406f60
add esi, 4
cmp esi, dword [0x61e218]
jne 0x4a7f70
push 0xc
push 0x5b9dec
lea ecx, [ebp - 0x40]
call fcn.00406f60
push 0x10
push str._r_n__InstallData_
lea ecx, [ebp - 0x40]
call fcn.00406f60
mov byte [ebp - 4], 1
mov eax, dword [ebp - 0x14]
cmp eax, 8
jb 0x4a8055
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 0x4a824a
mov dword [ebp - 0x48], 0
mov dword [ebp - 0x44], 0
mov dword [ebp - 0x44], 0xf
mov dword [ebp - 0x48], 0
mov byte [ebp - 0x58], 0
mov byte [ebp - 4], 5
lea eax, [ebp - 0x40]
cmp dword [ebp - 0x2c], 8
lea ecx, [ebp - 0x58]
cmovae eax, dword [ebp - 0x40]
push eax
call fcn.0040d560
mov byte [ebp - 4], 6
mov edx, 0x5b9efc
lea ecx, [ebp - 0x70]
call fcn.00411c40
mov byte [ebp - 4], 7
mov dword [ebp - 0x1c], vtable.CBaseFile.0
mov dword [ebp - 0x14], 0
mov byte [ebp - 0x18], 0
mov byte [ebp - 4], 8
lea eax, [ebp - 0x70]
cmp dword [ebp - 0x5c], 8
lea ecx, [ebp - 0x1c]
push 0x1a
cmovae eax, dword [ebp - 0x70]
push eax
call fcn.00404380
test al, al
je 0x4a8174
mov cl, byte [ebp - 0x18]
mov eax, dword [ebp - 0x14]
mov word [ebp - 0x74], 0xbbef
mov byte [ebp - 0x72], 0xbf
test cl, cl
je 0x4a812b
test eax, eax
je 0x4a812b
push eax
push 3
lea eax, [ebp - 0x74]
push 1
push eax
call fcn.0052edd8
push dword [ebp - 0x14]
call fcn.0052eb75
mov eax, dword [ebp - 0x14]
add esp, 0x14
mov cl, byte [ebp - 0x18]
cmp dword [ebp - 0x44], 0x10
lea edx, [ebp - 0x58]
cmovae edx, dword [ebp - 0x58]
test cl, cl
je 0x4a8158
test eax, eax
je 0x4a816c
push eax
push dword [ebp - 0x48]
push 1
push edx
call fcn.0052edd8
push dword [ebp - 0x14]
call fcn.0052eb75
mov eax, dword [ebp - 0x14]
add esp, 0x14
test eax, eax
je 0x4a816c
push eax
call fcn.0052e84e
add esp, 4
test eax, eax
jne 0x4a8170
mov dword [ebp - 0x14], eax
mov byte [ebp - 0x18], 0
mov bl, 1
jmp 0x4a81cc
cmp dword [ebp - 0x5c], 8
lea edi, [ebp - 0x70]
mov esi, dword [0x618d28]
cmovae edi, dword [ebp - 0x70]
test esi, esi
jne 0x4a81ad
push 0x70
call fcn.005120b2
add esp, 4
mov dword [ebp - 0x74], 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 0x5b9f28
push 0x4d
push 0x5b9f40
push 1
push esi
call fcn.0040a3e0
add esp, 0x1c
mov byte [ebp - 4], 7
mov eax, dword [ebp - 0x14]
mov dword [ebp - 0x1c], vtable.CBaseFile.0
test eax, eax
je 0x4a81ee
push eax
call fcn.0052e84e
add esp, 4
test eax, eax
jne 0x4a81f2
mov dword [ebp - 0x14], eax
mov byte [ebp - 0x18], 0
mov byte [ebp - 4], 6
mov eax, dword [ebp - 0x5c]
cmp eax, 8
jb 0x4a820b
inc eax
lea ecx, [ebp - 0x70]
push eax
push dword [ebp - 0x70]
call fcn.00404be0
xor eax, eax
mov dword [ebp - 0x5c], 7
mov dword [ebp - 0x60], 0
mov word [ebp - 0x70], ax
mov byte [ebp - 4], 1
mov eax, dword [ebp - 0x44]
cmp eax, 0x10
jb 0x4a8238
inc eax
lea ecx, [ebp - 0x58]
push eax
push dword [ebp - 0x58]
call fcn.00409490
mov dword [ebp - 0x44], 0xf
mov dword [ebp - 0x48], 0
mov byte [ebp - 0x58], 0
call fcn.004a7b40
mov dword [ebp - 4], 0xffffffff
mov eax, dword [ebp - 0x2c]
cmp eax, 8
jb 0x4a826b
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