Function at 0x414bf0
Capabilities:
Write file on windows

Disassembly:
push ebx
mov ebx, esp
sub esp, 8
and esp, 0xffffffc0
add esp, 4
push ebp
mov ebp, dword [ebx + 4]
mov dword [esp + 4], ebp
mov ebp, esp
sub esp, 0x1b8
mov eax, dword [0x4f22ec]
xor eax, ebp
mov dword [ebp - 4], eax
mov al, byte [0x54363e]
mov dword [ebp - 0x18c], 1
mov dword [ebp - 0x190], 0
mov dword [ebp - 0x184], 0
push esi
push edi
test al, al
je 0x414ebf
cmp al, 2
jbe 0x414c6b
push 0x1e3
push 0x4d2fa0
push str.img_report.has_md5sum___ARRAYSIZE_md5sum_name_
call fcn.0049ed6b
mov al, byte [0x54363e]
add esp, 0xc
cmp al, 2
ja 0x414ebf
movzx eax, al
push dword [eax*4 + 0x4c9f24]
lea eax, [ebp - 0x58]
push dword [0x52c118]
push 0x4d3068
push 0x40
push eax
call fcn.00403820
add esp, 0x14
mov byte [ebp - 0x19], 0
lea edx, [ebp - 0x184]
lea ecx, [ebp - 0x58]
call fcn.00440a00
mov edi, eax
mov dword [ebp - 0x198], edi
test edi, edi
je 0x414ebf
xor eax, eax
mov dword [ebp - 0x194], eax
cmp dword [0x52c000], eax
jbe 0x414e5a
mov edi, dword [ebp - 0x184]
lea ebx, [ebx]
lea ecx, [eax*4]
mov eax, dword [0x52bffc]
mov dword [ebp - 0x188], ecx
mov eax, dword [ecx + eax]
add eax, 2
push eax
push edi
call fcn.00492960
mov esi, eax
add esp, 8
test esi, esi
je 0x414e3b
cmp dword [ebp - 0x18c], 0
je 0x414d20
lea eax, [ebp - 0x58]
push eax
push str.Updating__s:
call fcn.004407e0
add esp, 8
mov dword [ebp - 0x18c], 0
mov eax, dword [0x52bffc]
mov ecx, dword [ebp - 0x188]
mov eax, dword [ecx + eax]
add eax, 2
push eax
push 0x4d3080
call fcn.004407e0
mov ecx, dword [0x52bffc]
lea edx, [ebp - 0x190]
mov eax, dword [ebp - 0x188]
add esp, 8
sub esi, edi
mov ecx, dword [eax + ecx]
call fcn.00440a00
mov dword [ebp - 0x188], eax
test eax, eax
je 0x414e3b
push 0x100
lea eax, [ebp - 0x180]
push 0
push eax
call fcn.00493600
add esp, 0xc
lea eax, [ebp - 0x180]
push eax
call fcn.00437a60
mov edi, dword [ebp - 0x190]
lea eax, [ebp - 0x180]
add esp, 4
push dword [ebp - 0x188]
push edi
push eax
call fcn.0043bd70
add esp, 0xc
lea eax, [ebp - 0x180]
push eax
call fcn.0043c270
mov eax, dword [ebp - 0x180]
add esp, 4
mov dword [ebp - 0x14], eax
mov eax, dword [ebp - 0x17c]
mov dword [ebp - 0x10], eax
mov eax, dword [ebp - 0x178]
mov dword [ebp - 0xc], eax
mov eax, dword [ebp - 0x174]
mov dword [ebp - 8], eax
push edi
call fcn.004998ec
mov ecx, dword [ebp - 0x184]
add esp, 4
test esi, esi
jle 0x414e00
lea eax, [ecx - 1]
add eax, esi
cmp byte [eax], 0xa
je 0x414e00
dec esi
dec eax
test esi, esi
jg 0x414df5
xor edi, edi
add esi, ecx
mov dl, byte [ebp + edi - 0x14]
lea esi, [esi + 2]
mov cl, dl
shr cl, 4
cmp cl, 0xa
sbb al, al
and dl, 0xf
and al, 0xd9
add al, 0x57
add al, cl
cmp dl, 0xa
mov byte [esi - 2], al
sbb al, al
inc edi
and al, 0xd9
add al, 0x57
add al, dl
mov byte [esi - 1], al
cmp edi, 0x10
jb 0x414e04
mov edi, dword [ebp - 0x184]
mov eax, dword [ebp - 0x194]
inc eax
mov dword [ebp - 0x194], eax
cmp eax, dword [0x52c000]
jb 0x414cd0
mov edi, dword [ebp - 0x198]
mov edx, 0x4dc1f0
lea ecx, [ebp - 0x58]
call fcn.00427330
mov esi, eax
test esi, esi
jne 0x414e80
lea eax, [ebp - 0x58]
push eax
push str.Error:_Cant_create__s
call fcn.004407e0
add esp, 8
jmp 0x414eb1
mov ecx, dword [ebp - 0x184]
push esi
push edi
push 1
push ecx
call fcn.004a3a45
add esp, 0x10
cmp eax, edi
je 0x414ea8
lea eax, [ebp - 0x58]
push eax
push str.Error:_Cant_write__s
call fcn.004407e0
add esp, 8
push esi
call fcn.00499b6b
add esp, 4
push dword [ebp - 0x184]
call fcn.004998ec
add esp, 4
mov eax, dword [0x52bffc]
test eax, eax
je 0x414f01
xor esi, esi
cmp dword [0x52c000], esi
jbe 0x414ef7
push dword [eax + esi*4]
call fcn.004998ec
mov eax, dword [0x52bffc]
add esp, 4
mov dword [eax + esi*4], 0
inc esi
mov eax, dword [0x52bffc]
cmp esi, dword [0x52c000]
jb 0x414ed2
mov dword [0x52c000], 0
push eax
call fcn.004998ec
mov ecx, dword [ebp - 4]
add esp, 4
xor ecx, ebp
mov dword [0x52bffc], 0
pop edi
pop esi
call fcn.00491940
mov esp, ebp
pop ebp
mov esp, ebx
pop ebx
ret